Jump to content
PHP論壇人

searchindex.php 清空搜索索引,重建整个搜索索引


Recommended Posts

searchindex.php 清空搜索索引,重建整个搜索索引

 

Note:

You should not normally need to empty the search index, however if items are showing in search results after they have been permanently deleted then emptying the index and rebuilding the search index will fix this.  Search will not work correctly after emptying the index until the index is fully rebuilt.

Click Here to empty the search index. You can rebuild the whole search index by clicking here if it is supported by your choice of search type.

请注意:

你通常不需要清空搜索索引,但是,如果条目在永久删除后仍在搜索结果中显示,则清空索引并重建搜索索引将解决此问题。

清空索引后,直到索引完全重建,搜索将无法正常运行。

点击此处清空搜索索引。如果你的搜索类型支持,你可以点击此处重建整个搜索索引。

 

-----------------------------------------------------------------
将 searchindex.php 上传到论坛的根目录
-----------------------------------------------------------------

将 searchindex.php 上传到论坛的根目录 /www/wwwroot/域名.com/


在vBulletin 6.0 论坛程序.zip 的 do_not_upload 文件夹中,可找到 searchindex.php

 

而searchindex.php中,不用修改

 

 

改为 www www
chown www:www -R /www/wwwroot/域名.com/*


cd /www/wwwroot/域名.com/


查看 searchindex.php 是否改为 www www
ls -l

 

 

开始执行 清空搜索索引,重建整个搜索索引

php searchindex.php


将出现 Please enter the path to your vBulletin core directory (default /www/wwwroot/域名.com/core): 

默认按 Enter

searchindex1.png

 

 

出现消息

Note:
You should not normally need to empty the search index, however if items are showing in search results after they have been permanently deleted then emptying the index and rebuilding the search index will fix this.  Search will not work correctly after emptying the index until the index is fully rebuilt.
Click Here to empty the search index. You can rebuild the whole search index by clicking here if it is supported by your choice of search type.

清空索引 [0/1,默认=0]: 

searchindex2.png

 

 

 


如果你想要清空索引,重建整个搜索索引

按 1

然后按Enter

searchindex3.png

 

 

完成后

请自行删除 searchindex.php

Edited by Jack
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...