ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

EE simple search removes small words

July 12, 2012 4:19am

Subscribe [2]
  • #1 / Jul 12, 2012 4:19am

    LightmakerUK

    42 posts

    Hello,

    Is it standard practice for the EE simple search to remove small, even 1 letter words from search termS? e.g. If I search for ‘stories in blogs’ the search returns ‘stories blogs’. Normally this would be fine but I am using the Tag module search results which returns the exact phrase used in a tag. This means if I have tagged a post with ‘stories in blogs’ I get no results in my tag search listings. So my question is… Although I can see why EE removes the small words from a search is there a way I could disable this so my tag search will work too?

    Thanks.

  • #2 / Jul 13, 2012 5:35pm

    Dan Decker

    7338 posts

    Hi LightmakerUK,

    Sure thing!

    You can open /system/expressionengine/modules/search/mod.search.php and change the value of:

    var $min_length = 3;

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases