Question

When I search with numbers in Kibana to get the data from elastic search, I am not getting any results.

I have below message stored in elastic search. If I search with 5723243287337 or 234234535, I do not get any results. But if I search with PHOENIX or any other text, I am getting results from elastic search.

13-04-13,ST,FRTTH-01,Rialto,CA,PHOENIX,AZ,85053,2.32,6.22,5723243287337,234234535,SO,1

Is there any known bug or am I missing any configuration. Appreciate any help. Thanks.

Was it helpful?

Solution

When indexing CSV data, it is better to define mappings for each of the fields. Otherwise, ES would try to guess the data type, and then do the indexing, leading to unexpected results. See here for explicit mappings.

OTHER TIPS

Try to add quatation. Elastic search will treat "number" as a string, like other text.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top