Hello,

Since your mapping seems valid, I suppose that the zipcode is cast to an
integer during indexation process, when building the document sent to ES.
Could you check the document source of "Moulins" by the CRUD get query ?

GET /ville/ville/<id of moulins>




-- 
Jérôme Mainaud
[email protected]

2014-09-19 14:39 GMT+02:00 Hari Rajaonarifetra <[email protected]>:

>
>
>> After populating index with this mapping, I just use
>> http://localhost:9200/_plugin/head/ for testing query.
>>
>>
> But when I try to find a city with zipcode:03000 (for example), there is
> no result. I check the index with the head navigator and I see that all
> zipcode beginning  with "0" is cut and indexed without "0" (03000 => 3000).
>
> --
> 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/8ee8a161-11e4-4394-a3c2-5ce0f768894a%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/8ee8a161-11e4-4394-a3c2-5ce0f768894a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAJXyu8n67Ab%2BBgCCfUWT222zxUpbhXD2We1GUeRLKV4diKSvhg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to