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

Add a way to provide a custom Elasticsearch query #14843

Merged
merged 9 commits into from
Dec 7, 2023

Conversation

MikeAlhayek
Copy link
Member

@MikeAlhayek MikeAlhayek commented Dec 5, 2023

Fix #14842

Are you can see in the following screencast, I was able to define a the following custom query to perform advance operation like fuzziness

{
  "query": {
    "match": {
      "Content.ContentItem.FullText": {
        "query": "{{ term }}",
        "fuzziness": "AUTO",
        "analyzer": "whitespace"
      }
    }
  }
}

elastic-search-ex

@Skrypt
Copy link
Contributor

Skrypt commented Dec 7, 2023

Looks good from first quick look.

@MikeAlhayek MikeAlhayek enabled auto-merge (squash) December 7, 2023 19:55
@MikeAlhayek MikeAlhayek merged commit 5468a78 into main Dec 7, 2023
3 checks passed
@MikeAlhayek MikeAlhayek deleted the ma/es-default-query branch December 7, 2023 19:57
urbanit pushed a commit to urbanit/OrchardCore that referenced this pull request Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide a way to run a custom Elasticsearch query as the default search
2 participants