Adds a single prefix query to this search
Adds a single prefix query to this search
- the field and prefix value
this
Adds a single string query to this search
Adds a single string query to this search
the query string
Expects a query in json format and sets the query of the search request.
Expects a query in json format and sets the query of the search request. Query must be valid json beginning with '{' and ending with '}'. Field names must be double quoted.
Example:
search in "*" types("users", "tweets") limit 5 rawQuery { """{ "prefix": { "bands": { "prefix": "coldplay", "boost": 5.0, "rewrite": "yes" } } }""" } searchType SearchType.Scan
Adds a single regex query to this search
Adds a single regex query to this search
- the field and regex value
this
This method introduces zero or more script field definitions into the search construction
This method introduces zero or more script field definitions into the search construction
zero or more ScriptFieldDefinition instances
this, an instance of SearchDefinition
(Since version 1.3.0) Facets are deprecated, use aggregations
(Since version 1.3.0) Facets are deprecated, use aggregations
(Since version 1.5) Use postFilter as a direct replacement keyword. Filter was removed in elasticsearch.