Jump to:

1036 Posts in 810 Topics by 315 members

Forum Module

SilverStripe Forums » Forum Module » Does the Forum Search Work With Numbers?

Discuss the Forum Module.

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

Page: 1
Go to End
Author Topic: 1539 Views
  • _Vince
    Community Member
    161 Posts

    Does the Forum Search Work With Numbers? Link to this post

    I was looking at the DataObjectManager forum for stuff on a problem I am having with the image gallery and 2.4.3.

    Anyway, I tried searching for "2.4.3" in that forum and, even though there's a topic that contains "2.4.3" in the title and in several posts, the search function couldn't find it.

    Is that just me?

  • Terry Apodaca
    Community Member
    109 Posts

    Re: Does the Forum Search Work With Numbers? Link to this post

    I am wondering if this is some kind of limitation with either the built in Site Search or some limitation of the MySQL indexing.

    I have a similar situation, where i have a client that has products with say....Product Number: 800-80, and they want to be able to search for these products on the website based on not only the content and title, they want the product number too.

    Well, as we all know, the default Site Search only indexes the Content field, the Title fields, and the Meta fields. Any custom field you add is not going to be searched. So I built a little workaround based Aram's workaround so that these custom fields will be saved to the MetaKeywords and the MetaDescription so they can be searched. this also helps the clients a little in external search engines so they were ok with it. Not only that, but they didn't want to go in and add their own custom meta data for each product so this kind of did the trick.

    Anyway, I can't change the ft_min_word_len=3 because they are on a shared host. so...the above is all i can think of.

    Here's the kicker, if they have a product number that's like this: "MT-58SL" or even "1600-10" the search finds it.

    If they have a product number that's like this: "400-10" or "800-00" the search DOES NOT find it.

    I don't know if the shortness and then the dash is disregarded so it skips the indexing because it thinks its actually "800" and "00"?

    I need to know if this is the issue or what the indexing thinks of this or is it MySQL?

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.