let\'s say that in my elasticsearch index I have a field called \"dots\" which will contain a string of punctuation separated words (e.g. \"first.second.third\").
I
Have a look at prefix queries.
$ curl -XGET 'http://localhost:9200/index/type/_search' -d '{ "query" : { "prefix" : { "dots" : "first.second" } } }'