# Include\_in\_all for boolean types

**URL:** <https://discuss.elastic.co/t/include-in-all-for-boolean-types/3599>\
**Category:** Elasticsearch\
**Created:** [November 26, 2010, 9:34am UTC](https://discuss.elastic.co/t/include-in-all-for-boolean-types/3599 "2010-11-26T09:34:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sezgin\_kucukkaraasla](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@sezgin\_kucukkaraasla](https://discuss.elastic.co/u/sezgin_kucukkaraasla)\
**Post date:** [November 26, 2010, 9:34am UTC](https://discuss.elastic.co/t/include-in-all-for-boolean-types/3599/1 "2010-11-26T09:34:13Z")

</div>

Hi,  
I'm using the 0.13.0 version of elasticsearch and noticed that  
"include\_in\_all" setting does not seem to work for boolean types. Here is  
the mapping that I put for my index:

{  
"type3":{  
"\_all":{"enabled":true,"analyzer":"rossWhitespace"},  
"properties":{  
"prop7":{"include\_in\_all":true,"store":"no","type":"date"},  
"prop8":{"include\_in\_all":true,"store":"no","type":"boolean"}  
}  
}  
}

"rossWhitespace" is an analyzer that I construct with the following  
settings:

index.analysis.analyzer.rossWhitespace.tokenizer: whitespace  
index.analysis.analyzer.rossWhitespace.filter.0: lowercase

Here is the mapping that I get when I call the get mapping rest api:

{  
"testindex2":{  
"type3":{  
"properties":{

"prop7":{"include\_in\_all":true,"format":"dateOptionalTime","type":"date"},  
"prop8":{"type":"boolean"}  
},  
"\_all":{"analyzer":"rossWhitespace"}  
}  
}  
}

Nothing is changed when I set "include\_in\_all" to "false" eighter.

Regards,  
Sezgin Kucukkaraaslan  
[www.ifountain.com](http://www.ifountain.com)

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [November 26, 2010, 8:34pm UTC](https://discuss.elastic.co/t/include-in-all-for-boolean-types/3599/2 "2010-11-26T20:34:26Z")

</div>

Boolean fields don't participate in include\_in\_all, I though that it does  
not make sense, but have no problem with enabling it if you think it does.

2010/11/26 sezgin küçükkaraaslan [sezo104@gmail.com](mailto:sezo104@gmail.com)

> Hi,  
> I'm using the 0.13.0 version of elasticsearch and noticed that  
> "include\_in\_all" setting does not seem to work for boolean types. Here is  
> the mapping that I put for my index:
> 
> {  
> "type3":{  
> "\_all":{"enabled":true,"analyzer":"rossWhitespace"},  
> "properties":{  
> "prop7":{"include\_in\_all":true,"store":"no","type":"date"},  
> "prop8":{"include\_in\_all":true,"store":"no","type":"boolean"}  
> }  
> }  
> }
> 
> "rossWhitespace" is an analyzer that I construct with the following  
> settings:
> 
> index.analysis.analyzer.rossWhitespace.tokenizer: whitespace  
> index.analysis.analyzer.rossWhitespace.filter.0: lowercase
> 
> Here is the mapping that I get when I call the get mapping rest api:
> 
> {  
> "testindex2":{  
> "type3":{  
> "properties":{  
> "prop7":{"include\_in\_all":true,"format":"dateOptionalTime","type":"date"},
> 
> ```
> "prop8":{"type":"boolean"}
> },
> "_all":{"analyzer":"rossWhitespace"}
> }
> }
> 
> ```
> 
> }
> 
> Nothing is changed when I set "include\_in\_all" to "false" eighter.
> 
> Regards,  
> Sezgin Kucukkaraaslan  
> [www.ifountain.com](http://www.ifountain.com)

---

<div class="post-metadata">

**Author:** ![sezgin\_kucukkaraasla](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@sezgin\_kucukkaraasla](https://discuss.elastic.co/u/sezgin_kucukkaraasla)\
**Post date:** [November 29, 2010, 9:21am UTC](https://discuss.elastic.co/t/include-in-all-for-boolean-types/3599/3 "2010-11-29T09:21:26Z")

</div>

That would be great. Thanks...

Sezgin Kucukkaraaslan  
[www.ifountain.com](http://www.ifountain.com)

On Fri, Nov 26, 2010 at 10:34 PM, Shay Banon  
[shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)wrote:

> Boolean fields don't participate in include\_in\_all, I though that it does  
> not make sense, but have no problem with enabling it if you think it does.
> 
> 2010/11/26 sezgin küçükkaraaslan [sezo104@gmail.com](mailto:sezo104@gmail.com)
> 
> Hi,
> 
> > I'm using the 0.13.0 version of elasticsearch and noticed that  
> > "include\_in\_all" setting does not seem to work for boolean types. Here is  
> > the mapping that I put for my index:
> > 
> > {  
> > "type3":{  
> > "\_all":{"enabled":true,"analyzer":"rossWhitespace"},  
> > "properties":{  
> > "prop7":{"include\_in\_all":true,"store":"no","type":"date"},
> > 
> > "prop8":{"include\_in\_all":true,"store":"no","type":"boolean"}  
> > }  
> > }  
> > }
> > 
> > "rossWhitespace" is an analyzer that I construct with the following  
> > settings:
> > 
> > index.analysis.analyzer.rossWhitespace.tokenizer: whitespace  
> > index.analysis.analyzer.rossWhitespace.filter.0: lowercase
> > 
> > Here is the mapping that I get when I call the get mapping rest api:
> > 
> > {  
> > "testindex2":{  
> > "type3":{  
> > "properties":{  
> > "prop7":{"include\_in\_all":true,"format":"dateOptionalTime","type":"date"},
> > 
> > ```
> > "prop8":{"type":"boolean"}
> > },
> > "_all":{"analyzer":"rossWhitespace"}
> > }
> > }
> > 
> > ```
> > 
> > }
> > 
> > Nothing is changed when I set "include\_in\_all" to "false" eighter.
> > 
> > Regards,  
> > Sezgin Kucukkaraaslan  
> > [www.ifountain.com](http://www.ifountain.com)

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [December 2, 2010, 5:03pm UTC](https://discuss.elastic.co/t/include-in-all-for-boolean-types/3599/4 "2010-12-02T17:03:12Z")

</div>

Can you open an issue for this, just that I don't forget...

2010/11/29 sezgin küçükkaraaslan [sezo104@gmail.com](mailto:sezo104@gmail.com)

> That would be great. Thanks...
> 
> Sezgin Kucukkaraaslan  
> [www.ifountain.com](http://www.ifountain.com)
> 
> On Fri, Nov 26, 2010 at 10:34 PM, Shay Banon \<[shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)
> 
> > wrote:
> 
> > Boolean fields don't participate in include\_in\_all, I though that it does  
> > not make sense, but have no problem with enabling it if you think it does.
> > 
> > 2010/11/26 sezgin küçükkaraaslan [sezo104@gmail.com](mailto:sezo104@gmail.com)
> > 
> > Hi,
> > 
> > > I'm using the 0.13.0 version of elasticsearch and noticed that  
> > > "include\_in\_all" setting does not seem to work for boolean types. Here is  
> > > the mapping that I put for my index:
> > > 
> > > {  
> > > "type3":{  
> > > "\_all":{"enabled":true,"analyzer":"rossWhitespace"},  
> > > "properties":{  
> > > "prop7":{"include\_in\_all":true,"store":"no","type":"date"},
> > > 
> > > "prop8":{"include\_in\_all":true,"store":"no","type":"boolean"}  
> > > }  
> > > }  
> > > }
> > > 
> > > "rossWhitespace" is an analyzer that I construct with the following  
> > > settings:
> > > 
> > > index.analysis.analyzer.rossWhitespace.tokenizer: whitespace  
> > > index.analysis.analyzer.rossWhitespace.filter.0: lowercase
> > > 
> > > Here is the mapping that I get when I call the get mapping rest api:
> > > 
> > > {  
> > > "testindex2":{  
> > > "type3":{  
> > > "properties":{  
> > > "prop7":{"include\_in\_all":true,"format":"dateOptionalTime","type":"date"},
> > > 
> > > ```
> > > "prop8":{"type":"boolean"}
> > > },
> > > "_all":{"analyzer":"rossWhitespace"}
> > > }
> > > }
> > > 
> > > ```
> > > 
> > > }
> > > 
> > > Nothing is changed when I set "include\_in\_all" to "false" eighter.
> > > 
> > > Regards,  
> > > Sezgin Kucukkaraaslan  
> > > [www.ifountain.com](http://www.ifountain.com)

---

<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, 4:15am UTC](https://discuss.elastic.co/t/include-in-all-for-boolean-types/3599/5 "2017-07-06T04:15:49Z")

</div>


