Relative Content

Tag Archive for elasticsearchopensearch

Dump vs multi-search

I have a list of values for a handful of attributes.
For each value, I want to retrieve a single document that matches that value (if there are multiple, I only need the first one that comes up).
What is the most optimal way to do so?

In OpenSearch query, I want to use script inside the must query

I need to verify whether a candidate’s total experience is zero before returning any associated documents or data. Conversely, if the total experience is not zero, I want to retrieve the documents. Despite my attempts to access this information using various parameters such as params._source.total_experiences, ctx._source.total_experiences, and doc[‘total_experiences’], none of these methods have yielded the desired results. It seems that the mechanism to retrieve this data is not functioning correctly in any of these scenarios. Hence, I seek alternative solutions to effectively ascertain and act upon the total experience value as per the specified criteria.