Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds support for AND, OR, custom keyword matching
Why are these changes being introduced: * TIMDEX currently ORs all keyword searches together which leads to a lot of search results, many of which are not relevant (to the extreme of sometimes having no records returned that have all the terms which is sometimes the expectation) Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/GDT-281 How does this address that need: * Leverages OpenSearch `minimum_should_match` [feature](https://opensearch.org/docs/latest/query-dsl/minimum-should-match/#valid-values) along with a GraphQL feature to choose a preconfigured value or supply your own Document any side effects to this change: * once we get feedback from stakeholders, it is likely we'll want to adjust the options available, document them more thoroughly in the API docs, and provide them with meaningful names, as well as probably remove some of the options
- Loading branch information
Showing
2 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters