I\'m developing a system which is planning to use elasticsearch as an data repository. I\'m trying to choose the best way to develop my application that can index and query data
Also for like queries in Elasticsearch using Spring Boot you can make something like this:
Car car = new Car();
car.setName(new InnerField("name", "имя"));
QueryBuilder builder = QueryBuilders
.boolQuery()
.should(QueryBuilders.regexpQuery("name.ru", ".*" + name + ".*"))
.should(QueryBuilders.regexpQuery("name.kk", ".*" + name + ".*"))
.should(QueryBuilders.regexpQuery("name.qq", ".*" + name + ".*"));
NativeSearchQuery build = new NativeSearchQueryBuilder().withQuery(builder).build();
elasticsearchOperations.queryForList(build, tClass);