localwiki / localwiki-backend-server

Primary LocalWiki backend server environment
GNU General Public License v2.0
48 stars 16 forks source link

Can full-text search be looser? #71

Open philipn opened 9 years ago

philipn commented 9 years ago

From @hampelm on August 5, 2012 5:8

Would it be straightforward for the full-text search to be looser about results? For example, I'd expect that http://detroitwiki.org/search/?q=det would also show results for pages that contain detroit

Copied from original issue: localwiki/localwiki#321

philipn commented 9 years ago

"det" -> detroit is a bit of a stretch because it's not steamming or a spelling correction. Google can pick up on that kind of thing but they are doing much more than what solr/etc do. We should look into turning on spelling correction, though.

philipn commented 9 years ago

From @petermacraeuk on August 12, 2012 14:45

Is it possible for it to see, for example, "website" and "web site" as being the same thing?

philipn commented 9 years ago

I haven't researched specifics but I know a whole lot of tweaking and cool stuff can be turned on. If you want to dig around, check out the haystack docs (search wrapper we are using) and the solr docs. We've done no tuning and I've noticed some lame searches. Itd be good to maybe even put together a set of pages with desired results and run them like tests!