Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

site search


Go to End


851 Views

Avatar
ismooth

Community Member, 25 Posts

22 January 2015 at 12:51am

Hi,

i'm trying to implement a site search with one search field which would search through dataObject's two fields, Name and Description, and return results matching on ANY of the fields. For these two db fields I created fulltext filters, so that defaultsearchcontext uses fulltextfilters.
I'm facing two problems:
1) first how to attach keywords from one input field to match for both db fields?
2)how to do OR search instead of AND?

Cheers,
Igor