RE: HI.. Please you can help me?


(David Pilato) #1

You should ask for such question in the Elasticsearch mailing list or on
Stackoverflow.

That said, I answer now on the mailing list. Please answer to the mailing
and not to my direct mail.

What are you trying to achieve?

A simple analyzer already exists:
http://www.elasticsearch.org/guide/reference/index-modules/analysis/simple-a
nalyzer.html

If you are trying to apply this analyzer to a specific field of your
document, you have to define a mapping:
http://www.elasticsearch.org/guide/reference/api/admin-indices-put-mapping.h
tml

See more details about mappings here:
http://www.elasticsearch.org/guide/reference/mapping/core-types.html

Feel free to ask more but please give more details about what you are trying
to do.
I recommend to read: http://www.elasticsearch.org/help/

HTH
David.

-----Message d'origine-----
De : macfri10@gmail.com [mailto:macfri10@gmail.com]
Envoyé : jeudi 18 octobre 2012 19:34
À : david@pilato.fr
Objet : HI.. Please you can help me?

Hi
I have a small problema about as configure a analyzer

i did that:

curl -XPUT http://localhost:9200/index/_settings -d '
{
"index":
{
"analysis":
{
"analyzer":
{
"simple":
{
"type": "simple"
}
}
}
}
}'

i dont know if that is ok

please how Can i do that correctly

because i can not search for simple english words like "this, or, was".
etc.

i am waiting for you answer

--


(Ivan Brusic) #2

Hard to tell since you didn't show your mapping/query, but if you are using
the standard analyzer, then it will use the english stop word set, which
includes "this", "was", and "or".

Even if you change the analyzer for the queries, the standard analyzer will
still be used for indexing.

--
Ivan

On Thu, Oct 18, 2012 at 11:29 AM, David Pilato david@pilato.fr wrote:

You should ask for such question in the Elasticsearch mailing list or on
Stackoverflow.

That said, I answer now on the mailing list. Please answer to the mailing
and not to my direct mail.

What are you trying to achieve?

A simple analyzer already exists:

http://www.elasticsearch.org/guide/reference/index-modules/analysis/simple-a
nalyzer.html

If you are trying to apply this analyzer to a specific field of your
document, you have to define a mapping:

http://www.elasticsearch.org/guide/reference/api/admin-indices-put-mapping.h
tml

See more details about mappings here:
http://www.elasticsearch.org/guide/reference/mapping/core-types.html

Feel free to ask more but please give more details about what you are
trying
to do.
I recommend to read: http://www.elasticsearch.org/help/

HTH
David.

-----Message d'origine-----
De : macfri10@gmail.com [mailto:macfri10@gmail.com]
Envoyé : jeudi 18 octobre 2012 19:34
À : david@pilato.fr
Objet : HI.. Please you can help me?

Hi
I have a small problema about as configure a analyzer

i did that:

curl -XPUT http://localhost:9200/index/_settings -d '
{
"index":
{
"analysis":
{
"analyzer":
{
"simple":
{
"type": "simple"
}
}
}
}
}'

i dont know if that is ok

please how Can i do that correctly

because i can not search for simple english words like "this, or, was".
etc.

i am waiting for you answer

--

--


(system) #3