You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Chris Fraschetti <fr...@gmail.com> on 2004/12/04 19:24:38 UTC

structuring a multifield query

Hey there folks.. I'm having a bit of trouble figuring out how to use
and AND term among all terms, but spread throughout the fields.

I currently use the static MultiFieldQueryParser method to parse my query..

basically I have several fields.. title, contents, and a few others...
and I would like a query such as    "super computer" to do the
standard distribution amongst the fields, but I believe currently all
these terms are done in an OR fashion.. but I would prefer it so that
they much all match somewhere.. i.e.  "super" could match in the title
and "computer" in the content, but they must match somewhere....  I
obviously was able to do this when I queried a single field, is there
a schema to apply this to multiple fields?

-- 
___________________________________________________
Chris Fraschetti, Student
http://meteora.cs.usfca.edu

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