Elasticsearch custom analyzer with ngram and without word delimiter on hyphens
I am trying to index strings that contain hyphens but do not contain spaces, periods or any other punctuation. I do not want to split up the words based on hyphens, instead I would like to have the hyphens be part of the indexed text. For example, my 6 text strings would be: magazineplayon magazineofhorses online-magazine best-magazine friend-of-magazines magazineplaygames I would like to be able to search these string for the text containing "play" or for the text starting with "magazine" . I have been able to use ngram to make the text containing "play" work properly. However, the hyphen is