任何人都知道为什么 Sitefinity 的搜索索引,或者更确切地说是搜索结果页面,没有显示找到的页面的描述?它适用于新闻和博客项目,但不适用于页面。
我们已经获得了页面描述的内容(在页面属性中)
我们现在重新索引,确保页面有描述和关键字,重新启动 IIS,删除并重新创建搜索索引,什么都没有发生。搜索时我们仍然只得到页面描述的省略号
问候, 雅克
任何人都知道为什么 Sitefinity 的搜索索引,或者更确切地说是搜索结果页面,没有显示找到的页面的描述?它适用于新闻和博客项目,但不适用于页面。
我们已经获得了页面描述的内容(在页面属性中)
我们现在重新索引,确保页面有描述和关键字,重新启动 IIS,删除并重新创建搜索索引,什么都没有发生。搜索时我们仍然只得到页面描述的省略号
问候, 雅克
您使用的是什么版本的 sitefinity?您是否尝试过修改搜索文件夹中的 fieldsinfoprovider.xml 文件?有关更多详细信息,请参阅本文:http ://www.sitefinity.com/devnet/kb/sitefinity-3-x/how-to-customize-the-indexing-of-html-documents.aspx
<?xml version="1.0" encoding="utf-8"?>
<fields>
<field name="title" weight="1" indexAttribute="" filterTag="title" filterAttributes="" />
<field name="keywords" weight="1" indexAttribute="content" filterTag="meta" filterAttributes="name:keywords;" />
<field name="description" weight="1" indexAttribute="content" filterTag="meta" filterAttributes="name:description;" />
<field name="script" weight="-1" indexAttribute="" filterTag="script" filterAttributes="" />
<field name="style" weight="-1" indexAttribute="" filterTag="style" filterAttributes="" />
</fields>
确保将其设置为索引描述元标记...
希望这会有所帮助!