Announcement

Collapse
No announcement yet.

Rebuilding the Sphinx index

Collapse
X
Collapse

  • Rebuilding the Sphinx index

    From time to time, we will need to update the indexing schema for the Sphinx server. In order for this fix to take effect, you will need to update the sphinx schema for the index. Follow these steps to rebuild your Sphinx Search Schema.
    1. Stop the Sphinx service on your server.
    2. Replace your existing Sphinx configuration file (vbulletin-sphinx.php) with the one provided in the current version of vBulletin 5 Connect. You can find this file in the do_not_upload directory.
    3. Update the file as provided in the instructions to create the vBulletin sphinx configuration file found in the sphinx installation instructions for your OS.
      • These files are sphinx_install_unix.txt and sphinx_install_windows.txt
    4. Start the Sphinx service on your server.
    5. Copy searchindex.php to from the do_not_upload directory to the root vBulletin directory on your server.
    6. Run "php searchindex.php" from your server's command line. You will need to run this as a user with sufficient privileges to run Sphinx index commands.
      • You may have to use sudo on a Linux machine in order to have the proper permissions.
    7. Select the correct vBulletin core directory (you can probably use the default) and choose to empty the search index (otherwise, the schema will not be recreated from the config)
    8. When the indexing process is complete delete the searchindex.php file from your server.

    • BarkyJ
      #3
      BarkyJ commented
      Editing a comment

    • FireFish
      #4
      FireFish commented
      Editing a comment
      Hey Wayne,

      How necessary would you say a Sphinx rebuild may be for us smaller forums?

    • Wayne Luke
      #5
      Wayne Luke commented
      Editing a comment
      Are you actually using Sphinx? It requires a third-party daemon to be installed on the server. If you are not using Sphinx then you will never need to rebuild its search index.

      If you are using Sphinx Search, you will need to rebuild it every time we say it is necessary within the release notes. Otherwise searching will not work on your site.
    Posting comments is disabled.

About the Author

Collapse

Wayne Luke A curious juxtaposition of nature, technology and sustainability. Find out more about Wayne Luke

Article Tags

Collapse

advanced (5) affiliate (1) album (1) android (2) api (29) array (17) beginner (17) blog (4) bloginfo (1) calendar (2) cms (2) custom profile fields (1) forum (3) forums (4) groups (1) Intermediate (5) introduction (1) iphone (3) mapi (30) methods (10) mobile (34) style (2) threads (4) vb5howto (5) vBulletin (5)

Latest Articles

Collapse

  • The Basic Anatomy of a vBulletin Page
    Wayne Luke
    vBulletin 5's user output is created using a system of pages that are customizable by the site administrator. This system is called Site Builder. By breaking the system down into pages, a lot of control is given to the system administrator. By using Site Builder, you can create a unique site without any knowledge of HTML or CSS.

    vBulletin's pages are created using layers built upon a grid layout. Each page starts with a layout which defines the content areas of the page. Layouts define...
    Mon 11th Sep '17, 8:55am
  • Enabling Push Notifications in vBulletin 5.3.2 and Mobile Suite 1.16
    Wayne Luke
    vBulletin Mobile Suite 1.16 includes functionality for Push Notifications. One of the requirements to add this functionality is that you must be running vBulletin 5.3.2 Connect on your site and create a project with Google's Firebase Cloud Messaging (FCM) platform. The steps below will walk you through the process of enabling this functionality in vBulletin and in your Mobile Apps.

    Add a project to your Firebase account






    Setup Push Notifications...
    Thu 27th Jul '17, 8:56am
  • Enabling Two-Factor Authentication
    Wayne Luke
    vBulletin 5.3.0 and higher will allow site owners to enable Two-Factor Authentication for Administrator and Moderator functionality. This is an extra layer of security provided to make sure your user data remains as safe as possible. Two-Factor Authentication works in conjunction with an app on the user's smartphone, tablet, or computer. These apps provide a security token that lasts a limited time before expiring. The security token is created using industry standard algorithms and a unique string...
    Tue 4th Apr '17, 8:38am
  • How to moderate the posts of new users only
    Wayne Luke
    To help combat spam, many users opt to have new user’s posts moderated until they’ve made a specific number of posts. This allows the Admin/Moderator team to keep potentially malicious posts out of the public eye until a user has effectively passed a ‘probationary period’ as a member of the site.

    In order to do this, you will need to create a custom usergroup and a promotion.

    Creating a Custom Usergroup
    First, you need to setup the usergroup for your non-Moderated...
    Wed 22nd Feb '17, 9:13am
  • Rebuilding the Sphinx index
    Wayne Luke
    From time to time, we will need to update the indexing schema for the Sphinx server. In order for this fix to take effect, you will need to update the sphinx schema for the index. Follow these steps to rebuild your Sphinx Search Schema.
    1. Stop the Sphinx service on your server.
    2. Replace your existing Sphinx configuration file (vbulletin-sphinx.php) with the one provided in the current version of vBulletin 5 Connect. You can find this file in the do_not_upload directory.
    3. Update the file as provided
    ...
    Fri 3rd Feb '17, 1:01pm
  • Using the Search JSON
    Dominic
    Using the advanced editor you can create powerful search modules. Following you find possible filters / parameters for using within these modules:
    The search JSON parameter has the following format:

    :
    { "filter": <value>, "filter": <value>, ... }
    <value> may be any valid string, number or JSON structure and will be interpreted by the specified filter. Filters not listed below are ignored.

    Filters

    The valid filters...
    Wed 28th Jan '15, 12:51pm
Working...
X