JaapRood/fuel-search — Issue #1: Make search work properly with multiple words
Author: JaapRood
Created: 2012-02-18 21:39:37+00:00
State: open

At the moment the scores of words are calculated per occuring word. Search terms consisting out of multiple words, however, should also be matched to combinations of words out of the fields. The problem is that we can't simply go every single possibility, as the number of iterations could go up dramatically and make searching through data very slow.

My first thought is to only get scores for combinations of words if the search term contains spaces itself. The search term "love pie" should, next to single words also get scores for the combination of adjacent words. We should never skip the normal words, as the space could be just another spelling mistake. With this strategy, we do dismiss the probability of people forgetting to use a space: searching for "lovepie" won't result in there being a score calculated for "love pie" but only the words individually.