I'm trying to add a bigram field for use as described at http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-suggesters-phrase.html

I defined a bigram tokenizer like so:

"bigram_tokenizer": {

     "type"       : "nGram"
    ,"min_gram"   : 2
    ,"max_gram"   : 2
    ,"token_chars": [ "letter", "digit" ]
}

and a bigram analyzer like so:

"bigram_analyzer" : {

     "type"        : "custom"
    ,"char_filter" : [ "html_strip" ]
    ,"tokenizer"   : "bigram_tokenizer"
    ,"filter"      : [

         "lowercase"
        ,"asciifolding"
    ]
}

then I'm trying to add a field in the mapping, like so:

    "bigram"       : { "type": "text", "analyzer": "bigram_analyzer" }

but this fails.

any ideas?

thanks!

--
Igal Sapir
Railo Core Developer
http://getRailo.org/

--
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/5359E2AD.2060400%40getrailo.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to