lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aviran Mordo" <>
Subject RE: multi field wildcard boolean query
Date Mon, 19 May 2003 14:59:25 GMT
You can use the BooleanQuery to join all the queries.
For instance use the QueryParser to parse ease input box query to a
Query Object
Then Use the BooleanQuery to join all the Query objects in to one AND


-----Original Message-----
From: Subhrajyoti Moitra [] 
Sent: Saturday, May 17, 2003 5:15 AM
To: lucene mailing list
Subject: multi field wildcard boolean query

I have a jsp which has five text box. The user puts in some text in 1 or
more text boxes. I want to conduct a multi field wildcard search.

for textBox1 the user enters "hello"
for textBox2 the user enters "ar*"
for textBox3 the user enters "jav?"
for textBox4 the user enters "apa*"

now i want to conduct a search

field1: hello field2:ar* field3:jav? field4:apa*

so in verbose mode- i want all results which has field1 as "hello" (this
is complete term) AND field2 as anything starting with "ar" AND ... so

How do i do this??

What if the user instead of a single term, inputs a phrase like "cool

Please help me.

thanks in advance.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message