I am building a plugin for elasticsearch and I am using the java api to to
send an analysis request. The AnalysisRequestBuilder class doesn't support
specifying the char filters unlike the tokenizer or the token filters. The
same thing also is true for the rest API too. Is there any plan to add this
feature?
Since I am writing a plugin that actually is deployed on the same JVM with
elasticsearch, is there a workaround that I can use? For instance, can I
inject an instance of CharFilterFactory into my code for a char filter that
is defined in my settings?
Since your code is running as the same JVM as Elasticsearch, you have a few
more options. Depending on your use case, you can bypass the analysis API
and use the analyzers directly. Look at the test code in the analysis
package, in particular the AnalysisModuleTests class. The key is building
the AnalysisService
As far as your initial request, I am not sure why AnalyzeRequest does not
support char filters. The underlying TransportAnalyzeAction class could
support them.
I am building a plugin for elasticsearch and I am using the java api to to
send an analysis request. The AnalysisRequestBuilder class doesn't support
specifying the char filters unlike the tokenizer or the token filters. The
same thing also is true for the rest API too. Is there any plan to add this
feature?
Since I am writing a plugin that actually is deployed on the same JVM with
elasticsearch, is there a workaround that I can use? For instance, can I
inject an instance of CharFilterFactory into my code for a char filter that
is defined in my settings?
The change seemed simple, so I went ahead and implemented it:
The tricky part is getting the Elasticsearch team to notice.
--
Ivan
On Mon, Feb 17, 2014 at 2:13 PM, Ivan Brusic ivan@brusic.com wrote:
Since your code is running as the same JVM as Elasticsearch, you have a
few more options. Depending on your use case, you can bypass the analysis
API and use the analyzers directly. Look at the test code in the analysis
package, in particular the AnalysisModuleTests class. The key is building
the AnalysisService
As far as your initial request, I am not sure why AnalyzeRequest does not
support char filters. The underlying TransportAnalyzeAction class could
support them.
I am building a plugin for elasticsearch and I am using the java api to
to send an analysis request. The AnalysisRequestBuilder class doesn't
support specifying the char filters unlike the tokenizer or the token
filters. The same thing also is true for the rest API too. Is there any
plan to add this feature?
Since I am writing a plugin that actually is deployed on the same JVM
with elasticsearch, is there a workaround that I can use? For instance, can
I inject an instance of CharFilterFactory into my code for a char filter
that is defined in my settings?
The tricky part is getting the Elasticsearch team to notice.
--
Ivan
On Mon, Feb 17, 2014 at 2:13 PM, Ivan Brusic <iv...@brusic.com<javascript:>
wrote:
Since your code is running as the same JVM as Elasticsearch, you have a
few more options. Depending on your use case, you can bypass the analysis
API and use the analyzers directly. Look at the test code in the analysis
package, in particular the AnalysisModuleTests class. The key is building
the AnalysisService
As far as your initial request, I am not sure why AnalyzeRequest does not
support char filters. The underlying TransportAnalyzeAction class could
support them.
Cheers,
Ivan
On Mon, Feb 17, 2014 at 12:24 PM, Erdinc Yilmazel <erdincy...@gmail.com<javascript:>
wrote:
Hi,
I am building a plugin for elasticsearch and I am using the java api to
to send an analysis request. The AnalysisRequestBuilder class doesn't
support specifying the char filters unlike the tokenizer or the token
filters. The same thing also is true for the rest API too. Is there any
plan to add this feature?
Since I am writing a plugin that actually is deployed on the same JVM
with elasticsearch, is there a workaround that I can use? For instance, can
I inject an instance of CharFilterFactory into my code for a char filter
that is defined in my settings?
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.