# EsBolt - Schema Definition

**URL:** <https://discuss.elastic.co/t/esbolt-schema-definition/21421>\
**Category:** Elasticsearch\
**Created:** [December 29, 2014, 11:49am UTC](https://discuss.elastic.co/t/esbolt-schema-definition/21421 "2014-12-29T11:49:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhishek\_Patel](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Abhishek\_Patel](https://discuss.elastic.co/u/Abhishek_Patel)\
**Post date:** [December 29, 2014, 11:49am UTC](https://discuss.elastic.co/t/esbolt-schema-definition/21421/1 "2014-12-29T11:49:09Z")

</div>

I am using EsBolt which receives stream from Kafka bolt. The Kafka bolt  
emits json which is given to EsBolt. Now, my JSON string may contain geo  
data. So I want it to be indexed geo-spatially. How I can define my  
indexing schema for EsBolt.

Thanks

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a9bca2db-108a-4f65-a4f7-32c0276b2c4b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a9bca2db-108a-4f65-a4f7-32c0276b2c4b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![costin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/costin/32/44950_2.png) [@costin](https://discuss.elastic.co/u/costin)\
**Post date:** [December 29, 2014, 12:09pm UTC](https://discuss.elastic.co/t/esbolt-schema-definition/21421/2 "2014-12-29T12:09:17Z")

</div>

EsBolt 'passes' the information to Elasticsearch. To define how the  
data is indexed, simply define your mapping in Elasticsearch directly.  
Without any mapping, Elasticsearch will try to automatically detect  
and map your data accordingly which might match your expectation or  
not.  
For example see [1]

[1] [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/hadoop/2.1.Beta/mapping.html)

On 12/29/14, Abhishek Patel [present.boiling2290@gmail.com](mailto:present.boiling2290@gmail.com) wrote:

> I am using EsBolt which receives stream from Kafka bolt. The Kafka bolt  
> emits json which is given to EsBolt. Now, my JSON string may contain geo  
> data. So I want it to be indexed geo-spatially. How I can define my  
> indexing schema for EsBolt.
> 
> Thanks
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/a9bca2db-108a-4f65-a4f7-32c0276b2c4b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a9bca2db-108a-4f65-a4f7-32c0276b2c4b%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAJogdmfDtaBpzsJmWdEBjagz5kJNJ8PpaK5QLkMpp5HGSQ\_6nQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAJogdmfDtaBpzsJmWdEBjagz5kJNJ8PpaK5QLkMpp5HGSQ_6nQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:41am UTC](https://discuss.elastic.co/t/esbolt-schema-definition/21421/3 "2017-07-06T00:41:37Z")

</div>

Closed on July 6, 2017, 12:41am UTC


