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.

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

    • Zambfd
      #6
      Zambfd commented
      Editing a comment
      Hi,

      the search via sphinx does not consider a user account search, right? Why?

      Also there is a problem with your default index file, if the forum has 40+ million entries in the closure table. You have to change the attribute entry for closure to this:

      sql_attr_multi = uint closure from ranged-query; \
      SELECT child, parent FROM closure WHERE child >= $start AND child <= $end; \
      SELECT MIN(child), MAX(child) FROM closure

      Or the indexer runs into a query timeout, regardless of the mysql/mariadb timeout settings.

    • Wayne Luke
      #7
      Wayne Luke commented
      Editing a comment
      None of vBulletin's search mechanisms consider a user to be content or searchable at this time.

      For the query timeout, you should report a bug in the Bug Tracker linked in the header.
    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

administration (1) beginner (3) calendar (1) cloud (1) Custom (1) database (2) Google (1) how-to (2) howto (1) how to (1) https (1) Intermediate (4) MYSQL (2) performance (2) recovery tools (1) security (2) seo (1) server information (1) sftp (1) ssl (1) style (1) tls (1) tutorial (4) vb5howto (5) vbcloud (1)

Latest Articles

Collapse

  • Changing your site's favicon
    by Wayne Luke
    The favicon allows you to extend your brand identity to the browser tab. This can often be the only thing a user sees if they have many tabs open. The favicon is a special 16 X 16 icon that the browser automatically looks for in the root directory of your site. vBulletin also ships with one in its root directory. If vBulletin is installed in the root directory of your site, you can overwrite the provided icon to change it for your users. However, you will need to remember to do this with every version...
    Tue 21 Nov '23, 10:39am
  • About .htaccess
    by Wayne Luke
    .htaccess is a configuration file for the Apache Web Server. It allows you to customize how your server works. Depending on how your hosting provider has the server configured, you can redirect people to different locations, secure directories and files, tell browsers how long to cache files, update PHP variables, and more. vBulletin comes with a pretty extensive .htaccess file that does a these things for you. Location vBulletin comes with a file named htaccess.txt in the original download. When ...
    Mon 11 Sep '23, 11:57am
  • Answered Topics
    by Mark.B
    In vBulletin 5.6.5, we added a new feature - Answered Topics.

    Topics can now be marked as "Answered." This is a special status applied to a specific post within the topic. The post that is marked as the Answer will be highlighted and show directly under the starting post in the topic.

    The ability to mark posts as the Answer in a topic is controlled by permissions. There are three different permissions to control this.
    Usergroup and Channel Permissions both...
    Sun 8 Jan '23, 11:43am
  • Custom Node Fields
    by Mark.B


    In 5.7.2, we have added a new feature - Custom Node fields.

    This new feature allows Administrators to define text and text area fields that are assigned to channels (eg forums).
    When a user creates a new topic, defined custom node fields will be available.
    1. The Administrator will create Field Categories in the AdminCP. Each category is assigned to one or more channels.
    2. Within each category, the Administrator can create one or more fields that will get assigned
    ...
    Thu 29 Dec '22, 2:19am
  • Using User Ranks
    by Wayne Luke

    User ranks allow the administrator to set up image and HTML rewards for their users once they reach specific goals. In versions before vBulletin Connect 5.7.1, ranks could only be triggered by the number of posts and the usergroups assigned to the user. In vBulletin Connect 5.7.1, User Ranks have been expanded to allow more flexibility in creating individual ranks. Now you can build combinations of different criteria to create unique ranks for your site.

    ​ Ranks can be created using th...
    Tue 25 Oct '22, 12:04pm
  • Excluding Custom Files from Suspect File Diagnostic
    by Wayne Luke
    If you have custom files, you can create an md5 sums for your smilie directory if you want. Inside the /do_not_upload folder of your download package is a checksum sub-folder. That will create custom md5_sums files.
    1. Copy the included sample_checksum_config.php file to smilies_config.php.
    2. Enter in your forum root.
    3. Give it a product id like 'smilies'.
    4. Delete the existing directories and files in the scanpaths.
    5. Add in '/core/images/smilies', under the directories comment.
    6. Run the command
    ...
    Mon 24 Aug '20, 8:48am
Working...