Really got confused. Actually I want to the relationship between the analyzer and terms.
I created a customer analyzer with a new index.
curl -XPOST 'http://localhost:9200/curt' -d '
{
"settings":{
"analysis": {
"analyzer": {
"comma":{
"type": "custom",
"tokenizer": "commatokenizer"
}
},
"tokenizer": {
"commatokenizer":{
"type": "pattern",
"pattern": ","
}
}
}
}
}'
So there are 3 terms? Since I already use my analyzer to use comma to separate the words, so there should be 2 terms, right? Can anyone explain me on this?
Really got confused. Actually I want to the relationship between the analyzer
and terms.
I created a customer analyzer with a new index.
curl -XPOST 'http://localhost:9200/curt' -d '
{
"settings":{
"analysis": {
"analyzer": {
"comma":{
"type": "custom",
"tokenizer": "commatokenizer"
}
},
"tokenizer": {
"commatokenizer":{
"type": "pattern",
"pattern": ","
}
}
}
}
}'
So there are 3 terms? Since I already use my analyzer to use comma to
separate the words, so there should be 2 terms, right? Can anyone explain me
on this?
Hi, dadoonet
Thanks very much for your rely, I still got a little confused on this.
I need to apply the analyzer to the specific type? (for me example, is jdbc),
How could I do that by put mapping api? Thanks.
Your concern here is that you create an analyzer but you did not apply it to your jdbc type.
So, Elasticsearch uses the default mapping.
Le 30 janv. 2013 à 10:10, Curt Hu <zhongting.hu@> a écrit :
Really got confused. Actually I want to the relationship between the analyzer
and terms.
I created a customer analyzer with a new index.
curl -XPOST 'http://localhost:9200/curt' -d '
{
"settings":{
"analysis": {
"analyzer": {
"comma":{
"type": "custom",
"tokenizer": "commatokenizer"
}
},
"tokenizer": {
"commatokenizer":{
"type": "pattern",
"pattern": ","
}
}
}
}
}'
So there are 3 terms? Since I already use my analyzer to use comma to
separate the words, so there should be 2 terms, right? Can anyone explain me
on this?
--
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@.
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@.
For more options, visit https://groups.google.com/groups/opt_out.
Hi, dadoonet
Thanks very much for your rely, I still got a little confused on this.
I need to apply the analyzer to the specific type? (for me example, is
jdbc),
How could I do that by put mapping api? Thanks.
dadoonet wrote
Your concern here is that you create an analyzer but you did not apply it
to your jdbc type.
So, Elasticsearch uses the default mapping.
Really got confused. Actually I want to the relationship between the
analyzer
and terms.
I created a customer analyzer with a new index.
curl -XPOST 'http://localhost:9200/curt' -d '
{
"settings":{
"analysis": {
"analyzer": {
"comma":{
"type": "custom",
"tokenizer": "commatokenizer"
}
},
"tokenizer": {
"commatokenizer":{
"type": "pattern",
"pattern": ","
}
}
}
}
}'
So there are 3 terms? Since I already use my analyzer to use comma to
separate the words, so there should be 2 terms, right? Can anyone explain
me
on this?
--
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
--
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
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.