Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Beyond SQL Features

eliranmoyal edited this page Oct 30, 2015 · 5 revisions

Some more features using ElasticSearch capabilities

  1. ES TopHits
  2. ES MISSING
  3. ES STATS
  4. ES EXTENDED_STATS
  5. ES PERCENTILES
  6. ES TERMS/TERM
  7. ES IDS syntax: IDS_QUERY(type, ids..)
  8. 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

Clone this wiki locally