The documentation on prefix queries states: "Matches documents that have fields containing terms with a specified prefix (not analyzed)".
I took this to mean that the mapping for the field had to be not_analized. However, after some experimentation, I found that it does sort of work on an analysed field, but the query is not analysed. Eg. I found I could use a custom analyser on the field that uses a keyword tokenizer and a lowercase token filter and, so long as I lower case the query string myself, I can use a prefix query to get a case insensitive prefix match. So I am wondering if this is valid and, if so, am I alone in thinking the documentation is misleading? Perhaps it should state that the query is not analysed and to take care when matching on an analysed field? - David -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5f278ca2-9c2c-417b-a375-13e56682131e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.