Sorry, another question, i really have some difficulties :D.
I don't understand something in elasticsearch percolation Here is my first
mapping :
curl -XPUT 'localhost:9200/blacklist' -d '{
"domains": {
"properties": {
"domain": {
"type": "string",
"index" : "not_analyzed"
}
}
}
}'
My Second Mapping :
curl -XPUT 'localhost:9200/blacklist' -d '{
"domains": {
"properties": {
"domain": {
"type": "string",
"index" : "no",
"include_in_all" : false
}
}
}
}'
My Percolator :
curl -XPUT localhost:9200/blacklist/.percolator/toto -d '{"query" : { "match" : {"domain" : "totolasticot2.com" } }}'
And my "percolations" :
curl -XGET localhost:9200/blacklist/domains/_percolate -d '{"doc" : { "domain" : "totolasticot2.com" } }'
{"took":3,"_shards":{"total":5,"successful":5,"failed":0},"total":1,"matches":[{"_index":"blacklist","_id":"toto"}]}
curl -XGET localhost:9200/blacklist/domains/_percolate -d '{"doc" : { "domain" : "com" } }'
{"took":3,"_shards":{"total":5,"successful":5,"failed":0},"total":1,"matches":[{"_index":"blacklist","_id":"toto"}]}
Anyone as an idea of why does he tokenize ?
Ps : Just tried this :
curl -XPUT 'localhost:9200/blacklist' -d '{
"mappings":{
"domains":{
"properties":{
"domain":{
"type":"string",
"analyzer":"notoken"
}
}
}
},
"settings":{
"analysis":{
"analyzer":{
"notoken":{
"tokenizer":"uax_url_email"
}
}
}
}
}'
Not working either
i tried with keyword tokenizer but i can send doc like this "text" :
"blablabla http://www.lemonde.com" so... it's not accurate
Someone can explain me
--
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@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5ba1d759-6368-4745-8b74-e65b5aea7fb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.