K
K
Kir Shatrov2011-07-24 00:30:14
Sphinx
Kir Shatrov, 2011-07-24 00:30:14

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

4 answer(s)
J
Juggler, 2011-07-24
@RazoR_Empire

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.

V
Vitaly Khnykin, 2011-07-24
@stell_hawk

there is an ignore_chars directive.

Y
Yanovsky, 2013-11-25
@Yanovsky

The ignore_chars directive is responsible for which characters will not be indexed at all.
blend_chars is what you need.

L
lashtal, 2011-07-24
@lashtal

It needs blend_chars.
sphinxsearch.com/docs/manual-2.0.1.html#conf-blend-chars

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question