Hi ,
I am using the free text search with _all on email for eg
_all:narendra.choudhary@gmail.com
but it is making the parts into the narendra.choudhary and
gmail.combacause of special character ..
My mapping for the analyser is "analyzer": {
"auto_complete": {
"type": "custom",
"tokenizer": "whitespace",
"tokenizer": "uax_url_email",
"filter": [
"stop",
"standard",
"custom_ngram"
]
}
}
but it is not working ...
Could any one tell me how to make it correctly.
--
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 .
For more options, visit https://groups.google.com/groups/opt_out .
You need to define your analyzer as default analyzer. Here is an example:
curl -XDELETE 'http://localhost:9200/test-idx'
echo
curl -XPUT 'http://localhost:9200/test-idx'
echo
echo
echo "**** Standard analyzer ****"
curl 'http://localhost:9200/test-idx/_analyze?pretty=true' -d 'This is a test of somemailaddress@gmail.com'
echo
curl -XDELETE 'http://localhost:9200/test-idx'
echo
echo
echo "**** Email analyzer ****"
curl -XPUT 'http://localhost:9200/test-idx' -d '{
"settings" : {
"index": {
"analysis" :{
"analyzer": {
"default": {
"type" : "custom",
"tokenizer" : "uax_url_email",
This file has been truncated. show original
On Thursday, April 18, 2013 4:30:52 AM UTC-4, narendra choudhary wrote:
Hi ,
I am using the free text search with _all on email for eg
_all:narendr...@gmail.com <javascript:>
but it is making the parts into the narendra.choudhary and gmail.combacause of special character ..
My mapping for the analyser is "analyzer": {
"auto_complete": {
"type": "custom",
"tokenizer": "whitespace",
"tokenizer": "uax_url_email",
"filter": [
"stop",
"standard",
"custom_ngram"
]
}
}
but it is not working ...
Could any one tell me how to make it correctly.
--
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 .
For more options, visit https://groups.google.com/groups/opt_out .