Java DSL

Some questions related to different topics in ES:

How can I define mappings for a type using Java API e.g. twitter?

Is there a way to see how a user supplied phrase is analyzed which
will be useful for debugging? e.g. if the analyzer is custom, keyword
tokenizer and edgeNGram filter, can I supply a query and inspect the
generated terms?

Lucene has EnglishMinimalStemFilterFactory filter. Is this available
in ES?

Thanks,
Nishant

Hi,

answers inlined

On Tue, Sep 6, 2011 at 7:20 PM, nchandra nishant.chandra@gmail.com wrote:

Some questions related to different topics in ES:

How can I define mappings for a type using Java API e.g. twitter?

It is available via client.admin.indices
Check AnalyzeActionTests.java or ScriptFieldSearchTests.java for some
examples. Generally, you can check usages of
IndicesAdminClient.java#putMapping
or IndicesAdminClient.java#preparePutMapping in elasticsearch source code.

Is there a way to see how a user supplied phrase is analyzed which
will be useful for debugging? e.g. if the analyzer is custom, keyword
tokenizer and edgeNGram filter, can I supply a query and inspect the
generated terms?

Yes, Analyze API:

Lucene has EnglishMinimalStemFilterFactory filter. Is this available
in ES?

Yes, EnglishMinimalStemFilter is exposed. Check minimal_english here:

Thanks,
Nishant

Regards,
Lukas