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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Data Model Questions /

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

Boolean Full-Text Searches

Go to End



Community Member, 98 Posts

2 June 2010 at 4:17am

Hey guys,

I've enabled fulltext searching on a custom DataObject of mine, and kind of need to change how the search is performed.

The client wants part-word searching, like a sort of automatic wildcard, e.g. a search for seat would return seatbelt also.

One way I guess I can do this is if I could perform a search in boolean mode and modify the search string so each word has a plus at the beginning and an asterisk at the end. Sounds hacky as hell actually!

Anybody got any advice on customising advanced searches, enabling boolean mode, or anything else that might help me?

I assume SearchContext might hold the key, but I haven't had much luck with it so far.