elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
1.19k stars 24.85k forks source link

Phrase frequency query #79141

Open Bubbad opened 3 years ago

Bubbad commented 3 years ago

Hi,

My company has a use-case where we want to query for documents where a phrase occurs between X and Y times. Eg, we want to find all the documents where the phrase "Elastic stack" is written more than 3 times.

Is this some functionality you'd be interested in and think would be useful to others? We have our own plugin right now that adds a custom query type that achieves this behavior, but we are more than happy to discuss this and try to make a PR if you are interested.

elasticmachine commented 3 years ago

Pinging @elastic/es-search (Team:Search)

elasticsearchmachine commented 4 months ago

Pinging @elastic/es-search-relevance (Team:Search Relevance)