I have to build complex request to elastic search, using spring.
Filter looks like:
field1 equals “string1”
AND
field2 equals “string2”
AND
(field3 matches “regex3” OR field4 matches “regex4”)
I'm trying to use class Criteria to build this request, but I cannot find examples how to use regex in it.
I'm new in elasticsearch, so if you know another practice how to get data with this filter, please tell me :)
Spring Data Elasticsearch 在Criteria
类中不支持它,因为没有可用的 Elasticsearch 搜索来处理使用正则表达式。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.