Re: Solr search \ special cases
Hi Shay, I believe + is treated as space, is it a rest call or api ? what is your field type ? Regards Harshvardhan Ojha On Mon, Aug 11, 2014 at 4:04 PM, Shay Sofer sha...@checkpoint.com wrote: Hi, I have some strange cases while search with Solr. I have doc with names like: rule #22, rule +33, rule %44. When search for #22 or %55 or +33 Solr bring me as expected: rule #22 and rule +33 and rule %44. But when appending star (*) to each search (#22*, +33*, %55*), just the one with + sign bring rule +33, all other result none. Can someone explain? Thanks, Shay.
RE: Solr search \ special cases
I call directly from Solr web api. Field type is string. * should bring more results ? this is suffix search ? am I wrong ? Thanks ! -Original Message- From: Harshvardhan Ojha [mailto:ojha.harshvard...@gmail.com] Sent: Monday, August 11, 2014 1:40 PM To: solr-user@lucene.apache.org Subject: Re: Solr search \ special cases Hi Shay, I believe + is treated as space, is it a rest call or api ? what is your field type ? Regards Harshvardhan Ojha On Mon, Aug 11, 2014 at 4:04 PM, Shay Sofer sha...@checkpoint.com wrote: Hi, I have some strange cases while search with Solr. I have doc with names like: rule #22, rule +33, rule %44. When search for #22 or %55 or +33 Solr bring me as expected: rule #22 and rule +33 and rule %44. But when appending star (*) to each search (#22*, +33*, %55*), just the one with + sign bring rule +33, all other result none. Can someone explain? Thanks, Shay. Email secured by Check Point
Re: Solr search \ special cases
The use of a wildcard suppresses analysis of the query term, so the special characters remain, but... they were removed when the terms were indexed, so no match. You must manually emulate the index term analysis in order to use wildcards. -- Jack Krupansky -Original Message- From: Shay Sofer Sent: Monday, August 11, 2014 6:34 AM To: solr-user@lucene.apache.org Subject: Solr search \ special cases Hi, I have some strange cases while search with Solr. I have doc with names like: rule #22, rule +33, rule %44. When search for #22 or %55 or +33 Solr bring me as expected: rule #22 and rule +33 and rule %44. But when appending star (*) to each search (#22*, +33*, %55*), just the one with + sign bring rule +33, all other result none. Can someone explain? Thanks, Shay.