Analyze API + char_filter

Hi,

Does the analyze API (
http://www.elasticsearch.org/guide/reference/api/admin-indices-analyze.html)
support the char_filter ?
I tried

curl -XGET
'localhost:9200/_analyze?tokenizer=keyword&filters=lowercase&char_filter=myCharFilter'
-d 'this is a test'
and
curl -XGET
'localhost:9200/_analyze?tokenizer=keyword&filters=lowercase&char_filters=myCharFilter'
-d 'this is a test'

without success.
Any idea ?

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

I have never tried a custom filter, but with analyzers, they will only work
if you are analyze against an index that is using them. The analyzer would
need to be loaded/instantiated first before it can be used, and that only
occurs when an index that uses the analyzer (in the mapping) is created. I
would assume filters have the same limitation.

Cheers,

Ivan

On Wed, Feb 20, 2013 at 6:54 AM, Jecom jmaynier@eco2market.com wrote:

Hi,

Does the analyze API (
http://www.elasticsearch.org/guide/reference/api/admin-indices-analyze.html)
support the char_filter ?
I tried

curl -XGET
'localhost:9200/_analyze?tokenizer=keyword&filters=lowercase&char_filter=myCharFilter'
-d 'this is a test'
and
curl -XGET
'localhost:9200/_analyze?tokenizer=keyword&filters=lowercase&char_filters=myCharFilter'
-d 'this is a test'

without success.
Any idea ?

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Looks like the _analyze endpoint only supports token filters. I don't see a
way to pass in char filters.

https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/rest/action/admin/indices/analyze/RestAnalyzeAction.java#L74

-Eric

On Wednesday, February 20, 2013 9:54:58 AM UTC-5, Jecom wrote:

Hi,

Does the analyze API (
http://www.elasticsearch.org/guide/reference/api/admin-indices-analyze.html)
support the char_filter ?
I tried

curl -XGET
'localhost:9200/_analyze?tokenizer=keyword&filters=lowercase&char_filter=myCharFilter'
-d 'this is a test'
and
curl -XGET
'localhost:9200/_analyze?tokenizer=keyword&filters=lowercase&char_filters=myCharFilter'
-d 'this is a test'

without success.
Any idea ?

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Ha, didn't think that would be the limitation! Shouldn't be too hard to add
in. The eventual consumer, TransportAnalyzeAction, is just using an empty
char filter array.

https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/action/admin/indices/analyze/TransportAnalyzeAction.java#L185

On Wed, Feb 20, 2013 at 12:22 PM, egaumer egaumer@gmail.com wrote:

Looks like the _analyze endpoint only supports token filters. I don't see
a way to pass in char filters.

https://github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/rest/action/admin/indices/analyze/RestAnalyzeAction.java#L74

-Eric

On Wednesday, February 20, 2013 9:54:58 AM UTC-5, Jecom wrote:

Hi,

Does the analyze API (http://www.elasticsearch.org/**
guide/reference/api/admin-**indices-analyze.htmlhttp://www.elasticsearch.org/guide/reference/api/admin-indices-analyze.html)
support the char_filter ?
I tried

curl -XGET 'localhost:9200/_analyze?tokenizer=keyword&filters=
lowercase&char_filter=**myCharFilter' -d 'this is a test'
and
curl -XGET 'localhost:9200/_analyze?tokenizer=keyword&filters=
lowercase&char_filters=**myCharFilter' -d 'this is a test'

without success.
Any idea ?

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.