Using fields in query_string worked but still other problems which I
meantioned earlier remains unsolved.


On Fri, Jan 31, 2014 at 9:21 PM, Mukul Gupta <[email protected]> wrote:

> Accept my apology. I forgot to post my mapping:
>
> {"acqindex":{"acqidx":{"properties":{"text":{"type":"string","index_analyzer":"str_index_analyzer","search_analyzer":"str_search_analyzer"}}}}}
>
> I'll try my query with fields option and will get back to you. Just one 
> question, why it is able to search for hotels then. If I search for hotels 
> then ElasticSearch is giving me results as expected.
>
> Also,Can you clear my other doubts which I mentioned above. I'll be thankful 
> to you.
>
> Thanks
>
>
>
>
> On Fri, Jan 31, 2014 at 9:15 PM, [email protected] <
> [email protected]> wrote:
>
>> You search for "hotel", but in the index, you have "Hotels".
>>
>> Note, you did not configure a mapping. Setting is there, but mapping is
>> missing.
>>
>> Also, with a query_string search "hotel", you search in the _all field,
>> so you should align your query with the field you use for indexing (the
>> 'text' field).
>>
>> Jörg
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "elasticsearch" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEBidh3acA7Aer4B6tfGxtVXjh_b2aXSQg8FfyfpfY9aQ%40mail.gmail.com
>> .
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAAVTvp7vNEzbR8RZ7j3u2vgZbMj2zgdrVnL6qYapmihkfTPbiw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to