How to set search in the DiscuzX3 Forum

Source: Internet
Author: User
In the process of accumulating and accumulating communities, user discovery is often more professional communities, but they cannot quickly find what they want. community value mining often requires active site recommendations and passive searches, in terms of active push, we provide portals and DIY to facilitate better content display and management. at the same time, we have introduced vertical and horizontal searches, allowing the search to continue accumulating and accumulating in the community, user discovery is often more professional communities, but they cannot quickly find what they want. community value mining often requires active site recommendations and passive searches, in terms of proactive push, we provide portals and DIY to facilitate content display and management. at the same time, we have introduced vertical and horizontal searches to make search more accurate, efficient, and easy to use.

During the search operation process, we found that users do not know what to search and how to search when encountering problems. therefore, recommendation of topics of interest and popular keywords for users becomes a detail that must be paid attention to in daily operations. vertical and horizontal search can further explore and refine Forum information, it is concluded that hotspot keywords are recommended to users in different forms in various situations, so that users can stay on your site for a while. At the same time, the community value is displayed on the search results page in the best and most relevant form!

1. enable search
Enable the search function. you can enable and restrict the search in the background.
Operation path: [background] => [global] => [Search Settings]

As shown in, enable all:


After the search function is enabled, the following information is displayed on the front-end:



You can search in any opened module.

2. popular keyword recommendation
When you encounter a hot question and do not know what to search for, you can click the hot keyword to search, and the relevant results are displayed for recommendation.
You can also add popular keywords directly in the background.


Display on the front-end:


3. Sphinx full-text search settings

Generally, Sphinx is an independent search engine designed to provide other applications with full-text search functions featuring high speed, low space usage, and high result relevance.
1. set the Sphinx host name or Sphinx service socket address
After enabling Sphinx full-text search, enter the Sphinx host name. for example, enter "localhost" for the local host or enter the Sphinx service socket address, which must be an absolute address:
For example,/tmp/sphexample. sock.
2. set the sphsf-host Port
Enter the sphsf-host port, for example, 3312. if the host name is set to the socket address, you do not need to set it here.
3. set the title Index Name
Enter the title primary index name and the title incremental index name in the Sphinx configuration, for example, "threads, threads_mintue ".
Note: Multiple indexes are connected with the English symbol "," and must be filled in according to the index name in the sphsf-configuration file.
4. set the full-text index name
Enter the full-text primary index name and full-text incremental index name in the Sphinx configuration, for example, "posts, posts_mintue ".
5. set the maximum search time
Enter the maximum search time, in milliseconds. The parameter must be a non-negative integer. The default value is 0, meaning no limit.
6. set the maximum number of matched items returned
Enter the maximum number of matched items returned. it must be a non-negative integer. the default value is 10000.
7. set full-text index scoring mode

Three modes are available:
1) SPH_RANK_PROXIMITY_BM25, default mode. Both the phrase score and BM25 score are used and combined.
2) SPH_RANK_BM25: statistical relevance calculation mode. only BM25 is used for scoring (the same as most full-text search engines ). This mode is fast, but may degrade the quality of the query results containing multiple words.
3) SPH_RANK_NONE: disable the scoring mode. this is the fastest mode. In fact, this mode is the same as Boolean search. All matching items are assigned a weight of 1.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.