I have indexed a number of file paths into elastic search without without setting any mappings, so I'm letting elasticsearch detect the field types. It has detected this field as {"type" : "string"} which would appear to be ok. The file paths are:
/file/file1
/file/file2
/file/file5
/file/file3
/file/file4
When I do a query and tell it to sort on the file path, the file paths are returned in their original order and it appears that they all receive the same sort value. Is this an issue caused by not setting a mapping? How can I get elasticsearch to sort these values in the correct order?