forked from NLPchina/elasticsearch-sql
-
Notifications
You must be signed in to change notification settings - Fork 1
Beyond SQL Features
eliranmoyal edited this page Oct 30, 2015
·
5 revisions
- ES TopHits
- ES MISSING
- ES STATS
- ES EXTENDED_STATS
- ES PERCENTILES
- ES TERMS/TERM
- ES IDS syntax:
IDS_QUERY(type, ids..)
- ES SCRIPTED_METRIC (read about it on Aggregations page)
####examples
SELECT * FROM account where nickname is not missing
SELECT * FROM account where nickname is missing
SELECT * FROM account where name = IN_TERMS(hattie,alis)
SELECT * FROM account where age = TERM(4)
SELECT * FROM account where _id = IDS_QUERY(account,1,2,5)
SELECT stats(age) FROM account
SELECT extended_stats(age) FROM account
SELECT percentiles(age) FROM accounts