Write a plugin that does that. You can write a class that gest injected
with IndicesQueriesRegistry, and adds teh relevant parsers you want, and
write a module that registers your class.
Thnx for the tip. I didnt used the IndicesQueriesRegistry.
Instead I used the IndexQueryParserModule.
@Override public void processModule(Module module) {
if (module instanceof IndexQueryParserModule) {
System.out.println("---------> Registering AATermQueryParser");
((IndexQueryParserModule) module).addQueryParser("aaterm",
AATermQueryParser.class);
}
}
Tnx,
Alex
On Mon, Nov 28, 2011 at 12:33 PM, Shay Banon kimchy@gmail.com wrote:
Write a plugin that does that. You can write a class that gest injected
with IndicesQueriesRegistry, and adds teh relevant parsers you want, and
write a module that registers your class.
Thnx for the tip. I didnt used the IndicesQueriesRegistry.
Instead I used the IndexQueryParserModule.
@Override public void processModule(Module module) {
if (module instanceof IndexQueryParserModule) {
System.out.println("---------> Registering AATermQueryParser");
((IndexQueryParserModule) module).addQueryParser("aaterm",
AATermQueryParser.class);
}
}
Tnx,
Alex
On Mon, Nov 28, 2011 at 12:33 PM, Shay Banon kimchy@gmail.com wrote:
Write a plugin that does that. You can write a class that gest injected
with IndicesQueriesRegistry, and adds teh relevant parsers you want, and
write a module that registers your class.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.