果园-搜索和索引问题 [英] Orchard - Search & Indexing issue

查看:44
本文介绍了果园-搜索和索引问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用Orchard CMS完成的项目.所有功能都通过模块实现.搜索模块也一直在工作到几天前,但是突然间,它没有任何理由"停止了工作.问题是我无法重建/更新索引.当我运行索引时,它将仅索引默认字段列表(id,标题,正文,格式,类型,作者,创建,发布,修改,区域性),但我的自定义字段未编入索引.我尝试了一切,但没有成功.我试过了:-删除所有文件的索引/搜索文件夹-重新安装搜索/索引/Lucene模块-重建和重建索引....-清除解决方案并重建...

I have a project completed with Orchard CMS. The all functionalities are implemented through modules. Search module was also working till a few days ago, but suddenly it is stopped to working, "without any reason". The issue is that I can not rebuild/update indexes. When I run indexing, it will only index default list of fields (id, title, body, format, type, author, created, published, modified, culture) but my custom fields are not indexed. I tried everything but without any success. I tried: - Deleting Indexing/Search folder with all files - Reinstalling Search/Indexing/Lucene modules - Rebuilding and rebuilding indexes.... - Clearing solution and rebuilding...

我没有扩展任何Orchard模块,它们与我下载它们时相同.

对此有什么建议吗??

Any advice on this one...?

P.S.是的,我已经检查了需要索引的自定义字段.:)谢谢,

推荐答案

如果您认为索引已损坏,请删除 App_data \ Sites \ Default \ Search.settings.xml App_data \Sites \ Default \ Indexes ,然后重新启动应用程序池.然后,您应该能够重建索引.

If you think the index is corrupted, delete App_data\Sites\Default\Search.settings.xml and App_data\Sites\Default\Indexes, then restart the app pool. You should then be able to rebuild the index.

显然您已经这样做了,但是对于其他可能没有的人,您还需要检查要在设置/搜索"下建立索引的字段.这将包括搜索中的字段.

Apparently you already did this, but for others who may not have, you also need to check the fields you want indexed under Settings/Search. This will include the fields in search.

但是对于要包含在搜索中的字段,需要首先对其进行索引.为此,您需要转到内容/内容类型"并编辑字段所在的内容类型.选中将该内容类型编入索引以进行搜索".还要为您要建立索引的每个字段部署设置,并选中包括在索引中".

But for the fields to be included in search, they need to be indexed first. For this, you need to go to Content/Content Types and edit the content type the fields are on. Check "index this content type for search". Also deploy the settings for each field you want indexed, and check "include in the index".

这篇关于果园-搜索和索引问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆