2 years ago

#66649

test-img

hijarian

How to allow single quotes in elasticsearch simple_query_string query

I am working on implementing Elasticsearch-backed search field on a content website.

simple_query_string query type gives me almost everything I would want, except one detail: it allows only double quote characters for phrase grouping. But I know from hard data that our visitors try to use single quotes for exact searches all the time.

Is there a way to allow phrase grouping in ES queries by both double and single quotes? Should I write my own query-time analyzer for that?

elasticsearch

full-text-search

0 Answers

Your Answer

Accepted video resources