Skip to content
Snippets Groups Projects
Commit 715cfebf authored by Francé Wilke's avatar Francé Wilke
Browse files

Fix QueryTerm

parent 7342f205
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ type SearchRequestBody struct {
type Query struct {
//one of:
Match *QueryNameValue `json:"match,omitempty" doc:"<field>:<value>"`
Term *QueryNameValue `json:"term,omitempty"`
Term *QueryTerm `json:"term,omitempty"`
Range *QueryRange `json:"range,omitempty"`
MultiMatch *QueryMultiMatch `json:"multi_match,omitempty"`
Bool *QueryBool `json:"bool,omitempty"`
......@@ -51,6 +51,8 @@ type Query struct {
Wildcard *QueryNameValue `json:"wildcard,omitempty"` //https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html
}
type QueryTerm map[string]string //<oper>:<value>
type QueryMultiMatch struct {
Query string `json:"query" doc:"Full value match search in selected fields"`
Fields []string `json:"fields,omitempty" doc:"List of fields"`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment