How can I make multiple / singular words stretch all forms?
Example. If a person is looking for “male rings”, how can I check the database to find out if any of the fields contain male, male, male, rings, rings, etc.?
It doesn't seem like using LIKE would be the best approach to what you need. I would look at MySQL FULLTEXT indexing to get basic functionality. I will need to study the plural a bit more to see if this can be done.
Take a look at these two links for FULLTEXT indexing information.
:
SELECT headline, story FROM news WHERE MATCH (headline,story) AGAINST ('Hurricane');
UPDATE:
SO , , , , FULLTEXT , , . FULLTEXT?
Sphinx full-text MySQL (. ).
full-text
Porter Stemmer [2] [3], , "" , "" , "" "" "" (. wiki).
select * from index_table where item_name rlike '[[:<:]]preform[s]*[es]*[ies]*[[:>:]]';
, . . , 90-95% .
Cheers, Ashish
Source: https://habr.com/ru/post/1751089/More articles:Error writing file from java applet - javaASP.NET MVC 2 and SQL Profile Provider - asp.net-mvc-2Semaphores in one thread - multithreadingHow would you deal with this problem? Jquery + ajax + server timeout - jqueryIn Java, extract JPEG from a URL and convert it to binary or hexadecimal, suitable for embedding in an RTF document - javaWhat does python.exe do as an argument? - pythonWPF: use Snoop for Windows running from WinForms? - profilingDo you know any lexical analyzer or lexer in Qt? - c ++segfault при попытке доступа к члену строки класса - c++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1751094/how-to-go-about-adding-unit-tests-to-an-established-autotools-c-project&usg=ALkJrhgtj00MIqMJT1nwAfgAp5I6b-JjrQAll Articles