You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2007/12/27 17:08:51 UTC

[Lucene-java Wiki] Trivial Update of "LuceneFAQ" by JonathanHayward

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lucene-java Wiki" for change notification.

The following page has been changed by JonathanHayward:
http://wiki.apache.org/lucene-java/LuceneFAQ

------------------------------------------------------------------------------
  
  Parse your query using [http://lucene.apache.org/java/docs/api/org/apache/lucene/queryParser/MultiFieldQueryParser.html MultiFieldQueryParser]. Note that terms which occur in short fields have a higher effect on
  the result ranking. Also !MultiFieldQueryParser builds queries that sometimes behave unexpectedly,
- namely for AND queries: it requires alls terms to appear in ''all'' field. This is not what one typically
+ namely for AND queries: it requires all terms to appear in ''all'' fields. This is not what one typically
  wants, for example in a search over "title" and "body" fields (Lucene 1.9 fixes this problem).
  
  Alternatively you could create a field which concatenates the content you would like to search and