Is there a tradtional javadoc api for ES

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

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

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.comwrote:

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

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/ (note the a) in the url
Heres a normal group
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 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.comwrote:

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

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, 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.comwrote:

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/ (note the a) in the url
Heres a normal group
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 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
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