lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xiaocheng Luan <>
Subject Re: Search Design Question
Date Sun, 25 Mar 2007 02:56:28 GMT
Hi Michael, 

if I understand your questions correctly - feels like I must have missed something - here
is what can do to achieve what you want:

index these fields:

all (includes text from all the above 4 fields)

and use "all" as your default search field. Then when you type "michael contract negotiation",
you'll be searching "all" field, which is "all the fields". When you type "to:michael AND
content:foo", you will be searching the specified fields only.


"Michael J. Prichard" <> wrote: Hello All,

We allow our users to search through our index with a simple textfield.  
The search phrase has "content" as its default value.  This allows them 
to search quickly through content but then when they type "to:blah AND 
from:foo AND content:boogie" it will know to parse,etc.

What I want to do it expand it so when they type a phrase in the 
textfield it will search select all at once and still be smart enough to 
recognize a lucene query.

For example,  say we have these fields:


When I type "michael contract negotiation" it will look through all 
these fields and return hits.

Then it should be able to recognize more advance searches like:

to:michael AND content:foo

and not go through all fields....

Am I making sense?  Is this a good way to provide search?  How would I 
do this?


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

Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message