You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Kelvin Tan <ke...@relevanz.com> on 2002/04/10 11:10:54 UTC
Asterisk in field search
I looked through TestQueryParser.java and didn't find a test for this:
"foo*b:bar". Running this query doesn't produce any errors though the
results one would expect from this query doesn't return. Interestingly
enough, "foo*:bar" doesn't give any errors either.
Running "(foo*b:bar)" which logically is the same as the previous query
results in:
Was expecting one of:
<AND> ...
<OR> ...
<NOT> ...
"+" ...
"-" ...
"(" ...
")" ...
"^" ...
<QUOTED> ...
<TERM> ...
"~" ...
<PREFIXTERM> ...
<WILDTERM> ...
<RANGEIN> ...
<RANGEEX> ...
<NUMBER> ...
org.apache.lucene.queryParser.ParseException: Encountered ":" at line 1,
column 9.
Was expecting one of:
<AND> ...
<OR> ...
<NOT> ..
Regards,
Kelvin Tan
Relevanz Pte Ltd
http://www.relevanz.com
180B Bencoolen St.
The Bencoolen, #04-01
S(189648)
Tel: 6238 6229
Fax: 6337 4417
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>