I do not think there is anything in the API, but if you are running Java, you can create a IndicesAnalysisService locally (see the unit tests for an example) and then call analyzerProviderFactories() to get the various prebuilt analyzer factories. This only works for the standard analyzers, not any analyzers installed via plugins. For those, you would need to use the AnalysisService around an existing index (not as clean).
An API wrapper around the IndicesAnalysisService could make sense. -- Ivan On Wed, Mar 19, 2014 at 9:46 AM, Kevin B <[email protected]> wrote: > The scenario I have is driving some index builds from an external > application. As part of this an analyzer would be chosen in the external > application. The intent here would be that a choice could be made from a > list of all analyzers available in the ES installation whether distributed > with ES or custom configured by someone on that particular installation. > > To my surprise there doesn't seem to be a way via API to get a listing of > the available analyzers? > > I do understand I can look at the source or the documentation to see the > default ones, but I am looking for a programatic, run time way to find what > is available. Am I missing something in the API or will I have to look at > creating a plugin to add this capability? > > Kevin > > -- > You received this message because you are subscribed to the Google Groups > "elasticsearch" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/cd781459-16ec-4319-be29-52c3b9979e31%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/cd781459-16ec-4319-be29-52c3b9979e31%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQD7Dac80%3DggxCJPVrBjA1yf5XcGYydCtnBYuatr6hK7ug%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
