Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matching on float field doesn't return correct result. #1203

Closed
anandaverma opened this issue May 8, 2014 · 1 comment
Closed

Matching on float field doesn't return correct result. #1203

anandaverma opened this issue May 8, 2014 · 1 comment

Comments

@anandaverma
Copy link

I have a field payload, which is stored as float in ElasticSearch
"consumer-template" : { "order" : 0, "template" : "consumer-logstash-*", "settings" : { "index.analysis.analyzer.default.stopwords" : "_none_", "index.refresh_interval" : "30s", "index.analysis.analyzer.default.type" : "standard" }, "mappings" : { "_default_" : { "_source" : { "enabled" : true }, "dynamic_templates" : [ { "string_fields" : { "mapping" : { "type" : "multi_field", "fields" : { "{name}.raw" : { "index" : "not_analyzed", "type" : "string" }, "{name}" : { "index" : "analyzed", "omit_norms" : true, "index_options" : "docs", "type" : "string" } } }, "match_mapping_type" : "string", "match" : "*" } } ], "properties" : { "datasize" : { "type" : "float" }, "billingid" : { "type" : "float" }, "payloadid" : { "type" : "float" }, "committime" : { "type" : "float" }, "geoip" : { "dynamic" : true, "path" : "full", "properties" : { "location" : { "type" : "geo_point" } }, "type" : "object" }, "executiontime" : { "type" : "float" }, "@version" : { "index" : "not_analyzed", "type" : "string" } }, "_all" : { "enabled" : false } } } },

Now when I am creating filter to get record for a specific payloadid. Its showing me many records with similar payloadid.

e.g. when i created a filter for payloadid:3318216337. It showed me following records:
3318216337
3318216392
3318216325
.
.

@rashidkpc
Copy link
Contributor

Kibana does not modify your query in any fashion, this would be an elasticsearch issue if it is a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@rashidkpc @anandaverma and others