Proper way to tokenize filenames with periods

Sample text inside a document field:

What I am trying to do is queries such as:

"jquery" (works)
"jquery.min.js" (works too)
"jquery.min" (does NOT work)

How can I properly tokenize the above string so that I can search using all
three of those query strings?

My current index configuration:

{

"settings":{

"number_of_shards" : 5,

"number_of_replicas" : 0,

"analysis":{

            "filter" : {

                "code_filter" : {

                   "type" : "word_delimiter",

                   "type_table": [". => ALPHA", "- => ALPHA" ]

               }   

            },

            "analyzer" : {

                "my_ngram_analyzer" : {

                    "tokenizer" : "my_ngram_tokenizer", 

"filter" : ["lowercase", "code_filter"]

                }

            },

            "tokenizer" : {

                "my_ngram_tokenizer" : {

                    "type" : "nGram",

                    "min_gram" : "3",

                    "max_gram" : "20",

                    "token_chars": [ "letter", "digit"  ]

                }

            }

        }

}

}

--
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/77e2555a-c41d-4713-bb64-1c757bb5ff5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.