# Which filter could be used on boolean field

**URL:** <https://discuss.elastic.co/t/which-filter-could-be-used-on-boolean-field/12107>\
**Category:** Elasticsearch\
**Created:** [May 24, 2013, 2:21am UTC](https://discuss.elastic.co/t/which-filter-could-be-used-on-boolean-field/12107 "2013-05-24T02:21:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jingang\_Wang](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@Jingang\_Wang](https://discuss.elastic.co/u/Jingang_Wang)\
**Post date:** [May 24, 2013, 2:21am UTC](https://discuss.elastic.co/t/which-filter-could-be-used-on-boolean-field/12107/1 "2013-05-24T02:21:52Z")

</div>

Hi all,

I have created an index using wikipeida river, which possesses a mapping as  
follows.

mappings: {  
page: {  
properties: {  
title: {  
type: string  
}text: {  
type: string  
}disambiguation: {  
type: boolean  
}category: {  
type: string  
}stub: {  
type: boolean  
}link: {  
type: string  
}special: {  
type: boolean  
}redirect: {  
type: boolean  
}  
}  
}

As you may find, there are some boolean field.  
Now I want to filter the documents with the "disambiguation" filter is  
true, but I can't find which filter I can make use of.

Thanks for your help.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [May 24, 2013, 3:58am UTC](https://discuss.elastic.co/t/which-filter-could-be-used-on-boolean-field/12107/2 "2013-05-24T03:58:53Z")

</div>

The term filter is what you are looking for:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

--  
Ivan

On Thu, May 23, 2013 at 7:21 PM, Jingang Wang [bitwjg@gmail.com](mailto:bitwjg@gmail.com) wrote:

> Hi all,
> 
> I have created an index using wikipeida river, which possesses a mapping  
> as follows.
> 
> mappings: {  
> page: {  
> properties: {  
> title: {  
> type: string  
> }text: {  
> type: string  
> }disambiguation: {  
> type: boolean  
> }category: {  
> type: string  
> }stub: {  
> type: boolean  
> }link: {  
> type: string  
> }special: {  
> type: boolean  
> }redirect: {  
> type: boolean  
> }  
> }  
> }
> 
> As you may find, there are some boolean field.  
> Now I want to filter the documents with the "disambiguation" filter is  
> true, but I can't find which filter I can make use of.
> 
> Thanks for your help.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 2:35am UTC](https://discuss.elastic.co/t/which-filter-could-be-used-on-boolean-field/12107/3 "2017-07-06T02:35:00Z")

</div>


