Commit 298fc126 authored by Romain Loth's avatar Romain Loth

phpApi: lowercase search queries and postings base

parent 03be92c6
......@@ -67,6 +67,8 @@ function parse_and_index_csv($filename, $typed_cols_to_index, $separator, $quote
foreach($tokens as $tok) {
$tok = strtolower($tok);
if (strlen($tok)) {
// POSS : stopwords could be used here
......
......@@ -113,6 +113,8 @@ else {
continue;
}
$tok = strtolower($tok);
// echodump("tok", $tok);
// echodump("searchcols", $searchcols);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment