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

adding query parser like querqy to type queries #893

Open
MohamedFawzy opened this issue Jul 25, 2024 · 0 comments
Open

adding query parser like querqy to type queries #893

MohamedFawzy opened this issue Jul 25, 2024 · 0 comments

Comments

@MohamedFawzy
Copy link

currently i have a query which looks like this:

query := esTypes.Query{
		MultiMatch: &esTypes.MultiMatchQuery{
			Query:  "xyz",
			Fields: ['a', 'b', 'c']
			Type: &textquerytype.TextQueryType{
				Name: textquerytype.Crossfields.Name,
			},
			Operator:           &operator.Or,
			TieBreaker:         &tieBreaker,
			MinimumShouldMatch: minShouldMatch,
		},
	}

i want to use querqy with elastic typed queries
https://docs.querqy.org/

this would be the equavlent to multimatch using querqy

"querqy": {
              "matching_query": {
                "query": "fishing"
              },
              "query_fields": ["title", "content"],
              "rewriters": ["my_replace_rewriter", "my_common_rules"]
            }

the question here how can i do this currently without override most of the package structs like Query struct for e.g does it support custom query types since i didn't find anything mentioning this.

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

No branches or pull requests

1 participant