Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

Multiple query criteria search

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


spinergywmy at gmail

Nov 30, 2006, 2:34 AM

Post #1 of 2 (862 views)
Permalink
Multiple query criteria search

Hi guys,

I m actually trying on search indeces by entering multiple queries, for
instance, I have 4 textboxes with search criterias such as AND, OR, NOT and
Exact phrase. I m using queryParser operator and then add the query into
booleanquery, therefore I dont think my search result was correct.

Is there any other better way to do so?

Thank you.


regards,
Wooi Meng
--
View this message in context: http://www.nabble.com/Multiple-query-criteria-search-tf2730837.html#a7616977
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


hossman_lucene at fucit

Nov 30, 2006, 2:23 PM

Post #2 of 2 (788 views)
Permalink
Re: Multiple query criteria search [In reply to]

: I m actually trying on search indeces by entering multiple queries, for
: instance, I have 4 textboxes with search criterias such as AND, OR, NOT and
: Exact phrase. I m using queryParser operator and then add the query into
: booleanquery, therefore I dont think my search result was correct.

your approach of running hte input into each text box through a query
parser and then combining hte resulting queries into a single BooleanQuery
is a very sound and good approach ... i can't comment on the specifc
correctness of how you implimented it hower, so if your results aren't
what you expect I would look at the boolena que toString and make sure
what you are constructing matches what you thought you were constructing.




-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.