Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Query / Adjust Query Relevance easily #1341

Open
joemcelroy opened this issue Feb 16, 2024 · 0 comments
Open

Change Query / Adjust Query Relevance easily #1341

joemcelroy opened this issue Feb 16, 2024 · 0 comments

Comments

@joemcelroy
Copy link
Member

The problem

Currently Searchkit provides a "good default" query which does typo-tolerance, phrase matching and multi-match across the search fields provided.

Developers who wish to customise the query can do via getQuery function.

For developers who dont know Elasticsearch Query DSL and simply want to change the query, they struggle with knowing how to override the query.

Feature Request

Being able to tweak the Relevance Match query via configuration:

Example:

import { RelevanceMatch } from "searchkit"

  const results = await client.handleRequest(req.body, {
    getQuery: RelevanceMatch({ TypoTolerance: false, phaseSupport: false })
  });

This makes it easier to adjust the query to users need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant