Alien vs. Predator search query

How do you do this when you search for “alien versus predator” you also get results with the string “alienS vs predator” with “S”
example http://www.torrentz.com/search?q=alien+vs+predator
like them implemented it?
is it an advanced search engine?

+3
source share
6 answers

This is called Word Stemming . When the text is indexed, the words "flock" to their "roots". Thus, the struggle becomes the struggle, the ski becomes the ski, the run starts, etc. The same is done with the text that the user enters during the search, so when the search terms are compared with the values ​​in the index, they match.

The Lucene project supports this. I would not consider it as an additional function. Especially with the expectations that Google has set.

+7
source

- . Stemming - . . wikipedia: http://en.wikipedia.org/wiki/Stemming , .

+4

, , , :

SELECT * FROM TBLMOVIES WHERE NAME LIKE '%ALIEN%'

, ALIEN NAME, , ALIENS.

+3

, . , "", "", "", "" "".

"".

. - http://tartarus.org/~martin/PorterStemmer/

+3

, , .

, , , , .

+1
+1

Source: https://habr.com/ru/post/1767052/


All Articles