I am facing above error in spring data elastic search . how to parse simple query string in query builder? my code is
final QueryBuilder searchquery = QueryBuilders.boolQuery()
.should(QueryBuilders.simpleQueryStringQuery(text)
.field("question")
.lenient(true));
final NativeSearchQuery build = new NativeSearchQueryBuilder().withQuery(searchquery)
.withPageable(PageRequest.of(0, 5))
.build();
final List<FaqTranslationEntity> questions = this.elasticsearchTemplate.queryForList(build, FaqTranslationEntity.class);
i have share DSL query code above plz check . is this queryBuilder parsing error ? what is solution. same code works for queryStringQuery but for simpleQueryStringQuery fails.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.