Search code examples
sphinx

Can Sphinx query push Integer patterns?


In regex for instance if I wanted to search on up to five digits in front of my term I'd do

[0-9]\d{0,5} (Term)

can I do this with Sphinx and if so how would I return the fact that I matched Term AND the specific integer as well?


Solution

  • Sphinx doesnt have a digit only wildcard.

    There are wildcards, http://sphinxsearch.com/docs/current.html#conf-min-infix-len but they match any char in charset_table.