lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yousef Ourabi <your...@gmail.com>
Subject n-Field search w/PhraseQuery
Date Wed, 06 Jul 2005 19:01:27 GMT
Quick question on the proper-way of searching multiple fields for phrases?

Would I do this:
BooleanQuery titleOrContent = new BooleanQuery();
PhraseQuery titlePhraseSearch = new PhraseQuery(); (add filed x, and term 1, 2)
PhraseQuery contentPhraseSearch = new PhraseQuery(); (add field y, and term 2,4)

OR

PhraseQuery phraseQuery = new PhraseQuery(); add field x, t 1,2 then
add field y, t 2 4?

Thanks for any help?

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


Mime
View raw message