Re: Strange behaviour with default request handler
Hey, Sorry for the late answer. Thanks for your help, i started with a wildcard after your advice, by adding it automatically when i build the request in my code. But then, i found the n-gram filter, which is much appropriate for my use case until i have no performance issue ;-) Thanks again. Cya, Benjamin. 2012/6/29 iorixxx [via Lucene] ml-node+s472066n3992063...@n3.nabble.com And when i search for soph, i only get Sophie in the results and not Sophia. Do you want your query q=soph to return both Sophie and Sophia? If that's the case then you can use wildcard queries. q=soph* Also you didn't provide field definition type=text. It seems that you have stemming filter in your analysis chain. You can inspect how tokens Sophie and Sophia are indexed using solr/admin/analysis.jsp page. -- If you reply to this email, your message will be added to the discussion below: http://lucene.472066.n3.nabble.com/Strange-behaviour-with-default-request-handler-tp3991976p3992063.html To unsubscribe from Strange behaviour with default request handler, click herehttp://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3991976code=YmVuamFtaW4uZHVsYXVAZ21haWwuY29tfDM5OTE5NzZ8LTE2OTc3NDIxNTA= . NAMLhttp://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://lucene.472066.n3.nabble.com/Strange-behaviour-with-default-request-handler-tp3991976p3994095.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Strange behaviour with default request handler
And when i search for soph, i only get Sophie in the results and not Sophia. Do you want your query q=soph to return both Sophie and Sophia? If that's the case then you can use wildcard queries. q=soph* Also you didn't provide field definition type=text. It seems that you have stemming filter in your analysis chain. You can inspect how tokens Sophie and Sophia are indexed using solr/admin/analysis.jsp page.
Strange behaviour with default request handler
Hi, I have a strange behaviour with the default request handler. In the index i have : doc str name=date2012-06-28T10:22:51Z/str str name=description/ str name=firstNameSophie/str str name=iduser-6/str str name=lastNameMichel/str str name=screenNameSophie/str str name=slugsophie/str /doc doc str name=date2012-06-28T10:22:51Z/str str name=description/ str name=firstNameSophia/str str name=iduser-7/str str name=lastNameMartinez/str str name=screenNameSophia/str str name=slugsophia/str /doc And when i search for soph, i only get Sophie in the results and not Sophia. When i search for *:*, i get everything. Why is that ? Did i miss a basic configuration option ? My schema looks like : fields field name=id type=string indexed=true stored=true required=true / field name=who type=text indexed=true stored=false multiValued=true/ field name=screenName type=string indexed=false stored=true required=true / field name=slug type=string indexed=false stored=true required=true / field name=firstName type=string indexed=false stored=true / field name=lastName type=string indexed=false stored=true / field name=description type=string indexed=false stored=true / field name=date type=string indexed=false stored=true required=true/ /fields uniqueKeyid/uniqueKey defaultSearchFieldwho/defaultSearchField solrQueryParser defaultOperator=OR/ copyField source=screenName dest=who/ copyField source=firstName dest=who/ copyField source=lastName dest=who/ Any advice ? Thanks ! ;-) Cya, benjamin. -- View this message in context: http://lucene.472066.n3.nabble.com/Strange-behaviour-with-default-request-handler-tp3991976.html Sent from the Solr - User mailing list archive at Nabble.com.