# Is it possible to check that specific data matches the query without loading it to the index?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-check-that-specific-data-matches-the-query-without-loading-it-to-the-index/232014>\
**Category:** Elasticsearch\
**Created:** [May 11, 2020, 12:51pm UTC](https://discuss.elastic.co/t/is-it-possible-to-check-that-specific-data-matches-the-query-without-loading-it-to-the-index/232014 "2020-05-11T12:51:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavlovdog](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pavlovdog/32/51341_2.png) [@pavlovdog](https://discuss.elastic.co/u/pavlovdog)\
**Post date:** [May 11, 2020, 12:51pm UTC](https://discuss.elastic.co/t/is-it-possible-to-check-that-specific-data-matches-the-query-without-loading-it-to-the-index/232014/1 "2020-05-11T12:51:53Z")

</div>

Hi, there!

Imagine that I have a specific data string and a specific query. The simple way to check that the query matches the data is to load the data into the Elastic index and run the online query. But can I do it without putting it into the index?

Maybe there are some open-source libraries that implement the Elastic search functionality offline, so I can call something like `getScore(data, query)`? Or it's possible to implement by using specific API endpoints?

Thanks in advance!

---

<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 8, 2020, 12:51pm UTC](https://discuss.elastic.co/t/is-it-possible-to-check-that-specific-data-matches-the-query-without-loading-it-to-the-index/232014/2 "2020-06-08T12:51:55Z")

</div>

Closed on June 8, 2020, 12:51pm UTC

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