I think that the problem is with the "#" symbol, because it has a special meaning when used inside a URL. Try replacing it with "%23", like this: http://192.168.3.3:8983/solr3.1/core0/select?q=myfield:("S.%23L.W.VI.37")
Regards, * Juan G. Grande* -- Solr Consultant @ http://www.plugtree.com -- Blog @ http://juanggrande.wordpress.com On Thu, Mar 10, 2011 at 12:45 PM, Dario Rigolin <dario.rigo...@comperio.it>wrote: > 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. >