vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin.org Site Feedback (https://vborg.vbsupport.ru/forumdisplay.php?f=7)
-   -   Can't search for PM (https://vborg.vbsupport.ru/showthread.php?t=116345)

hambil 05-22-2006 02:39 AM

Can't search for PM
 
I guess it's too few letters. Anyway, not being able to search for hacks with PM in their title is a problem, and annoying. Please make sure the hack database addresses this issue :)

Xenon 05-22-2006 12:42 PM

hmm, i think that's a problem with fulltext search and mysql which appears to all board, not just here.

we'll think about that for the new features :)

Paul M 05-22-2006 02:09 PM

Assuming you use fulltext search here then yes, it's a mysql problem.

I haven't looked into it fully but I don't think mysql has any sort of exceptions list for words smaller than the default it uses. Indexing all two letter words would not be a good idea.

Xenon 05-22-2006 02:45 PM

well, i didn't look into it much further either, but it'S definitelly a mysql thing, as we use full text search here ;)

hambil 05-22-2006 02:51 PM

You can set it in vBulletin under Message Search Options. You may need to also set it on the MySQL server itself. However, it can be done. vBulletin also provides an exception list to exclude common two letter words. I have my forum setup this way and it works fine.

Xenon 05-22-2006 02:53 PM

it's not a problem of vb.

exclude words is easy, you talk about include words, and as we using full text, you have to set it on mysql (if that's possible) which would at least need a serveradmin, nothing i can do myself...

hambil 05-22-2006 02:57 PM

Quote:

Originally Posted by Xenon
it's not a problem of vb.

exclude words is easy, you talk about include words, and as we using full text, you have to set it on mysql (if that's possible) which would at least need a serveradmin, nothing i can do myself...

I'm not quite sure what you are saying. Setting it in vb is a snap. Took me about ten minutes to change the setting and come up with a list of common two letter words (via google). vBulletin screens out those words before even sending them to MySQL.

Since every board gets it's own MySQL database having your host change the minimum too two letters should not be a problem.

Marco van Herwaarden 05-23-2006 08:23 AM

Those vBulletin settings only have an influence if you are using the vB search engine, not if you are using MySQL Full Text searches.

Zachery 05-23-2006 08:46 AM

Quote:

Originally Posted by hambil
I'm not quite sure what you are saying. Setting it in vb is a snap. Took me about ten minutes to change the setting and come up with a list of common two letter words (via google). vBulletin screens out those words before even sending them to MySQL.

Since every board gets it's own MySQL database having your host change the minimum too two letters should not be a problem.

MySQL FullText searching is limited to msyql, not vB, the vB search settings as marco has said do not take effect on mysql's fulltext searches.

We'd need to recompile php, and make it search very tiny words, this would mean the indexes would grow larger and be less useful and drain the server more.

I very much doubt we are going to allow mysql to index 2 letter words.

hambil 05-23-2006 09:22 AM

1 Attachment(s)
Quote:

Originally Posted by MarcoH64
Those vBulletin settings only have an influence if you are using the vB search engine, not if you are using MySQL Full Text searches.

vBulletin disagrees with you.

hambil 05-23-2006 09:32 AM

Quote:

Originally Posted by Zachery
MySQL FullText searching is limited to msyql, not vB, the vB search settings as marco has said do not take effect on mysql's fulltext searches.

We'd need to recompile php, and make it search very tiny words, this would mean the indexes would grow larger and be less useful and drain the server more.

I very much doubt we are going to allow mysql to index 2 letter words.

This is also incorrect. You don't need to do anything with php.

Quote:

  • The minimum and maximum lengths of words to be indexed are defined by the ft_min_word_len and ft_max_word_len system variables. (See Section 5.2.2, ?Server System Variables?.) The default minimum value is four characters; the default maximum is version dependent. If you change either value, you must rebuild your FULLTEXT indexes. For example, if you want three-character words to be searchable, you can set the ft_min_word_len variable by putting the following lines in an option file:
    [mysqld]
    ft_min_word_len=3
    Then you must restart the server and rebuild your FULLTEXT indexes. Note particularly the remarks regarding myisamchk in the instructions following this list

In addition, MySQL's default stop word list already contains most common 2 letter words. And you can create your own stop word list, again with no need to rebuild anything other than your indexes.

Did I not mention I have this working on my board?

Zachery 05-23-2006 10:01 AM

Sorry its late/early. I'm fairly sure Kier is not going to recompile mysql or add any setting changes to my.cnf when there is more than just vBulletin.org to think about. I'm personally more than well aware of how to make these changes.

Zachery 05-23-2006 10:07 AM

<a href="http://www.vbulletin.com/forum/showthread.php?t=156946&highlight=fulltext" target="_blank">http://www.vbulletin.com/forum/showt...light=fulltext</a>

hambil 05-23-2006 10:47 AM

Quote:

Originally Posted by Zachery
Sorry its late/early. I'm fairly sure Kier is not going to recompile mysql or add any setting changes to my.cnf when there is more than just vBulletin.org to think about. I'm personally more than well aware of how to make these changes.

Ultimately that is the staffs choice. I only wanted to point out that it can be done fairly easily, and that some common acronyms like PM and ICQ, AIM, MSN, etc... don't work in searchs with the current setup. Which is an issue when searching for hacks related to these words.

BTW the thread you pointed out incorrectly states that three letter words would need to be removed from the stop list and MySQL recompiled if you changed the minimum to 3 letters. Since you don't want those words in the stop list indexed because they are too common, that would be the exact wrong thing to do. There are four letter and even larger words in the stop list, and the default minimum is 4 letters, so why would dropping it to 3 or 2 mean you have to remove 3 and 2 letter words from the stop list?

Xenon 05-23-2006 07:12 PM

Quote:

Originally Posted by hambil
Ultimately that is the staffs choice.

yeah, but server staff. As i clearly pointed out, vb.org staff cannot do changes to the mysql settings ...

the vb.org setting would include 2 letter words like pm, but mysql doesn't in the currentl situation, and i don't have an idea iv you can manually add 'some' 2 letter words to the index, like pm....

hambil 05-23-2006 07:14 PM

Three letter words too, like MSN and ICQ as I pointed out. If we can't do it via MySQL fulltext search, we might want to consider alternate search techniques (in addition to fulltext) for the hack database - such as tags.

Zachery 05-23-2006 07:42 PM

I think I linked to the wrong thread, basicly setting fulltext to only use a 2 or 3 word mininum would cause us to lose any benifity that the fulltext search currently has.


All times are GMT. The time now is 02:03 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01167 seconds
  • Memory Usage 1,758KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete