1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.3 Search For Numbers

Discussion in 'XenForo Questions and Support' started by lostincable, Apr 11, 2014.

  1. lostincable

    lostincable Active Member

    Just wondering if there is a way to configure Xenforo to allow searching for numbers?

    I run a forum that has model numbers and numbers are used alot so my users are asking for it but searching for 14 or 14.44 does not work.

    Any ideas?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. lostincable

    lostincable Active Member

    Thanks @Brogan is there another way or is it just not possible with the default xenforo?

    Elasticsearch etc seems a bit full on for my small site :)!
     
  4. whynot

    whynot Well-Known Member

    Not possible.
    14 > 14
    14.44 > 14 and another 14
    For a MySQL search they are too short.
     
  5. Martok

    Martok Well-Known Member

    The limitation is with MySQL Full Text search, not Xenforo.

    From Brogan's FAQ

    http://xenforo.com/community/threads/frequently-asked-questions.5183/#post-180445

    Why can't I search for words with 3 characters or less?
    This is a limitation of the MySQL Full Text search function.Find more information on the MySQL site.
    Note that with XenForo 1.1 and above, it is now possible to set the minimum word length in the ACP -> Options -> Search Options: Search Minimum Word Length; this value must correspond with the MySQL full text minimum word length in the my.cnf configuration file.


    Why can't I search for certain words?
    The MySQL search function has what are called stopwords, which are typically common words, and are excluded from searches. Find more information on the MySQL site.
    Note that the XenForo Enhanced Search add-on, which is installed here on XenForo.com, does not suffer the same constraints as default MySQL search does with regards to minimum word length and stop words. The stopwords for elasticsearch are listed here.
     

Share This Page