You change the standard analyzer, this means that in the mapping, if you set
for a field explicitly to use the standard analyzer (set
analyzer="standard") then it will use it.
If you want to change the default analyzer, then replace the name standard
with default.
On Thu, Jul 28, 2011 at 1:22 AM, Carlos Eduardo da Fonseca < eduardongu@gmail.com> wrote:
Hi, I've done a lot of research on groups and ES guides on how to use this
analyzer but somehow it is not working.
Here's my elasticsearch.yml:
index:
analysis:
analyzer:
standard:
tokenizer: standard
type: standard
filter: [standard, lowercase, stop, asciifolding]
I changed it to "default", restarted ES (cleaning data/) and reindexed, but
it doesn't worked...
elasticsearch.yml:
index:
analysis:
analyzer:
default:
tokenizer: standard
type: standard
filter: [standard, lowercase, stop, asciifolding]
On Thu, Jul 28, 2011 at 9:53 AM, Shay Banon kimchy@gmail.com wrote:
You change the standard analyzer, this means that in the mapping, if you
set for a field explicitly to use the standard analyzer (set
analyzer="standard") then it will use it.
If you want to change the default analyzer, then replace the name
standard with default.
On Thu, Jul 28, 2011 at 1:22 AM, Carlos Eduardo da Fonseca < eduardongu@gmail.com> wrote:
Hi, I've done a lot of research on groups and ES guides on how to use this
analyzer but somehow it is not working.
Here's my elasticsearch.yml:
index:
analysis:
analyzer:
standard:
tokenizer: standard
type: standard
filter: [standard, lowercase, stop, asciifolding]
Gist an example then of why it does not work. One way to make sure it has
taked affect on indices created is to issue get settings and see if its
there.
On Thu, Jul 28, 2011 at 4:09 PM, Carlos Eduardo da Fonseca < eduardongu@gmail.com> wrote:
Hi Shay, thanks for the answer.
I changed it to "default", restarted ES (cleaning data/) and reindexed, but
it doesn't worked...
elasticsearch.yml:
index:
analysis:
analyzer:
default:
tokenizer: standard
type: standard
filter: [standard, lowercase, stop, asciifolding]
On Thu, Jul 28, 2011 at 9:53 AM, Shay Banon kimchy@gmail.com wrote:
You change the standard analyzer, this means that in the mapping, if you
set for a field explicitly to use the standard analyzer (set
analyzer="standard") then it will use it.
If you want to change the default analyzer, then replace the name
standard with default.
On Thu, Jul 28, 2011 at 1:22 AM, Carlos Eduardo da Fonseca < eduardongu@gmail.com> wrote:
Hi, I've done a lot of research on groups and ES guides on how to use
this analyzer but somehow it is not working.
Here's my elasticsearch.yml:
index:
analysis:
analyzer:
standard:
tokenizer: standard
type: standard
filter: [standard, lowercase, stop, asciifolding]
/_search?q=title:botao* - OK
/_search?q=botao* - OK
You can remove the "my_delimiter", "porter_stem" and use these
settings, just write in your mappings for field-type "string" for
"index_analyzer" and "search_analyzer" your custom analyzer.
/_search?q=title:botao* - OK
/_search?q=botao* - OK
You can remove the "my_delimiter", "porter_stem" and use these
settings, just write in your mappings for field-type "string" for
"index_analyzer" and "search_analyzer" your custom analyzer.
Strange that it worked :). By default, wildcard and prefix using the
query_string query (which is what q= is translated to) don't get analyzed. Elasticsearch Platform — Find real-time answers at scale | Elastic.
You can pass analyze_wildcard set to true, which will cause wildcards to be
analyzed as well (though its tricky).
Having said that, the analyze_wildcard parameter is not exposed when using
?q=..., though it can be added easily, something like:
?q=analyze_wildcard=true&q=... .
/_search?q=title:botao* - OK
/_search?q=botao* - OK
You can remove the "my_delimiter", "porter_stem" and use these
settings, just write in your mappings for field-type "string" for
"index_analyzer" and "search_analyzer" your custom analyzer.
Shay, I searched using text and field queries, forgot to mention. I think it
wasn't working before because of missing mappings...
On Fri, Jul 29, 2011 at 3:37 AM, Shay Banon kimchy@gmail.com wrote:
Strange that it worked :). By default, wildcard and prefix using the
query_string query (which is what q= is translated to) don't get analyzed. Elasticsearch Platform — Find real-time answers at scale | Elastic.
You can pass analyze_wildcard set to true, which will cause wildcards to be
analyzed as well (though its tricky).
Having said that, the analyze_wildcard parameter is not exposed when using
?q=..., though it can be added easily, something like:
?q=analyze_wildcard=true&q=... .
/_search?q=title:botao* - OK
/_search?q=botao* - OK
You can remove the "my_delimiter", "porter_stem" and use these
settings, just write in your mappings for field-type "string" for
"index_analyzer" and "search_analyzer" your custom 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.