Skip to content

Instantly share code, notes, and snippets.

@leberknecht
Created March 10, 2022 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leberknecht/ea1692a0281fd832ecc68462c0bb6d33 to your computer and use it in GitHub Desktop.
Save leberknecht/ea1692a0281fd832ecc68462c0bb6d33 to your computer and use it in GitHub Desktop.
Elasticsearch special character meanings
+ => term must be present
- => tern must not be present
&& => not 100% sure, lucene says `can be used in place of the word AND`
|| => not 100% sure, lucene says `can be used in place of the word OR`
> => can be used in comparison on range queries like `age:(+>=10 +<20)`
< => can be used in comparison on range queries like `age:(+>=10 +<20)`
= => can be used in comparison on range queries like `age:(+>=10 +<20)`
( => range query opening
) => range query closing
{ => exclusive range query opening
} => exclusive range query closing
[ => inclusive range query opening
] => inclusive range query closing
" => used for exact term as in `"Match this whole thing"`
~ => Fuzzy matching
* => wildcard
? => can occure but doesnt have to
: => end-of-fieldname marker (as in `age:(+>=10 +<20)`)
\ => escape character
/ => regex delimiter
! => not sure
^ => not sure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment