How to configure this on Sphinx?
To the online store connected to sphinx search. Default to find a product that you need to enter the full name of the product or its compatible model, which is in the item description. If you enter a partial name, the search won't give. There is an option to enter a few characters and put at the end of the sign * (asterisk), then sphinx returns all options which start before asterisk.
Tell me how to configure search so that was not necessary each time to enter the * character at the end. To do so: the client starts writing in the search and it should come out the options found, i.e. as if after every entered symbol is indicated *.
Tell me how to implement this?
3 answers
# to search for *request*
min_infix_len = 3
# for the search request*
# min_prefix_len = 3
#Allows the use of asterisks in queries, for example on request *PR* will be found the prospectus, Hey, approximation, etc.
enable_star = 1
# Automatically expands the search query to three queries
expand_keywords = 1
PS
min_infix_len or min_prefix_len
If you specify two parameters, it will error.
the easiest way in the background - if null rezalt - add the asterisk to the query
well, normally - it is necessary trained
Enable old config Sphinx to include
Find more questions by tags Sphinx