Echo4190 / alliancep2pbeta

Automatically exported from code.google.com/p/alliancep2pbeta
0 stars 0 forks source link

Correctly Tokenize Seach Queries #142

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Previously Alliance would use LIKE %SEARCH QUERY% to find files which match the 
query however this fails to work as expected.

My patch tokenizes the search query and appends "AND (LOWER(filename) LIKE ?) " 
to the prepared statement for each additional word in the query. It limits the 
number words to 10.

Original issue reported on code.google.com by jbrownbr...@gmail.com on 9 Dec 2010 at 3:03

Attachments: