L
L
lukoie2015-08-29 13:19:53
CMS
lukoie, 2015-08-29 13:19:53

How to make a search on the site that understands the error in the layout?

For example, film search understands the search "cgbk, thu" and immediately shows links where there is a spielberg.
However, he does not understand "yzshudiukp" (i.e., mistyped spielberg). Is it possible for the script to understand this?
Are there ready-made solutions for a similar task for integration (vanilla or for tsms)?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Fedorov, 2015-08-29
@aliencash

Search engines have a ready-made solution - "site search". He understands everything. True, he searches only on the indexed pages of the site.

R
Roman Kitaev, 2015-08-29
@deliro

First you write a function that will change the layout for the user.
When requesting, you search by the original string, if nothing is found, you search by the result of the function from the original string.

D
DrunkMaster, 2015-08-29
@DrunkMaster

I join, ready decisions most interest.
If you did it yourself, you can use different methods, for example, use the impossibility of languages, for example, if a person enters "аъ" then he has already made a mistake, or immediately transliterate and search in the database in both languages, or, based on the most frequent queries, make a small list words upon detection of which it is necessary to change the layout. In English, for example, there is no combination of yf surrounded by spaces: "yf" and in Russian it is "na"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question