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,324.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 Franke View Post
    This is only possible if the crew can modify the php settings, as the limit of 4 is set in php. Trying to set it to 3 whitout having access to php is a dead end..
    If it's anything like phpBB, there should be a setting in the Admin control panel that's allows changing the search indexing minimum. It's quite literally a one-click change in phpBB. It has a lot more to do with the database (MySQL, etc.), than it does PHP.

    Quote Originally Posted by sixbennetts View Post
    Isn't there a wildcard character, like * or something that you can add to a short phrase?
    You can't wildcard something that the search mechanism hasn't indexed at all. As far as search is concerned, words less than the minimum number of characters don't exist.

  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

    Quote Originally Posted by PatronSaintofChainsaws View Post
    It's quite literally a one-click change in phpBB. It has a lot more to do with the database (MySQL, etc.), than it does PHP.
    Doesnīt matter what you set it to in phpBB. It can not override the php/mysql settings. If you set it to 2 and php/mysql settings are 4, it will still be 4 after you set it to 2. Thats my point.

    Changing to full text search maks this functin a little stronger.

  3. #3
    Old School Paneristi

    Awards Showcase

    PatronSaintofChainsaws's Avatar
    Join Date
    Dec 2008
    Location
    Nowhere
    Posts
    1,858
    GeekBux
    126,324.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 Franke View Post
    Doesnīt matter what you set it to in phpBB. It can not override the php/mysql settings. If you set it to 2 and php/mysql settings are 4, it will still be 4 after you set it to 2. Thats my point.
    And my point is that no such limitation exists in PHP, nor can such a setting be configured via php.ini. Granted, having an extension like memcache or xcache enabled might activate some bizarre limitations that I'm not familiar with (although I've used both and never encountered such a thing), but as far as I am aware, there's no such limitation.

  4. #4
    Inactive

    Awards Showcase


    Join Date
    May 2007
    Location
    Scotland
    Posts
    6,105
    GeekBux
    379,171.00
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Country
    uk
    Region
    uk england


    Default

    Quote Originally Posted by PatronSaintofChainsaws View Post
    And my point is that no such limitation exists in PHP, nor can such a setting be configured via php.ini. Granted, having an extension like memcache or xcache enabled might activate some bizarre limitations that I'm not familiar with (although I've used both and never encountered such a thing), but as far as I am aware, there's no such limitation.
    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.

  5. #5
    Old School Paneristi

    Awards Showcase

    PatronSaintofChainsaws's Avatar
    Join Date
    Dec 2008
    Location
    Nowhere
    Posts
    1,858
    GeekBux
    126,324.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.

  6. #6
    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.

  7. #7
    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

  8. #8
    Old School Paneristi

    Awards Showcase

    PatronSaintofChainsaws's Avatar
    Join Date
    Dec 2008
    Location
    Nowhere
    Posts
    1,858
    GeekBux
    126,324.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.

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