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

**URL:** <https://discuss.elastic.co/t/is-there-any-change-in-the-query-syntax-of-elasticsearch/305084>\
**Category:** Elasticsearch\
**Created:** [May 18, 2022, 2:42pm UTC](https://discuss.elastic.co/t/is-there-any-change-in-the-query-syntax-of-elasticsearch/305084 "2022-05-18T14:42:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashrut](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@Ashrut](https://discuss.elastic.co/u/Ashrut)\
**Post date:** [May 18, 2022, 2:42pm UTC](https://discuss.elastic.co/t/is-there-any-change-in-the-query-syntax-of-elasticsearch/305084/1 "2022-05-18T14:42:19Z")

</div>

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' ?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 15, 2022, 2:43pm UTC](https://discuss.elastic.co/t/is-there-any-change-in-the-query-syntax-of-elasticsearch/305084/2 "2022-06-15T14:43:09Z")

</div>

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