The zblog php search function supports the multi word search plug-in MoreSearch

Zblog plug-in two thousand five hundred and seventy-three

The default search function of zblog does not support multi word search, which is not conducive to narrowing the search scope and filtering the search results more accurately. However, this problem can be solved through the zblog plug-in MoreSearch. The MoreSearch plug-in supports the zblog website multi word search and space separated search. For example, to search for content results that include two keywords: "wordpress" and "enterprise theme", you can enter "wordpress enterprise theme" or "wordpress enterprise theme" in the search box, and the search results are the article title The results of these search terms are included in the body or summary, and the search accuracy is higher.

Plug in usage:

The background application center searches for the MoreSearch installation, and then enables it in the background plug-in management.

 The zblog php search function supports the multi word search plug-in MoreSearch

Extension:

If you want more search usage, please refer to the following instructions:

The plug-in can directly realize the multi word search of the website, and can also be used as the multi word search of other data in the table.

Direct your $where The incoming function can automatically complete the modification of the SQL statement without a return value.

Make sure you have added the search array to $where.

For example:

 one
 array ( ..., array ( 'search' , 'log_Title' , 'log_Content' , 'WORD1 WORD2' ) ,... )
There are three search methods:

1. Search "and" or "

For example, search for "WORD1 WORD2" under fields A and B

Then the search result is: A contains "WORD1" and "WORD2" or B contains "WORD1" and "WORD2"

 one
 MoreSearch_AND_OR ( $where )

2. Search for "and"

For example, search for "WORD1 WORD2" under fields A and B

Then the search result is: A contains "WORD1" and "WORD2" and B contains "WORD1" and "WORD2"

 one
 MoreSearch_AND ( $where )

3. Perform OR and OR searches

For example, search for "WORD1 WORD2" under fields A and B

Then the search result is: A contains "WORD1" or "WORD2" or B contains "WORD1" or "WORD2"

 one
 MoreSearch_OR ( $where )

The above description comes from the application center plug-in publishing page: https://app.zblogcn.com/?id=1954

Highlight: