I am trying to create an analyzer which can return all possible tokens, for example for this word AB-12-1993 xyz.pdf
the tokens generated would be AB, AB-12, -12-1993, 12-1993, -1993, 1993, AB-12-1993 xyz, xyz, xyz.pdf, AB-12-1993 xyz.pdf
, if any other extra token is generated that is not an issue. But these should be generated.
I have tried with whitespace analyzer with ngram but these -12-1993, 12-1993, -1993, 1993
are not getting generated.
I have also tried this, with different analyzers but of no help
I am using elasticsearch 8.3.3. Can somebody please help me out here please?