Range Query

Hello,

I wonder why the Range Query doesnt seem to work properly. What am I doing
wrong? I'm using the ES-Head-GUI and doing a simple range query on a field
from 1 to 499. The result now also contains values like 1799. It seems
ElasticSearch is doing a string comparison. The value, however, is clearly
integer as can be seen if I set ESHead to return the results as JSON.
Numbers are not quoted and appear in blue.

Thank you!

Nevermind. You can ignore this. I recreated the database from scratch and
the problem went away. I suppose this is because a different mapping as
string was automatically created earlier. This is still a bit confusing IMO

  • especially as there is currently no GUI for those mappings AFAICT.

You can see the mappings for a specific type using the get mappings API.

On Tue, Sep 27, 2011 at 4:37 PM, ghosh ghosh@q-one.eu wrote:

Nevermind. You can ignore this. I recreated the database from scratch and
the problem went away. I suppose this is because a different mapping as
string was automatically created earlier. This is still a bit confusing IMO

  • especially as there is currently no GUI for those mappings AFAICT.