lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aviran Mordo" <amo...@infosciences.com>
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
Query

Aviran

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


Hi,
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.
Eg:

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
on.

How do i do this??

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

Please help me.

thanks in advance.
subhro.



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


Mime
View raw message