Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 包括一项';Sitecore搜索中的s字段_.net_Lucene_Sitecore_Sitecore6 - Fatal编程技术网

.net 包括一项';Sitecore搜索中的s字段

.net 包括一项';Sitecore搜索中的s字段,.net,lucene,sitecore,sitecore6,.net,Lucene,Sitecore,Sitecore6,我有一个(Lucene)搜索控件,如果项目名称与传入的术语匹配,它可以从Sitecore的主数据库检索项目 但是,我还希望搜索包括项目的字段,这样,如果搜索词在项目的字段中匹配,则返回项目。如何做到这一点 注意:项目及其字段显示在站点内的页面上,但是搜索也不匹配。如果您正在搜索的文本保存在单行文本字段中,则可能需要将以下内容添加到您的web.config文件中的配置\sitecore\index\index\fields下: <type storage="unstored" stripTa

我有一个(Lucene)搜索控件,如果项目名称与传入的术语匹配,它可以从Sitecore的主数据库检索项目

但是,我还希望搜索包括项目的字段,这样,如果搜索词在项目的字段中匹配,则返回项目。如何做到这一点


注意:项目及其字段显示在站点内的页面上,但是搜索也不匹配。

如果您正在搜索的文本保存在单行文本字段中,则可能需要将以下内容添加到您的web.config文件中的
配置\sitecore\index\index\fields
下:

<type storage="unstored" stripTags="true">single-line text</type>
单行文本
您使用的是“新”Lucene方法还是“旧”Lucene方法?Alex Shyba有一个工具可以使使用新的Lucene变得非常简单:不幸的是,我使用的是“旧的”Lucene方法