User Tag List

Results 1 to 25 of 28

Thread: Change the Search indexing minimum to 3 characters

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Old School Paneristi

    Awards Showcase

    PatronSaintofChainsaws's Avatar
    Join Date
    Dec 2008
    Location
    Nowhere
    Posts
    1,858
    GeekBux
    126,318.32
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    20
    Country
    usa
    Region
    us california


    Default

    Quote Originally Posted by Pugwash View Post
    As far as I have understood it, he's talking about it being in the PHP source code for phpBB. If you don't have r/w access to the phpBB code, you can't change the minimum search length indexed.
    It's not, it's in the Admin control panel, under Search Settings. I'm looking at it on one of my BBs right now.

    For vBulletin, it's the Search Index Minimum Word Length setting under Message Searching Option.

    You may need to modify my.cnf (for MySQL) and add the following for fulltext search:

    [mysqld]
    ft_min_word_len=3

    [myisamchk]
    ft_min_word_len=3
    http://dev.mysql.com/doc/refman/5.1/...variables.html

    Default value is supposedly 4, but strangely enough, I'm running a MySQL version that's a few months old, I don't have a specific ft_min_word_len set, and yet it's been indexing correctly as per my 3 character setting in phpBB on that board.

    As I said, it's not a PHP limitation.

    Anyway, an additional problem is that they'd have to rebuild the search index. Given that this is a fairly busy board, that might not be very fun.

  2. #2
    Removed

    Awards Showcase


    Join Date
    Oct 2008
    Posts
    451
    GeekBux
    57,982.00
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Country
    sweden


    Default

    I stand corrected on the php part. About mysql you are also right, those are the correct params.

    The minimum length of words to be indexed is defined by the ft_min_word_len system variables. The default minimum value is four characters.

    ft_min_word_len
    Command Line Format --ft_min_word_len=#
    Config File Format ft_min_word_len
    Option Sets Variable Yes, ft_min_word_len
    Variable Name ft_min_word_len
    Value Set
    Type numeric
    Default 4
    Min Value 1

    If you change this value, you must rebuild FULLTEXT indexes. For example, if you want three-character words to be searchable, you need to edit my.cnf and set the ft_min_word_len variable by putting the following lines in an option file:

    [mysqld]
    ft_min_word_len=3

    Then restart the server and rebuild your FULLTEXT indexes.

    Repgeek is not currently running under fulltext, hence not beeing able to process boolean search. This needs to be fixed first in admincp.

    Then you need to change the mysql setting. If the server is dedicated this should be no problem, and a restart only takes a few minutes.

    However, if the forum recides at a webhotel (like my forum) and the webhotel has fixed settings this is not possible. Search will always be what mysql wants it to be and in most cases this means 4 caracters.

    Apart from all this: As long as the crew donīt want this, it will definately not happen.

  3. #3
    Size 14W carbon footprint

    Awards Showcase

    sixbennetts's Avatar
    Join Date
    Jun 2007
    Posts
    3,352
    GeekBux
    216,974.64
    Post Thanks / Like
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    24
    Country
    usa
    Region
    us new york


    Default

    Quote Originally Posted by PatronSaintofChainsaws View Post
    It's not, it's in the Admin control panel, under Search Settings. I'm looking at it on one of my BBs right now.

    For vBulletin, it's the Search Index Minimum Word Length setting under Message Searching Option.

    You may need to modify my.cnf (for MySQL) and add the following for fulltext search:



    http://dev.mysql.com/doc/refman/5.1/...variables.html

    Default value is supposedly 4, but strangely enough, I'm running a MySQL version that's a few months old, I don't have a specific ft_min_word_len set, and yet it's been indexing correctly as per my 3 character setting in phpBB on that board.

    As I said, it's not a PHP limitation.

    Anyway, an additional problem is that they'd have to rebuild the search index. Given that this is a fairly busy board, that might not be very fun.
    Quote Originally Posted by Franke View Post
    I stand corrected on the php part. About mysql you are also right, those are the correct params.

    The minimum length of words to be indexed is defined by the ft_min_word_len system variables. The default minimum value is four characters.

    ft_min_word_len
    Command Line Format --ft_min_word_len=#
    Config File Format ft_min_word_len
    Option Sets Variable Yes, ft_min_word_len
    Variable Name ft_min_word_len
    Value Set
    Type numeric
    Default 4
    Min Value 1

    If you change this value, you must rebuild FULLTEXT indexes. For example, if you want three-character words to be searchable, you need to edit my.cnf and set the ft_min_word_len variable by putting the following lines in an option file:

    [mysqld]
    ft_min_word_len=3

    Then restart the server and rebuild your FULLTEXT indexes.

    Repgeek is not currently running under fulltext, hence not beeing able to process boolean search. This needs to be fixed first in admincp.

    Then you need to change the mysql setting. If the server is dedicated this should be no problem, and a restart only takes a few minutes.

    However, if the forum recides at a webhotel (like my forum) and the webhotel has fixed settings this is not possible. Search will always be what mysql wants it to be and in most cases this means 4 caracters.

    Apart from all this: As long as the crew donīt want this, it will definately not happen.



    SPEAK ENGRISH!!!


    __________________________________________________

    Repgeek is a condom for on your wallet, not in it.

    Medat Kara Gulel Meerschaum pipe
    Hidden Content

  4. #4
    Old School Paneristi

    Awards Showcase

    PatronSaintofChainsaws's Avatar
    Join Date
    Dec 2008
    Location
    Nowhere
    Posts
    1,858
    GeekBux
    126,318.32
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    20
    Country
    usa
    Region
    us california


    Default

    Quote Originally Posted by sixbennetts View Post

    SPEAK ENGRISH!!!
    Big man have small number where large number should go. Large number top quality, A+++++++++.

    Large number make happy feeling all of the time.

  5. #5
    Removed

    Awards Showcase


    Join Date
    Oct 2008
    Posts
    451
    GeekBux
    57,982.00
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Country
    sweden


    Default

    Quote Originally Posted by PatronSaintofChainsaws View Post
    Big man have small number where large number should go. Large number top quality, A+++++++++.

    Large number make happy feeling all of the time.
    Well, if nothing else works, you can always remove that stupid avatar of yours.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



About RepGeek

Replica Geek is a discussion & review forum for all fans of Replica Watches from around the World. Let's Chat About Replica Watches on Replica Geek.

RG Dealers