# Possible to search field result where field does not exist in second query?

**URL:** <https://discuss.elastic.co/t/possible-to-search-field-result-where-field-does-not-exist-in-second-query/65281>\
**Category:** Kibana\
**Created:** [November 7, 2016, 9:20pm UTC](https://discuss.elastic.co/t/possible-to-search-field-result-where-field-does-not-exist-in-second-query/65281 "2016-11-07T21:20:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin\_Henderson](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@Justin\_Henderson](https://discuss.elastic.co/u/Justin_Henderson)\
**Post date:** [November 7, 2016, 9:20pm UTC](https://discuss.elastic.co/t/possible-to-search-field-result-where-field-does-not-exist-in-second-query/65281/1 "2016-11-07T21:20:55Z")

</div>

I'm trying to find a way to get Kibana to perform a query that excludes content from another query using specific field values. I know Elasticsearch is not a relational database but I would assume there is a way to easily perform a traditional SELECT name FROM products WHERE product\_category\_id NOT IN (SELECT product\_category\_id FROM product\_category WHERE type = 'development').

Basically I have two data types where it would be extremely helpful to use the field value results of one query to filter out another query using Kibana. I know this can be done using an Elasticsearch client like Python but that is not user friendly for the end users.

Any thoughts?

---

<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:** [December 5, 2016, 9:20pm UTC](https://discuss.elastic.co/t/possible-to-search-field-result-where-field-does-not-exist-in-second-query/65281/2 "2016-12-05T21:20:58Z")

</div>

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