elasticsearch filter by length of a string field

后端 未结 2 2025
感情败类
感情败类 2021-01-12 21:25

i am trying to get records the has in \'title\' more then X characters.

NOTE: not all records contains title field.

i have tried:

GET books/_         


        
2条回答
  •  死守一世寂寞
    2021-01-12 21:56

    You can also use custom tokenizers to count the number of characters. Check this answer for a possible help: https://stackoverflow.com/a/47556098/463846

提交回复
热议问题