Jump to:

3430 Posts in 1057 Topics by 734 members

Data Model Questions

SilverStripe Forums » Data Model Questions » Boolean Full-Text Searches

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

Page: 1
Go to End
Author Topic: 842 Views
  • timwjohn
    Avatar
    Community Member
    98 Posts

    Boolean Full-Text Searches Link to this post

    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.

    Thanks!

    842 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.