vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   A Favour (https://vborg.vbsupport.ru/showthread.php?t=48937)

Dean C 02-15-2003 12:28 PM

A Favour
 
Hi,

Firstly i'd like to ask a few questions which lead to a request. This willl be a vbulletin hack but should only lead to the upload of a file to the forum directory. It will have relevance to anyone here and no importance. Basically it's to help my cousin with some maths coursework he's doing.

Now to the questions:

- What is the purpose of the 'word' table in the vbulletin database?
- Are duplicate words stored in the word table?

Thanks in Advance

- miSt

Dominick 02-15-2003 01:20 PM

bash-2.05a$ grep 'DB' *.* | grep 'word'

search.php: if ($DB_site->num_rows($sqlwords)) {
search.php: while($thisword=$DB_site->fetch_array($sqlwords)) {
search.php: $DB_site->free_result($sqlwords);
search.php: $posts=$DB_site->query("SELECT postid,wordid FROM searchindex WHERE $andor $intitle");
search.php~: $sqlwords=$DB_site->query("SELECT wordid,title FROM word WHERE title LIKE '".addslashes($val)."'");
search.php~: if ($DB_site->num_rows($sqlwords)) {
search.php~: while($thisword=$DB_site->fetch_array($sqlwords)) {
search.php~: $DB_site->free_result($sqlwords);
search.php~: $posts=$DB_site->query("SELECT postid,wordid FROM searchindex WHERE $andor $intitle");
bash-2.05a$

looks to be part of the search engine

Xenon 02-15-2003 01:27 PM

in the word table all words which occurs in posts and are indexed are saved there.

no, no duplicate words are saved.

each word get's a unique id, and whenever a word occurs in a new post which already exists in the word table, nothing will be added. the searchindex instead stores just the wordid's which occur in the posts.

Dean C 02-17-2003 03:41 PM

Ahhh this is perfect for what i need. Now comes the hard part. I'll post it up tonight.

Thanks

- miSt


All times are GMT. The time now is 11:37 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.00930 seconds
  • Memory Usage 1,708KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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