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.

Search returning sub string matches...

November 18, 2010 10:54am

Subscribe [3]
  • #1 / Nov 18, 2010 10:54am

    tigercore

    24 posts

    For example if I search for ‘spa’ I get results for any words containing that substring, such as ‘Spalding’ and ‘Space’

    Is there a setting to prevent this from happening? I want to match complete words only.

  • #2 / Nov 18, 2010 4:06pm

    Ingmar

    29245 posts

    What version and build of EE are you using? How are you searching, using the search module? There’s an option for searching whole words, too.

  • #3 / Nov 19, 2010 5:52am

    Wardour

    7 posts

    EE 1.6.9

    Using the simple search form at the moment.

    Is there something I can pass with the {exp:search:simple_form} tag?

    Thanks

  • #4 / Nov 19, 2010 11:21am

    Ingmar

    29245 posts

    Please try the advanced search. Start out with the example code from the docs and take it from there.

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

ExpressionEngine News!

#eecms, #events, #releases