_keyword search

4 posts by 3 authors in: Forums > CMS Builder
Last Post: April 20, 2011   (RSS)

Hello,

I'm using the fieldname_keyword function in a search and have only just noticed it doesn't split words...

for example a search for "art and design" returns results which have the whole string "art and design" in.

However a search for "art design" doesn't return "art and design" because it's matching the whole string, i.e. no 'and'.

Is there an easy way to make the _keyword search split multiple words in the search and intelligently return them in results?

Ideally I'd like it to return:

Art and Design
Art
Design

in that order, i.e. 'quality of match'

But that quality of match might be tricky... but at least having it split multiple searched keywords so "art design" returns result titled "art and design"

Any ideas or inspiration?!

Cheers

Re: [Jason] _keyword search

Cheers Jason, this is the approach I was thinking of taking :) thanks

As for quality of match, I'll give it some thought...

Cheers

Re: [rjbathgate] _keyword search

By Dave - April 20, 2011

Hi Rob,

Also, try *_query which mimics google:
http://www.interactivetools.com/docs/cmsbuilder/viewer_search.html

However, it ANDS words together so it would only return matches with Art AND design.

What you're describing is ORing words together. The problem with that is it can sometimes be unintuitive for the user, as the more keywords they add the more results they get.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com