[GH-ISSUE #64] How do I specify "minimum_should_match" or similar? #65

Closed
opened 2026-02-27 15:54:48 +03:00 by kerem · 1 comment
Owner

Originally created by @webstruck on GitHub (Aug 14, 2017).
Original GitHub issue: https://github.com/RD17/ambar/issues/64

Say I'm searching "red led stays on" and my document contains the text

"Red LED stays on for 1. One or more defective or 1. Load test the batteries and replace if
more than 18 Hrs. damaged cells. necessary."

So I get the result when I perform phrase search.

But if I search "red led stays on all the time", I get no result. I would like to be able to say that minimum 50% terms match is enough to get the result.

I found following in ElasticSearch documentation.

Controlling Precision

Originally created by @webstruck on GitHub (Aug 14, 2017). Original GitHub issue: https://github.com/RD17/ambar/issues/64 Say I'm searching **"red led stays on"** and my document contains the text "Red LED stays on for 1. One or more defective or 1. Load test the batteries and replace if more than 18 Hrs. damaged cells. necessary." So I get the result when I perform phrase search. But if I search **"red led stays on all the time"**, I get no result. I would like to be able to say that minimum 50% terms match is enough to get the result. I found following in ElasticSearch documentation. [Controlling Precision](https://www.elastic.co/guide/en/elasticsearch/guide/current/match-multi-word.html#match-precision)
kerem 2026-02-27 15:54:48 +03:00
Author
Owner

@stale[bot] commented on GitHub (Sep 10, 2018):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

<!-- gh-comment-id:419950057 --> @stale[bot] commented on GitHub (Sep 10, 2018): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ambar#65
No description provided.