# Elastic search documentation

**URL:** <https://community.temporal.io/t/elastic-search-documentation/1825>\
**Category:** Community Support\
**Created:** [March 26, 2021, 6:15pm UTC](https://community.temporal.io/t/elastic-search-documentation/1825 "2021-03-26T18:15:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramprasad\_Indarapu](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/ramprasad_indarapu/32/718_2.png) [@Ramprasad\_Indarapu](https://community.temporal.io/u/Ramprasad_Indarapu)\
**Post date:** [March 26, 2021, 6:15pm UTC](https://community.temporal.io/t/elastic-search-documentation/1825/1 "2021-03-26T18:15:22Z")

</div>

Hi  
I am looking for some documentation of elastic search api urls and query paramaters sample and how to add custom search attribute  
Thanks

---

<div class="post-metadata">

**Author:** ![alex](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/alex/32/15_2.png) [@alex](https://community.temporal.io/u/alex)\
**Post date:** [March 27, 2021, 12:10am UTC](https://community.temporal.io/t/elastic-search-documentation/1825/2 "2021-03-27T00:10:35Z")

</div>

I am currently working on redefining this experience. But today this is a two step process:

1. Modify ES schema and add new indexed fields. You can simple add mapping to existing schema with:

```http
POST /temporal-visibility-dev/_mapping
{
	"properties": {
	  "Attr": {
		"properties": {
		  "YouFieldName": {
			"type": "your-filed-type"
		  },
		}
	  }
	}
}

```

or modify existing [template](https://github.com/temporalio/temporal/blob/master/schema/elasticsearch/v7/visibility/index_template.json) and recreate the index similarly as [we do](https://github.com/temporalio/temporal/blob/master/Makefile#L346) during development.
2. Add new attribute to [dynamic config](https://github.com/temporalio/temporal/blob/master/config/dynamicconfig/development_es.yaml#L37).

---

<div class="post-metadata">

**Author:** ![Ramprasad\_Indarapu](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/ramprasad_indarapu/32/718_2.png) [@Ramprasad\_Indarapu](https://community.temporal.io/u/Ramprasad_Indarapu)\
**Post date:** [March 27, 2021, 3:07am UTC](https://community.temporal.io/t/elastic-search-documentation/1825/3 "2021-03-27T03:07:24Z")

</div>

Thanks @alex  
Any reference documents on the usage on using these in client mode using java SDK. How do I update these from client code.

---

<div class="post-metadata">

**Author:** ![alex](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/alex/32/15_2.png) [@alex](https://community.temporal.io/u/alex)\
**Post date:** [March 29, 2021, 4:23pm UTC](https://community.temporal.io/t/elastic-search-documentation/1825/4 "2021-03-29T16:23:32Z")

</div>

Seems like we have only [go](https://docs.temporal.io/docs/go-search-apis) topic in our docs but Java should be very similar.

---

<div class="post-metadata">

**Author:** ![jmac](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/jmac/32/303_2.png) [@jmac](https://community.temporal.io/u/jmac)\
**Post date:** [April 16, 2021, 12:00am UTC](https://community.temporal.io/t/elastic-search-documentation/1825/5 "2021-04-16T00:00:13Z")

</div>

The documentation isn’t clear about this 2-step process for adding custom attributes, so I’m glad I found this post. 🙂

---

<div class="post-metadata">

**Author:** ![alex](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/alex/32/15_2.png) [@alex](https://community.temporal.io/u/alex)\
**Post date:** [April 16, 2021, 4:19am UTC](https://community.temporal.io/t/elastic-search-documentation/1825/6 "2021-04-16T04:19:20Z")

</div>

We will fix it, I promise. I soon as new implementation will be there.
