Overview
This article is for vaults using DtSearch engine, other search engines might behave differently.
M-Files search will try to match your search term against the full text search index of the vault.
A123456 and 123456 are indexed as 2 different terms (the same applies to, for example, use and reuse) which means a search with term 123456 or A123456 will not return both objects.
However, if you want to match a partial alphanumeric string (combination of words and letters) you can use one of these 2 possible solutions.
Solution
Option 1:
Use the "|" character with a search term to trigger fuzzy searching. The term is defined in M-Files Admin under Advanced Vault Settings: Configuration > Search > Full-Text Search > Fuzzy Searching Trigger
Fuzzy search is a search technique that finds matches even when the search query doesn't perfectly match corresponding data.
Option2:
You can index the strings using separators, these are defined in M-Files Admin under Advanced Vault Settings: Configuration > Search > Full-Text Search > Space Characters in Preprocessing.
For example, use the underscore character: the _ character matches a whitespace. Consequently, the next character starts a search term and cannot be a wildcard character: ?, #, or *.
search: A_123456 matches both "A_123456" and "A 123456"
