massiveart / MassiveSearchBundle

MIT License
68 stars 24 forks source link

Fix Sorting of string fields (Mapping ElasticSearch) #88

Open thomasduenser opened 8 years ago

thomasduenser commented 8 years ago

The sorting of the fields doesn't work as expected. Seems like the mapping of the indexed fields should look like followed:

"type" :    "string",
"index":    "not_analyzed"

Further information can be found on the elasticsearch documentation: https://www.elastic.co/guide/en/elasticsearch/guide/current/mapping-intro.html https://www.elastic.co/guide/en/elasticsearch/guide/current/_sorting.html