Tuesday, May 11, 2004 08:56 AM
I have looked at using the PhraseQuery class to search for a phrase within the content of a particular document.
Are there any good examples out there of code which uses the Phrasequery?
If i want to search for the phrase "i am here" do i need to add terms to the phrasequery object e.g
pq.add(new Term(BODY, "i"));
pq.add(new Term(BODY, "am"));
pq.add(new Term(BODY, "here"));
When indexing the content of the document do I have to give the Field that contains the content "true, true, true" as the arguments for "store, index, token"?