Try this query with asterisk *

http://192.168.1.5:18080/apache-solr-1.2.0/select/?q=*&version=2.2&start=0&r
ows=10&indent=on


Response:
HTTP Status 400 - Query parsing error: Cannot parse '*': '*' or '?' not
allowed as first character in WildcardQuery

----------------------------------------------------------------------------
----

type Status report

message Query parsing error: Cannot parse '*': '*' or '?' not allowed as
first character in WildcardQuery

description The request sent by the client was syntactically incorrect
(Query parsing error: Cannot parse '*': '*' or '?' not allowed as first
character in WildcardQuery).


----------------------------------------------------------------------------
----

Apache Tomcat/6.0.13



I tried to discuss it last year... It shouldn't be HTTP 400. I do not have
such problems probably because I encapsulate * (using front-end layer) into
Item_name:"*"

I encapsulate user input into:
Item_name:"Romeo+Juliet" AND category:"books"
Item_name:"Romeo+Juliet"+category:"books"

Of course I use URL encoding before calling SOLR...


-Fuad

Reply via email to