lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kelvin Tan" <kel...@relevanz.com>
Subject Asterisk in field search
Date Wed, 10 Apr 2002 09:10:54 GMT
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:   <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message