: 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
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
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
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