How should I configure my analyzer so that search for word "search" will
also include results containing words of its variations like "searching",
"searched"?
Right now, I have the following in config/elasticsearch.json, but it does
not work. "search" only matches "search"
there is an example how to configure it. You basically need to define a
custom stemmer and configure the language there as the 'name' attribue.
simon
On Wednesday, August 28, 2013 9:26:02 PM UTC+2, Mingfeng Yang wrote:
How should I configure my analyzer so that search for word "search" will
also include results containing words of its variations like "searching",
"searched"?
Right now, I have the following in config/elasticsearch.json, but it does
not work. "search" only matches "search"
there is an example how to configure it. You basically need to define a
custom stemmer and configure the language there as the 'name' attribue.
simon
On Wednesday, August 28, 2013 9:26:02 PM UTC+2, Mingfeng Yang wrote:
How should I configure my analyzer so that search for word "search" will
also include results containing words of its variations like "searching",
"searched"?
Right now, I have the following in config/elasticsearch.json, but it does
not work. "search" only matches "search"
there is an example how to configure it. You basically need to define a
custom stemmer and configure the language there as the 'name' attribue.
simon
On Wednesday, August 28, 2013 9:26:02 PM UTC+2, Mingfeng Yang wrote:
How should I configure my analyzer so that search for word "search" will
also include results containing words of its variations like "searching",
"searched"?
Right now, I have the following in config/elasticsearch.json, but it
does not work. "search" only matches "search"
there is an example how to configure it. You basically need to define a
custom stemmer and configure the language there as the 'name' attribue.
simon
On Wednesday, August 28, 2013 9:26:02 PM UTC+2, Mingfeng Yang wrote:
How should I configure my analyzer so that search for word "search"
will also include results containing words of its variations like
"searching", "searched"?
Right now, I have the following in config/elasticsearch.json, but it
does not work. "search" only matches "search"
Assuming that your settings are correct (you should verify the settings via
curl just to be sure), then you also need the per-type per-field mappings
that define the string fields that use your custom analyzer.
Of course, you could always configure those settings as the default for all
documents of all document types in all indices, but I don't remember how to
do that anymore. I always set up the settings and mappings whenever I
create an index so ES works exactly as I wish it to.
Hope this helps. If you need some extra help (I remember that I got a lot
of patient help to get me started), I can perhaps help you. I do everything
(except some initial testing in the beginning) via Java, and the schema
work involved getting a lot of little things exactly right. The Javadoc was
of little help, but the newsgroup saved me! So just let me know, and I'll
pass along the favor that was given to me.
Brian
On Wednesday, August 28, 2013 7:08:17 PM UTC-4, Mingfeng Yang wrote:
there is an example how to configure it. You basically need to define a
custom stemmer and configure the language there as the 'name' attribue.
simon
On Wednesday, August 28, 2013 9:26:02 PM UTC+2, Mingfeng Yang wrote:
How should I configure my analyzer so that search for word "search"
will also include results containing words of its variations like
"searching", "searched"?
Right now, I have the following in config/elasticsearch.json, but it
does not work. "search" only matches "search"
ah I think you are missing a wrapping "index" in your settings you do
"settings" : { "analysis" : .... but it should be "settings" : { "index" :
{ "analysis" .....
On Thursday, August 29, 2013 1:34:07 AM UTC+2, Mingfeng Yang wrote:
The following inside config/elasticsearch.yml works though.
index:
analysis:
analyzer:
default:
tokenizer: standard
filter: [standard, lowercase, stop, asciifolding, myfilter]
filter:
myfilter:
type: snowball
language: English
there is an example how to configure it. You basically need to define
a custom stemmer and configure the language there as the 'name' attribue.
simon
On Wednesday, August 28, 2013 9:26:02 PM UTC+2, Mingfeng Yang wrote:
How should I configure my analyzer so that search for word "search"
will also include results containing words of its variations like
"searching", "searched"?
Right now, I have the following in config/elasticsearch.json, but it
does not work. "search" only matches "search"
ah I think you are missing a wrapping "index" in your settings you do
"settings" : { "analysis" : .... but it should be "settings" : { "index" :
{ "analysis" .....
On Thursday, August 29, 2013 1:34:07 AM UTC+2, Mingfeng Yang wrote:
The following inside config/elasticsearch.yml works though.
index:
analysis:
analyzer:
default:
tokenizer: standard
filter: [standard, lowercase, stop, asciifolding,
myfilter]
filter:
myfilter:
type: snowball
language: English
there is an example how to configure it. You basically need to define
a custom stemmer and configure the language there as the 'name' attribue.
simon
On Wednesday, August 28, 2013 9:26:02 PM UTC+2, Mingfeng Yang wrote:
How should I configure my analyzer so that search for word "search"
will also include results containing words of its variations like
"searching", "searched"?
Right now, I have the following in config/elasticsearch.json, but it
does not work. "search" only matches "search"
Assuming that your settings are correct (you should verify the settings
via curl just to be sure), then you also need the per-type per-field
mappings that define the string fields that use your custom analyzer.
Of course, you could always configure those settings as the default for
all documents of all document types in all indices, but I don't remember
how to do that anymore. I always set up the settings and mappings whenever
I create an index so ES works exactly as I wish it to.
Hope this helps. If you need some extra help (I remember that I got a lot
of patient help to get me started), I can perhaps help you. I do everything
(except some initial testing in the beginning) via Java, and the schema
work involved getting a lot of little things exactly right. The Javadoc was
of little help, but the newsgroup saved me! So just let me know, and I'll
pass along the favor that was given to me.
Brian
On Wednesday, August 28, 2013 7:08:17 PM UTC-4, Mingfeng Yang wrote:
ah I think you are missing a wrapping "index" in your settings you do
"settings" : { "analysis" : .... but it should be "settings" : { "index" :
{ "analysis" .....
On Thursday, August 29, 2013 1:34:07 AM UTC+2, Mingfeng Yang wrote:
The following inside config/elasticsearch.yml works though.
index:
analysis:
analyzer:
default:
tokenizer: standard
filter: [standard, lowercase, stop, asciifolding,
myfilter]
filter:
myfilter:
type: snowball
language: English
there is an example how to configure it. You basically need to define
a custom stemmer and configure the language there as the 'name' attribue.
simon
On Wednesday, August 28, 2013 9:26:02 PM UTC+2, Mingfeng Yang wrote:
How should I configure my analyzer so that search for word "search"
will also include results containing words of its variations like
"searching", "searched"?
Right now, I have the following in config/elasticsearch.json, but it
does not work. "search" only matches "search"
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.