View Single Post
  #3  
Old 12-04-2016, 09:31 PM
mgoetze mgoetze is offline
 
Join Date: Jan 2016
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update
Ok I am 95% there with the help of Paul's note - thank you Paul. I was trying to follow the standard Sphinx install instructions AND the vbulletin specific instructions. The standard Sphinx instructions ask you to create a sphinx.conf file with database info and then run indexer --all. Basically you don't do any of that when using vbulletin. You simply install sphinx, make sure it is running, setup your vbulletin-sphinx.php file, run searchd --config /path to vbulletin-sphinx.php. (if gives an error about vbulletin_disk missing but the instructions say to ignore that)

NOW the next question is what is the proper way to index?? Here is what I found so far (the name of my database is "vbdb")
1. If I run the following command:
indexer -c /usr/local/sphinx/etc/vbulletin_sphinx.php --rotate --all
The indexer creates a bunch of vbdb_disk files in the /usr/local/sphinx/data/ directory, however, when you go to the forum and try to search there are no results.

2. If I go to Admin CP > Maintenance > General Update Tools > Rebuild Search Index, it creates a large binlog.001 file within the /usr/local/sphinx/data/ directory, AND searching on the forum does produce results.

It would appear #2 is the correct solution, however, when you start Sphinx it is clearly looking for the vbdb_disk index files, so I think somehow method #1 is correct. I even looked at our old server with a working VB5 install and sphinx and it had a binlog.001 file of only a few bytes and all the vbdb_disk files are much larger; and the search on that forum worked without issue. I'm sort of stuck at the moment and would appreciate any guidance from my fellow VB members.

Once I figure out the index issue, I also need to figure out how to keep the index up to date. Are we supposed to setup a cron job within crontab or within VB Admin CP. This doesnt appear to be covered in the document.

Thanks again,
Mark
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01269 seconds
  • Memory Usage 1,765KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (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_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete