-
Specify a field must contain XX charactersGET /beauties/my/_search?q=Name:Chang Wei
-
The seizure of a field that does not contain XX characters of all contentGET / beauties / my / _search q = -Name:? Ruru (search results, Name not included Ruru)
-
No matter which field, just contains the specified character, you can returnGET /beauties/my/_search?q=RuruPrinciple: Internal ES, not to see what each field is not included Ruru, but a special search field: _all.
_all
principle
:
ES when a record is inserted, will automatically generate a _all field, it will all
ES inserted in a document, it contains a plurality of field. At this time, automatically ES plurality of field values, in series with all of the character string, the character string into a long, as _all field values while index
If you later when searching, not for a specified search field, then
the default search field _all
, which is containing all the values of the field
for example
{
"name": "jack",
"age": 26,
"email": "
[email protected]",
"address": "guamgzhou"
}
"Jack 26
[email protected]
establish corresponding inverted index after guangzhou", as the value of this _all field of a document, at the same time word