I have a text field indexed using WordDelimeter
Indexed in that way
<doc>
<field name="myfield">S.#L.W.VI.37</field>
...
</doc>

Serching in that way:
http://192.168.3.3:8983/solr3.1/core0/select?q=myfield:("S.#L.W.VI.37")

Makes this error:

org.apache.lucene.queryParser.ParseException: Cannot parse 'myfield:("S.': 
Lexical error at line 1, column 17.  Encountered: <EOF> after : "\"S."

It seems that # is a wrong character for query... I try urlencoding o adding a 
slash before or removing quotes but other errors comes:

http://192.168.3.3:8983/solr3.1/core0/select?q=myfield:(S.#L.W.VI.37)

org.apache.lucene.queryParser.ParseException: Cannot parse 'myfield:(S.': 
Encountered "<EOF>" at line 1, column 15.
Was expecting one of:
    <AND> ...
    <OR> ...
    <NOT> ...
    "+" ...
    "-" ...
    "(" ...
    ")" ...
    "*" ...
    "^" ...
    <QUOTED> ...
    <TERM> ...
    <FUZZY_SLOP> ...
    <PREFIXTERM> ...
    <WILDTERM> ...
    "[" ...
    "{" ...
    <NUMBER> ...


Any idea how to solve this?
Maybe a bug? Or probably I'm missing something.

Dario.

Reply via email to