-
Notifications
You must be signed in to change notification settings - Fork 0
ElasticSearch
alex [dot] kramer [at] g_m_a_i_l [dot] com edited this page Mar 25, 2020
·
9 revisions
Query by:
- index name prefix
- required field
- required non-empty field
- fuzzy search field
- required-to-be-empty field
- and limit results to 100
GET index_name_prefix*/_search?size=100
{
"query": {
"bool": {
"must": [
{"exists": {"field": "required_field_name"}},
{"regexp": {"non_empty_field_name": ".+"}},
{ "match": { "search_field_name": "my special search query" }}
],
"must_not": [
{
"regexp": {
"required_to_be_empty_field_name": ".+"
}
}
]
}
}
}