@Ahmet:

Thanks, but I also need to be able to search via wildcard and just found
that a "-" might be resulting in unwanted results. E.g. when using this
query:

http://localhost:8983/solr/tt-cities/select/?indent=off&facet=false&fl=id,title,provincetitle_nl&q=title_search:nij*&defType=lucene&start=0&rows=15

I also get a result for "Halle-Nijman", so it seems the wildcard is not
working, as "Halle-Nijman" does not start with "nij" (or "Nij")
I also tried:
q=title_search:(nij*)
q=title_search:(nij)*

How can I fix this?


@Erick:

When I'm on the analysis page I get the error:

"This Functionality requires the /analysis/field Handler to be registered
and active!"

So I added this line to my solr config (based on this post:
http://stackoverflow.com/questions/12627734/configure-field-analysis-handler-solr-4)

<requestHandler name="/analysis/field"
class="solr.FieldAnalysisRequestHandler" />

But still the same error occurs.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Searchquery-on-field-that-contains-space-tp4110166p4110485.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to