....
"type": "text",
"analyzer": "keyword"
....
"analyzer": "whitespace"
для нужного поля. The map is sorted according to the natural ordering of its keys, or by a Comparator provided at map creation time, depending on which constructor is used.
Note that this implementation is not synchronized. If multiple threads access a map concurrently, and at least one of the threads modifies the map structurally, it must be synchronized externally. (A structural modification is any operation that adds or deletes one or more mappings; merely changing the value associated with an existing key is not a structural modification.) This is typically accomplished by synchronizing on some object that naturally encapsulates the map. If no such object exists, the map should be "wrapped" using the Collections.synchronizedSortedMap method. This is best done at creation time, to prevent accidental unsynchronized access to the map:
SortedMap m = Collections.synchronizedSortedMap(new TreeMap(...));
The iterators returned by the iterator method of the collections returned by all of this class's "collection view methods" are fail-fast: if the map is structurally modified at any time after the iterator is created, in any way except through the iterator's own remove method, the iterator will throw a ConcurrentModificationException. Thus, in the face of concurrent modification, the iterator fails quickly and cleanly, rather than risking arbitrary, non-deterministic behavior at an undetermined time in the future.
1) Если у вас есть поле, и вам нужно по нему искать как по keyword, так и со своим анализатором, то нужно прописать в мапинге несколько "полей" с разными анализаторами - https://www.elastic.co/guide/en/elasticsearch/refe...
Вот как в примере, есть поле city и у него при индексировании будет образовываться два поля, само поле city и поле city.raw
2) Для поиска samsung% используете например https://www.elastic.co/guide/en/elasticsearch/refe...
или https://www.elastic.co/guide/en/elasticsearch/refe...
Ну а вообще-то лучше правильно разбить ваши строки на термы, может быть даже сделать это в несколько полей с несколькими анализаторами (см. п1)