Currently i am running elasticsearch in 1.4.2 and I trying to make it run in 7.2 , the problem that i found is in The method filteredQuery(MatchAllQueryBuilder, String, String) and filteredQuery(MatchAllQueryBuilder, QueryBuilder[]), i didn't found any alternative methode knowing that they are deprecated, but for this implementation of filteredQuery : filteredQuery(QueryBuilder,QueryBuilder) i found that i should use boolquery() with filter clause.
Please, If there's any suggestion, do not hesitate.
Thank You !
well, boolquery is for filteredQuery(QueryBuilder,QueryBuilder) , but for filteredQuery(MatchAllQueryBuilder, String, String) and filteredQuery(MatchAllQueryBuilder, QueryBuilder[]) I don't think it match the boolquery() implementation, can you give an example of how i should use boolquery for these two case of filteredQuery ?
Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.
A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.
Then based on this Kibana script we can find what would be the Java code.
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.