You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by PAVAN <pa...@gmail.com> on 2014/04/28 09:12:30 UTC
space issue in search results
I have indexed title in the following way.
honda cars in rajaji nagar
honda cars in rajajinagar.
suppose if i search for
honda cars in rajainagar (OR)
honda cars in rajaji nagar
it has to display both the results.
Anybody help me how can we do this.
--
View this message in context: http://lucene.472066.n3.nabble.com/space-issue-in-search-results-tp4133421.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: space issue in search results
Posted by Gora Mohanty <go...@mimirtech.com>.
On 28 April 2014 12:42, PAVAN <pa...@gmail.com> wrote:
>
> I have indexed title in the following way.
>
> honda cars in rajaji nagar
> honda cars in rajajinagar.
>
> suppose if i search for
>
> honda cars in rajainagar (OR)
> honda cars in rajaji nagar
>
> it has to display both the results.
Please do not start multiple threads with the same question.
The straightforward way to do what you want is to use synonyms:
rajaji nagar, rajajinagar
as presumably you want to collapse spaces only for things like
place names.
Regards,
Gora