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 James Lin <gu...@gmail.com> on 2011/10/05 21:25:35 UTC
make search "hotels in auckland" match "auckland" in index
Hi,
I got an area index which only has one area name field, the field type is
using the "text_en_splitting"
some sample data will be: "Auckland", "North Shore" etc.
If I have a search query "hotels in auckland", the result doesn't match
anything. How would I change the index config to make it match "Auckland"?
Cheers
James
Re: make search "hotels in auckland" match "auckland" in index
Posted by James Lin <gu...@gmail.com>.
wow awesome hahaha thanks!
On Oct 6, 2011 8:36 AM, "Gora Mohanty" <go...@mimirtech.com> wrote:
> On Thu, Oct 6, 2011 at 12:55 AM, James Lin <gu...@gmail.com> wrote:
>> Hi,
>>
>> I got an area index which only has one area name field, the field type is
>> using the "text_en_splitting"
>> some sample data will be: "Auckland", "North Shore" etc.
>>
>> If I have a search query "hotels in auckland", the result doesn't match
>> anything. How would I change the index config to make it match
"Auckland"?
>
> It might be that the defaultOperator in your schema.xml is set to
> AND. Try setting it to OR instead.
>
> Regards,
> Gora
Re: make search "hotels in auckland" match "auckland" in index
Posted by Gora Mohanty <go...@mimirtech.com>.
On Thu, Oct 6, 2011 at 12:55 AM, James Lin <gu...@gmail.com> wrote:
> Hi,
>
> I got an area index which only has one area name field, the field type is
> using the "text_en_splitting"
> some sample data will be: "Auckland", "North Shore" etc.
>
> If I have a search query "hotels in auckland", the result doesn't match
> anything. How would I change the index config to make it match "Auckland"?
It might be that the defaultOperator in your schema.xml is set to
AND. Try setting it to OR instead.
Regards,
Gora