All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Ignoring "the" in search terms

Leevi Graham 17 Oct 2011 21:48 problem, complete

Hey mate,

I have a search implemented and when I search for: "Lord Of The Rings: War In The North" I also get the following returned:

* The Informant
* The Losers
* The Prestige

Is there anyway to ignore those MYSQL stop words even if your search terms contain them?

Cheers Leevi

Replies

  1. Low 18 Oct 2011 14:09

    Hey Leevi,

    Currently there isn't, no. But it's a good idea to add an extension setting so you can define ignore words that are filtered out of the index, probably. Consider it a filed feature request. :)

    I take it you're searching with the search_mode on "any", right? If you set that to "all", does it work as expected?

  2. Adam 17 Jan 2012 03:07

    I ran into this roadblock as well. I found that "all" wasn't returning results often enough due to the sentence structure of the search field (it's an email subject field) on the site I'm using this for. "Any" gave me all the results I want, but plenty more I don't because it's grabbing various stop words as well (again, normal sentence structure the culprit here).

    My solution was to strip the stop words from the search query with javascript before submitting. Functional, but not ideal. +1 to this request.

  3. Low 17 Jan 2012 08:39

    I'll try and add this to the next version. No E.T.A, if you're wondering. :)