"?" next to field in Kibana

I had a document with a few fields and wanted to add a field "country" to it. So I did the following:

POST /test_vendeur/vendeur/1/_update?pretty
   "doc": {"pays": "France"}

Now next to my field "pays", there is a question mark and I can't do any searches on it. Is there any way of changing this?

Hey @tomak, where are you seeing the question mark? When you insert strings into Elasticsearch by default it stores a "text" and a "keyword" field for your string, https://www.elastic.co/blog/strings-are-dead-long-live-strings does a good job explaining why. You'll be able to do a full-text search against the "text" field and you can do terms aggregations/etc. against the "keyword" field.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.