Is there any change in the query-syntax of Elasticsearch?

Hi, everyone.
I had written this query when I was using Elasticsearch (5.6). -->

<
{
from: params.fetch(:offset),
size: params.fetch(:size),
_source: {
excludes: ["attachments.*"]
},
sort: SortBuilder.call(params: params),
highlight: HighlightBuilder.call,
query: {
function_score: {
functions: FunctionsBuilder.call(params: params),
query: {
bool: {
filter: FilterBuilder.call(params: params),
must: ,
should: [TermBuilder.call(key: :id, value: params.fetch(:contact_ids))]
}
}
}
}
}

Now, after the log-4j incidence, we are using the 7.4.0 version.

Now, this query is running properly but it is not returning the same hash as it was doing before.
So, my question is, 'Is there any change in the way of writing the Queries' ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.