lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/queryParser MultiFieldQueryParser.java
Date Sun, 12 Dec 2004 15:36:33 GMT
dnaber      2004/12/12 07:36:33

  Modified:    src/java/org/apache/lucene/queryParser
                        MultiFieldQueryParser.java
  Log:
  upgrade hints in the deprecated tag
  
  Revision  Changes    Path
  1.8       +9 -8      jakarta-lucene/src/java/org/apache/lucene/queryParser/MultiFieldQueryParser.java
  
  Index: MultiFieldQueryParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/queryParser/MultiFieldQueryParser.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- MultiFieldQueryParser.java	12 Dec 2004 15:27:49 -0000	1.7
  +++ MultiFieldQueryParser.java	12 Dec 2004 15:36:33 -0000	1.8
  @@ -152,22 +152,23 @@
       }
   
       /**
  -     * <p>
  -     * Parses a query which searches on the fields specified.
  -     * <p>
  -     * If x fields are specified, this effectively constructs:
  -     * <pre>
  +     * <p>Parses a query which searches on the fields specified.
  +     * If x fields are specified, this effectively constructs:</p>
  +     *
        * <code>
        * (field1:query) (field2:query) (field3:query)...(fieldx:query)
        * </code>
  -     * </pre>
        *
        * @param query Query string to parse
        * @param fields Fields to search on
        * @param analyzer Analyzer to use
        * @throws ParseException if query parsing fails
        * @throws TokenMgrError if query parsing fails
  -     * @deprecated use {@link #parse(String)} instead
  +     * @deprecated use {@link #parse(String)} instead but note that it
  +     *  returns a different query for queries where all terms are required:
  +     *  its query excepts all terms, no matter in what field they occur whereas
  +     *  the query built by this (deprecated) method expected all terms in all fields 
  +     *  at the same time.
        */
       public static Query parse(String query, String[] fields, Analyzer analyzer)
   	throws ParseException
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message