LoginSignup
246
237

More than 5 years have passed since last update.

kibanaで使えるlucene query

Last updated at Posted at 2013-11-18

ageが20かつnameが太郎(SQLのAND)

age:20 AND name:"太郎"

ageが20かnameが太郎(SQLのOR)

age:20 OR name:"太郎"

正規表現

name:/joh?n(ath[oa]n)/

ageが1か2(SQLのIN)

age:(1 2)

ageが20ではない(SQLの!=)

-age:20

または

NOT(age:20)

ageが20から30の間(SQLのBETWEEN)

age:(20 TO 30)

ageが10以上20未満

age:(>=10 AND < 20)

dateが2012/01/01以前

date:[* TO 2012-01-01]

dateが2012/01/01 ~ 2012/12/31の間(型がdateである必要あり)

date:[2012-01-01 TO 2012-12-31]

時刻まで指定

date:[2014-01-11T17:04:39+09:00 TO *]
246
237
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
246
237