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