I defined a custom analyzer for a field, env_from, as per this 
example<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-pattern-capture-tokenfilter.html>.
 
 
Now i want to search the field generated tokens from kibana but without 
having to use lucene syntax, to do this I want to replicate the tokens 
generated from the custom analyzer to the _all field.  

Is this possible?

Thanks
Kevin

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/596879c0-c3b8-49ef-baea-21b560e4f03b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
curl -XPOST $elasticloc:9200/ss -d '{
    "settings" : {
        "analysis" : {
            "filter" : {
                "email" : {
                    "type" : "pattern_capture",
                    "preserve_original" : 1,
                    "patterns" : [
                        "(\\w+)",
                        "(\\p{L}+)",
                        "(\\d+)",
                        "@(.+)"
                    ]
                }
            },
            "analyzer" : {
                "email" : {
                    "tokenizer" : "uax_url_email",
                    "filter" : ["email", "lowercase", "unique"]
                },
                "mysnowball" : {
                    "type" : "snowball",
                    "language" : "English"
                }
            }
        }
    },
    "mappings" : {
        "filter" : {
            "properties" : {
                "ts" : {"type" : "date"},
                "env_from" : {"type" : "string", "analyzer" : "email"},
                "env_rcpt" : {"type" : "string", "analyzer" : "email"},
                "subject" : {"type" : "string", "analyzer" : "mysnowball"}
            },
            "_ttl" : {"enabled" : true, "default" : "'$datattl'"},
            "_timestamp" : {"enabled" : true}
        },
        "sendmail" : {
            "properties" : {
                "qid" : {"type" : "string"},
                "ts" : {"type" : "date"},
                "id" : {"type" : "string"},
                "data" : {"type" : "string"}
            },
            "_ttl" : {"enabled" : true, "default" : "'$datattl'"},
            "_timestamp" : {"enabled" : true}
        }
    }
}'

Reply via email to