Re: Search question (newbie)

2008-07-04 Thread Chris Hostetter
: How can I trap this situation correctly? I receive user queries like this : (quotes included): : :/from:"fred flintston*"/ : : Which produces a query string of : :/+from:fred body:flintston/ (where /body/ is the default field) either you've left something out, or some aspect

RE: Search question (newbie)

2008-07-04 Thread John Griffin
cene.apache.org Subject: Re: Search question (newbie) John, Thanks, I think I'm getting this now So you created your own BooleanQuery and parsed the string yourself, adding strings as TermQuerys etc., rather than using a QueryParser ? Cheers, - Chris John Griffin wrote: > Chris

Re: Search question (newbie)

2008-07-04 Thread Chris Bamford
John, Thanks, I think I'm getting this now So you created your own BooleanQuery and parsed the string yourself, adding strings as TermQuerys etc., rather than using a QueryParser ? Cheers, - Chris John Griffin wrote: Chris, I've had similar requirements in the past. First strip the

RE: Search question (newbie)

2008-07-03 Thread John Griffin
Chris, I've had similar requirements in the past. First strip the quotes then create a BooleanQuery consisting of two separate queries. 1. TermQuery for the first term - Fred 2. PrefixQuery for the second term - Flintstone When you add each individual query to the BooleanQuery make sure the Bool