Hi all

I've got this error when trying to search query like q=+myFiled:"some
value"*

org.apache.solr.core.SolrException: Query parsing error: Cannot parse
'+myFiled:"some value"*': '*' or '?' not allowed as first character in
WildcardQuery
        at org.apache.solr.search.QueryParsing.parseQuery(QueryParsing.java:104)
        at 
org.apache.solr.request.StandardRequestHandler.handleRequestBody(StandardRequestHandler.java:109)
...
Caused by: org.apache.lucene.queryParser.ParseException: Cannot parse
'+firstName:"some value"*': '*' or '?' not allowed as first character
in WildcardQuery
        at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:150)
        at org.apache.solr.search.QueryParsing.parseQuery(QueryParsing.java:94)
...

So is there any way to use wildcard with phrase query?

p.s. unexpected - this query works just fine: q=+myFiled:some\ value*
      so I can just escape all control symbols and space - and I'll get what
I want.
      But there are no info about space escaping at
http://lucene.apache.org/java/docs/queryparsersyntax.html#Escaping%20Special%20Characters


Thank you in advance


-- 
Best regards,
Traut

Reply via email to