In a certain ID field we are indexing on a document looks like this: 1234 45676
We want to be able to do fulltext searches on each of the 2 groups of numbers, just as if they are strings. I escape the number groups in quotes, which the mongo documentation says will ensure that the entire string will be searched for.
For example, if an indexed field has the word "blue" in it, only the word "blue" will be searched for. Searching on "b" will not yield a hit. (we are using non-stemmatic searching for the time being).
But that is not the result with the number groups. Even though we escape our number groups with quotes ("45676"), the number groups are subjected to wildcard searches. In our example, searching on "4" will hit on "45676".
How can we ensure that "45676" is treated as a string that will yield a hit only if "45676" is searched for?
All suggestions or perspectives are welcome! Thanks in advance.