# Error in documentation. JAVA API Search

**URL:** <https://discuss.elastic.co/t/error-in-documentation-java-api-search/2961>\
**Category:** Elasticsearch\
**Created:** [May 21, 2010, 5:07am UTC](https://discuss.elastic.co/t/error-in-documentation-java-api-search/2961 "2010-05-21T05:07:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tfreitas](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tfreitas](https://discuss.elastic.co/u/tfreitas)\
**Post date:** [May 21, 2010, 5:07am UTC](https://discuss.elastic.co/t/error-in-documentation-java-api-search/2961/1 "2010-05-21T05:07:24Z")

</div>

Hi shay

This piece of code is not compatible with the latest version of ES

[http://www.elasticsearch.com/docs/elasticsearch/java\_api/search/](http://www.elasticsearch.com/docs/elasticsearch/java_api/search/)

cheers

---

<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:** [May 21, 2010, 5:35am UTC](https://discuss.elastic.co/t/error-in-documentation-java-api-search/2961/2 "2010-05-21T05:35:05Z")

</div>

Thanks, fixed.

On Fri, May 21, 2010 at 8:07 AM, tfreitas [tfreitas@gmail.com](mailto:tfreitas@gmail.com) wrote:

> Hi shay
> 
> This piece of code is not compatible with the latest version of ES
> 
> [http://www.elasticsearch.com/docs/elasticsearch/java\_api/search/](http://www.elasticsearch.com/docs/elasticsearch/java_api/search/)
> 
> cheers

---

<div class="post-metadata">

**Author:** ![tfreitas](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tfreitas](https://discuss.elastic.co/u/tfreitas)\
**Post date:** [May 21, 2010, 12:59pm UTC](https://discuss.elastic.co/t/error-in-documentation-java-api-search/2961/3 "2010-05-21T12:59:51Z")

</div>

Thank you.  
Maybe the documentation should be displayed javadoc for JAVA API

On May 21, 1:35 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> Thanks, fixed.
> 
> On Fri, May 21, 2010 at 8:07 AM, tfreitas [tfrei...@gmail.com](mailto:tfrei...@gmail.com) wrote:
> 
> > Hi shay
> 
> > This piece of code is not compatible with the latest version of ES
> 
> > [http://www.elasticsearch.com/docs/elasticsearch/java\_api/search/](http://www.elasticsearch.com/docs/elasticsearch/java_api/search/)
> 
> > cheers

---

<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:** [May 21, 2010, 3:55pm UTC](https://discuss.elastic.co/t/error-in-documentation-java-api-search/2961/4 "2010-05-21T15:55:49Z")

</div>

First, the javadoc requires tons of more work :). Second, I am using github  
to serve the website, and serving javadoc from it does not make a lot of  
sense. But, the javadoc are provided in the maven repo.

On Fri, May 21, 2010 at 3:59 PM, tfreitas [tfreitas@gmail.com](mailto:tfreitas@gmail.com) wrote:

> Thank you.  
> Maybe the documentation should be displayed javadoc for JAVA API
> 
> On May 21, 1:35 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > Thanks, fixed.
> > 
> > On Fri, May 21, 2010 at 8:07 AM, tfreitas [tfrei...@gmail.com](mailto:tfrei...@gmail.com) wrote:
> > 
> > > Hi shay
> > 
> > > This piece of code is not compatible with the latest version of ES
> > 
> > > [http://www.elasticsearch.com/docs/elasticsearch/java\_api/search/](http://www.elasticsearch.com/docs/elasticsearch/java_api/search/)
> > 
> > > cheers

---

<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:** [May 21, 2010, 3:56pm UTC](https://discuss.elastic.co/t/error-in-documentation-java-api-search/2961/5 "2010-05-21T15:56:02Z")

</div>

Ohh, and they require much much more work 🙂

On Fri, May 21, 2010 at 6:55 PM, Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)wrote:

> First, the javadoc requires tons of more work :). Second, I am using github  
> to serve the website, and serving javadoc from it does not make a lot of  
> sense. But, the javadoc are provided in the maven repo.
> 
> On Fri, May 21, 2010 at 3:59 PM, tfreitas [tfreitas@gmail.com](mailto:tfreitas@gmail.com) wrote:
> 
> > Thank you.  
> > Maybe the documentation should be displayed javadoc for JAVA API
> > 
> > On May 21, 1:35 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> > 
> > > Thanks, fixed.
> > > 
> > > On Fri, May 21, 2010 at 8:07 AM, tfreitas [tfrei...@gmail.com](mailto:tfrei...@gmail.com) wrote:
> > > 
> > > > Hi shay
> > > 
> > > > This piece of code is not compatible with the latest version of ES
> > > 
> > > > [http://www.elasticsearch.com/docs/elasticsearch/java\_api/search/](http://www.elasticsearch.com/docs/elasticsearch/java_api/search/)
> > > 
> > > > cheers

---

<div class="post-metadata">

**Author:** ![tfreitas](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tfreitas](https://discuss.elastic.co/u/tfreitas)\
**Post date:** [May 26, 2010, 6:40pm UTC](https://discuss.elastic.co/t/error-in-documentation-java-api-search/2961/6 "2010-05-26T18:40:08Z")

</div>

Hi shay,

In the documentation there is ambiguity when referring about Dynamic  
Mapping Location

[http://www.elasticsearch.com/docs/elasticsearch/mapping/dynamic\_mapping/](http://www.elasticsearch.com/docs/elasticsearch/mapping/dynamic_mapping/)  
with "index.mapper.dynamicMappingLocation"

[http://www.elasticsearch.com/docs/elasticsearch/index\_modules/mapper/](http://www.elasticsearch.com/docs/elasticsearch/index_modules/mapper/)  
with "index.mapper.dynamic\_mapping\_location"

in the source code  
componentSettings.get (dynamic\_mapping\_location ");

cheers

On May 21, 11:55 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> First, the javadoc requires tons of more work :). Second, I am using github  
> to serve the website, and serving javadoc from it does not make a lot of  
> sense. But, the javadoc are provided in the maven repo.
> 
> On Fri, May 21, 2010 at 3:59 PM, tfreitas [tfrei...@gmail.com](mailto:tfrei...@gmail.com) wrote:
> 
> > Thank you.  
> > Maybe the documentation should be displayed javadoc for JAVA API
> 
> > On May 21, 1:35 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> > 
> > > Thanks, fixed.
> 
> > > On Fri, May 21, 2010 at 8:07 AM, tfreitas [tfrei...@gmail.com](mailto:tfrei...@gmail.com) wrote:
> > > 
> > > > Hi shay
> 
> > > > This piece of code is not compatible with the latest version of ES
> 
> > > > [http://www.elasticsearch.com/docs/elasticsearch/java\_api/search/](http://www.elasticsearch.com/docs/elasticsearch/java_api/search/)
> 
> > > > cheers

---

<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:** [May 26, 2010, 11:10pm UTC](https://discuss.elastic.co/t/error-in-documentation-java-api-search/2961/7 "2010-05-26T23:10:28Z")

</div>

It supports both camelCase and underscore casing for setting names. You  
choose. I tried to doc everything in underscore casing, but basically both  
for settings and for APIs, you can use either. For APIs, you can control if  
you want the response to be returned with CamelCase or not.

On Wed, May 26, 2010 at 9:40 PM, tfreitas [tfreitas@gmail.com](mailto:tfreitas@gmail.com) wrote:

> Hi shay,
> 
> In the documentation there is ambiguity when referring about Dynamic  
> Mapping Location
> 
> [http://www.elasticsearch.com/docs/elasticsearch/mapping/dynamic\_mapping/](http://www.elasticsearch.com/docs/elasticsearch/mapping/dynamic_mapping/)  
> with "index.mapper.dynamicMappingLocation"
> 
> [http://www.elasticsearch.com/docs/elasticsearch/index\_modules/mapper/](http://www.elasticsearch.com/docs/elasticsearch/index_modules/mapper/)  
> with "index.mapper.dynamic\_mapping\_location"
> 
> in the source code  
> componentSettings.get (dynamic\_mapping\_location ");
> 
> cheers
> 
> On May 21, 11:55 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > First, the javadoc requires tons of more work :). Second, I am using  
> > github  
> > to serve the website, and serving javadoc from it does not make a lot of  
> > sense. But, the javadoc are provided in the maven repo.
> > 
> > On Fri, May 21, 2010 at 3:59 PM, tfreitas [tfrei...@gmail.com](mailto:tfrei...@gmail.com) wrote:
> > 
> > > Thank you.  
> > > Maybe the documentation should be displayed javadoc for JAVA API
> > 
> > > On May 21, 1:35 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> > > 
> > > > Thanks, fixed.
> > 
> > > > On Fri, May 21, 2010 at 8:07 AM, tfreitas [tfrei...@gmail.com](mailto:tfrei...@gmail.com)  
> > > > wrote:
> > > > 
> > > > > Hi shay
> > 
> > > > > This piece of code is not compatible with the latest version of ES
> > 
> > > > > [http://www.elasticsearch.com/docs/elasticsearch/java\_api/search/](http://www.elasticsearch.com/docs/elasticsearch/java_api/search/)
> > 
> > > > > cheers

---

<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:23am UTC](https://discuss.elastic.co/t/error-in-documentation-java-api-search/2961/8 "2017-07-06T04:23:46Z")

</div>


