1- In elastic java rest client, How I can disable the fuzzy match?
with below source builder, I need only properly matching records. if I give 456-ABC, it should not return anything.
if I give just ABC or 123-ABC, it should return.
SearchSourceBuilder sourceBuilder = new SearchSourceBuilder();
sourceBuilder.query(QueryBuilders.boolQuery()
.must(QueryBuilders.rangeQuery("insertTime").gte(todayStartTimestamp).lte(todayEndTimestamp))
.must(QueryBuilders.matchQuery("id", "123-ABC"))
);
2- Instead of returning entire payload, Can I just get specific matching field
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.