help regarding phrase
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   alex_wong
Posted On:   Thursday, February 20, 2003 01:32 PM

i tried to write phrase query below is my attempt when i do a search the search content is in " " but it does not work it any idea what is wrong?

PhraseQuery query = new PhraseQuery();

BooleanQuery bQuery = new BooleanQuery();


Term phrase = new Term("contents", line);

query.add(phrase);

//query.setSlop(1);

bQuery.add(query, false, false);

Re: help regarding phrase

Posted By:   Otis_Gospodnetic  
Posted On:   Thursday, February 20, 2003 08:33 PM

Hm, you'll have to provide more details. However, instead of continuing here, may I suggest using lucene-user mailing list for getting help? You will get much better help over there, as lucene-user has more subscribers than this forum has readers.
About | Sitemap | Contact