I am having a problem getting stemming working with my index with the
snowball analyzer.
If I use the analyzer directly, I get a stemmed version:
curl -XGET 'localhost:9200/_analyze?analyzer=snowball&pretty=1' -d
'intermingling'
{
"tokens" : [ {
"token" : "intermingl",
"start_offset" : 0,
"end_offset" : 13,
"type" : "",
"position" : 1
} ]
If I use the index I get, there is no stemming:
curl -XGET 'localhost:9200/test/_analyze?pretty=1' -d 'intermingling'
{
"tokens" : [ {
"token" : "intermingling",
"start_offset" : 0,
"end_offset" : 13,
"type" : "",
"position" : 1
} ]
Technically you are only specifying an analyzer that could be used in
that index. In order for it to be used, a field could be mapped to it
(as Clinton described), or it can be specified as the default
analyzer:
I have never overridden the default analyzer, so I am curious about
how it works with the analyze API.
Thanks, do you have an example of how the default analyzer is specified?
Cheers,
Chris
On Friday, August 24, 2012 10:56:37 AM UTC-7, Ivan Brusic wrote:
Hi Chris,
Technically you are only specifying an analyzer that could be used in
that index. In order for it to be used, a field could be mapped to it
(as Clinton described), or it can be specified as the default
analyzer:
Thanks, do you have an example of how the default analyzer is specified?
Cheers,
Chris
On Friday, August 24, 2012 10:56:37 AM UTC-7, Ivan Brusic wrote:
Hi Chris,
Technically you are only specifying an analyzer that could be used in
that index. In order for it to be used, a field could be mapped to it
(as Clinton described), or it can be specified as the default
analyzer:
On Fri, Aug 24, 2012 at 11:06 AM, ezyrider42 <ezyri...@gmail.com<javascript:>>
wrote:
Thanks, do you have an example of how the default analyzer is specified?
Cheers,
Chris
On Friday, August 24, 2012 10:56:37 AM UTC-7, Ivan Brusic wrote:
Hi Chris,
Technically you are only specifying an analyzer that could be used in
that index. In order for it to be used, a field could be mapped to it
(as Clinton described), or it can be specified as the default
analyzer:
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.