Answer the question
In order to leave comments, you need to log in
Spix, search ignoring spaces/dashes
There is a table with records of serial numbers, for example:
01-1048070917-A
V40-30-1004
The data is stored in MySQL, search through Sphinx. How can I make Sphinx search across lines as well, ignoring spaces and dashes, i.e. did you find the serial number from the examples above for "011048070917A" or "V40301004"?
Answer the question
In order to leave comments, you need to log in
Alternatively, you can play around with a query that sends data to the Sphinx for indexing - it immediately removes spaces and dashes in this field using REPLACE.
The ignore_chars directive is responsible for which characters will not be indexed at all.
blend_chars is what you need.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question