I have a large volume of file names which include periods in them. This seems to join them to one large word and stops them being picked up using TextCriteria searching.
For example /example/test.one.two.three.txt
If I search two
it doesn't seem to be picked up, however if I have /example/test one two three.txt
searching two
will return the file.
Am I able to set the separator for the query on the .
? Alternatively I can split the words when saving into Mongo but that seems messy. At the moment I'm using a very simply TextCriteria
:
TextCriteria textCriteria = new TextCriteria();
textCriteria.matchingAny(query);
Any tips?