Sitefinity搜索结果 - 无页面描述

时间:2010-11-01 12:18:51

标签: sitefinity

任何人都知道为什么Sitefinity的搜索索引,或者说搜索结果页面没有显示找到的页面的描述?它适用于新闻和博客项目,但不适用于页面。

我们已经获得了页面描述的内容(在页面属性中)

我们现在已重新编制索引,确保页面包含说明和关键字,重新启动IIS,删除并重新创建搜索索引,一切都没有发生。我们在搜索时仍然只能获得页面描述的省略号

此致 雅克

1 个答案:

答案 0 :(得分:0)

您使用的是什么版本的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>

确保将其设置为索引描述元标记...

希望这有用!

相关问题