# Is there a tradtional javadoc api for ES

**URL:** <https://discuss.elastic.co/t/is-there-a-tradtional-javadoc-api-for-es/3524>\
**Category:** Elasticsearch\
**Created:** [November 4, 2010, 10:45pm UTC](https://discuss.elastic.co/t/is-there-a-tradtional-javadoc-api-for-es/3524 "2010-11-04T22:45:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gideon\_Kaplan](https://avatars.discourse-cdn.com/v4/letter/g/779978/32.png) [@Gideon\_Kaplan](https://discuss.elastic.co/u/Gideon_Kaplan)\
**Post date:** [November 4, 2010, 10:45pm UTC](https://discuss.elastic.co/t/is-there-a-tradtional-javadoc-api-for-es/3524/1 "2010-11-04T22:45:09Z")

</div>

Hi  
I"m (we're) in the process of migrating from ES 0.0 to 0.12.1  
Some of the packages and classes have changed  
I've been able to figure out most

Ran in this one in some of our tests

import  
org.elasticsearch.index.query.xcontent.XContentQueryParserRegistry  
XContentQueryParserRegistry parserRegistry =  
((XContentIndexQueryParser)  
indexQueryParserService.defaultIndexQueryParser()).queryParserRegistry()

Intellij is complaining about missing class and I don't see it when  
drilling down into the es jar

Is there a public javadoc somewhere?  
I poked around github but couldn't figure it out  
I also didn't see the docs included with the distro

Sorry for the newbieness

G

---

<div class="post-metadata">

**Author:** ![Gideon\_Kaplan](https://avatars.discourse-cdn.com/v4/letter/g/779978/32.png) [@Gideon\_Kaplan](https://discuss.elastic.co/u/Gideon_Kaplan)\
**Post date:** [November 4, 2010, 10:50pm UTC](https://discuss.elastic.co/t/is-there-a-tradtional-javadoc-api-for-es/3524/2 "2010-11-04T22:50:14Z")

</div>

I meant to write from 0.9

On 11/4/10 3:45 PM, Gideon Kaplan wrote:

> Hi  
> I"m (we're) in the process of migrating from ES 0.0 to 0.12.1  
> Some of the packages and classes have changed  
> I've been able to figure out most
> 
> Ran in this one in some of our tests
> 
> import  
> org.elasticsearch.index.query.xcontent.XContentQueryParserRegistry  
> XContentQueryParserRegistry parserRegistry =  
> ((XContentIndexQueryParser)  
> indexQueryParserService.defaultIndexQueryParser()).queryParserRegistry()
> 
> Intellij is complaining about missing class and I don't see it when  
> drilling down into the es jar
> 
> Is there a public javadoc somewhere?  
> I poked around github but couldn't figure it out  
> I also didn't see the docs included with the distro
> 
> Sorry for the newbieness
> 
> G

---

<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 4, 2010, 11:11pm UTC](https://discuss.elastic.co/t/is-there-a-tradtional-javadoc-api-for-es/3524/3 "2010-11-04T23:11:01Z")

</div>

The XContentQueryParserRegistry has been removed (the way query parsers are  
registered has changed). Not sure what you do with it later on to explain  
what needs to be changed. Is there a reason you are using this quite low  
level classes?

On Fri, Nov 5, 2010 at 12:45 AM, Gideon Kaplan [gideonkaplan@gmail.com](mailto:gideonkaplan@gmail.com)wrote:

> Hi  
> I"m (we're) in the process of migrating from ES 0.0 to 0.12.1  
> Some of the packages and classes have changed  
> I've been able to figure out most
> 
> Ran in this one in some of our tests
> 
> import  
> org.elasticsearch.index.query.xcontent.XContentQueryParserRegistry  
> XContentQueryParserRegistry parserRegistry =  
> ((XContentIndexQueryParser)  
> indexQueryParserService.defaultIndexQueryParser()).queryParserRegistry()
> 
> Intellij is complaining about missing class and I don't see it when  
> drilling down into the es jar
> 
> Is there a public javadoc somewhere?  
> I poked around github but couldn't figure it out  
> I also didn't see the docs included with the distro
> 
> Sorry for the newbieness
> 
> G

---

<div class="post-metadata">

**Author:** ![Gideon\_Kaplan](https://avatars.discourse-cdn.com/v4/letter/g/779978/32.png) [@Gideon\_Kaplan](https://discuss.elastic.co/u/Gideon_Kaplan)\
**Post date:** [November 5, 2010, 12:14am UTC](https://discuss.elastic.co/t/is-there-a-tradtional-javadoc-api-for-es/3524/4 "2010-11-05T00:14:23Z")

</div>

Thanks  
This was the broken test that existed in the codebase I'm looking at  
I don't think we actually need it

Also, unrelated to this code, is there a reason why this google group  
is somehow separater from other google groups I'm a member of?  
It looks like this is a google apps group  
[http://groups.google.com/a/elasticsearch.com/](http://groups.google.com/a/elasticsearch.com/) (note the a) in the url  
Heres a normal group  
[http://groups.google.com/group/san-francisco-bike-parks](http://groups.google.com/group/san-francisco-bike-parks)

```
void testCustomQueryParserInjection() {

```

searchIndexerService.indexes[0].parserMap[SuffixQueryParser.class] =  
ConfigForJava.injectCustomQueryParser("suffix",  
searchIndexerService.indexes[0].name, SuffixQueryParser.class)

```
    IndexQueryParserService indexQueryParserService =

```

searchIndexerService.indexes[0].parserMap[SuffixQueryParser.class].getInstance(IndexQueryParserService.class);

```
  //api changed, maybe we no longer need a registry
  //XContentQueryParserRegistry parserRegistry =

```

((XContentIndexQueryParser)  
indexQueryParserService.defaultIndexQueryParser()).queryParserRegistry()  
//SuffixQueryParser suffixQueryParser = (SuffixQueryParser)  
parserRegistry.queryParser("suffix")  
//  
SuffixQueryParser suffixQueryParser = (SuffixQueryParser)  
((XContentIndexQueryParser)  
indexQueryParserService.defaultIndexQueryParser()).queryParser("suffix")

```
    assertTrue suffixQueryParser.names()[0] == "suffix"
}

```

On Nov 4, 4:11 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> The XContentQueryParserRegistry has been removed (the way query parsers are  
> registered has changed). Not sure what you do with it later on to explain  
> what needs to be changed. Is there a reason you are using this quite low  
> level classes?
> 
> On Fri, Nov 5, 2010 at 12:45 AM, Gideon Kaplan [gideonkap...@gmail.com](mailto:gideonkap...@gmail.com)wrote:
> 
> > Hi  
> > I"m (we're) in the process of migrating from ES 0.0 to 0.12.1  
> > Some of the packages and classes have changed  
> > I've been able to figure out most
> 
> > Ran in this one in some of our tests
> 
> > import  
> > org.elasticsearch.index.query.xcontent.XContentQueryParserRegistry  
> > XContentQueryParserRegistry parserRegistry =  
> > ((XContentIndexQueryParser)  
> > indexQueryParserService.defaultIndexQueryParser()).queryParserRegistry()
> 
> > Intellij is complaining about missing class and I don't see it when  
> > drilling down into the es jar
> 
> > Is there a public javadoc somewhere?  
> > I poked around github but couldn't figure it out  
> > I also didn't see the docs included with the distro
> 
> > Sorry for the newbieness
> 
> > G

---

<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 5, 2010, 4:21pm UTC](https://discuss.elastic.co/t/is-there-a-tradtional-javadoc-api-for-es/3524/5 "2010-11-05T16:21:55Z")

</div>

I think that you are registering a custom query? There is an improved way to  
register custom queries, by calling IndexQueryParserModule#addProcessor (if  
you do it through a plugin for example). Check SimpleIndexQueryParserTests  
for testing queries and parsing them.

The google groups is one on google apps of [elasticsearch.com](http://elasticsearch.com), maybe thats  
why its not listed? I am not sure... .

-shay.banon

On Fri, Nov 5, 2010 at 2:14 AM, Gideon Kaplan [gideonkaplan@gmail.com](mailto:gideonkaplan@gmail.com)wrote:

> Thanks  
> This was the broken test that existed in the codebase I'm looking at  
> I don't think we actually need it
> 
> Also, unrelated to this code, is there a reason why this google group  
> is somehow separater from other google groups I'm a member of?  
> It looks like this is a google apps group  
> [http://groups.google.com/a/elasticsearch.com/](http://groups.google.com/a/elasticsearch.com/) (note the a) in the url  
> Heres a normal group  
> [http://groups.google.com/group/san-francisco-bike-parks](http://groups.google.com/group/san-francisco-bike-parks)
> 
> void testCustomQueryParserInjection() {
> 
> searchIndexerService.indexes[0].parserMap[SuffixQueryParser.class] =  
> ConfigForJava.injectCustomQueryParser("suffix",  
> searchIndexerService.indexes[0].name, SuffixQueryParser.class)
> 
> ```
> IndexQueryParserService indexQueryParserService =
> 
> ```
> 
> searchIndexerService.indexes[0].parserMap[SuffixQueryParser.class].getInstance(IndexQueryParserService.class);
> 
> ```
> //api changed, maybe we no longer need a registry
> //XContentQueryParserRegistry parserRegistry =
> 
> ```
> 
> ((XContentIndexQueryParser)  
> indexQueryParserService.defaultIndexQueryParser()).queryParserRegistry()  
> //SuffixQueryParser suffixQueryParser = (SuffixQueryParser)  
> parserRegistry.queryParser("suffix")  
> //  
> SuffixQueryParser suffixQueryParser = (SuffixQueryParser)  
> ((XContentIndexQueryParser)  
> indexQueryParserService.defaultIndexQueryParser()).queryParser("suffix")
> 
> ```
> assertTrue suffixQueryParser.names()[0] == "suffix"
> }
> 
> ```
> 
> On Nov 4, 4:11 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > The XContentQueryParserRegistry has been removed (the way query parsers  
> > are  
> > registered has changed). Not sure what you do with it later on to explain  
> > what needs to be changed. Is there a reason you are using this quite low  
> > level classes?
> > 
> > On Fri, Nov 5, 2010 at 12:45 AM, Gideon Kaplan \<[gideonkap...@gmail.com](mailto:gideonkap...@gmail.com)  
> > wrote:
> > 
> > > Hi  
> > > I"m (we're) in the process of migrating from ES 0.0 to 0.12.1  
> > > Some of the packages and classes have changed  
> > > I've been able to figure out most
> > 
> > > Ran in this one in some of our tests
> > 
> > > import  
> > > org.elasticsearch.index.query.xcontent.XContentQueryParserRegistry  
> > > XContentQueryParserRegistry parserRegistry =  
> > > ((XContentIndexQueryParser)
> 
> indexQueryParserService.defaultIndexQueryParser()).queryParserRegistry()
> 
> > > Intellij is complaining about missing class and I don't see it when  
> > > drilling down into the es jar
> > 
> > > Is there a public javadoc somewhere?  
> > > I poked around github but couldn't figure it out  
> > > I also didn't see the docs included with the distro
> > 
> > > Sorry for the newbieness
> > 
> > > G

---

<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:17am UTC](https://discuss.elastic.co/t/is-there-a-tradtional-javadoc-api-for-es/3524/6 "2017-07-06T04:17:03Z")

</div>


