我已经设置了一个新的Sitecore实例,添加了一些项,并使用search创建了一个多列表,在我迁移到solr之前,一切都很好。
在启用了debug on search之后,我得到了Sitecore正在向solr发送以下查询
((-_group:(d4882314400a467fad6f84bbb58acd03) -_group:(15fbfc2f4af34e0dbdf0a094332127bb)) AND _templatename:(Ship))
问题是查询在solr中没有返回任何内容正确的查询应该是
(-_group:(d4882314400a467fad6f84bbb58acd03)
我们在sitecore实例中遇到了一个问题。当我们在sitecore中执行完全索引重建时,我们注意到一些项目丢失了,并且在整个solr索引中都找不到它们。我们也检查了日志文件,但没有发现错误痕迹。然后我们尝试在web数据库中发布,即从下面的列表中选择web数据库-->发布缺少的项目的父文件夹,这些项目在索引中再次可用。任何建议或帮助都将不胜感激。
预先感谢,Lalit S. Joshi
我使用的是Sitecore 7.5和Solr4.7,我注意到TotalSearchResults属性似乎忽略了项安全性。
我执行了一次搜索,跳到正确的页面,只获取页面所需的数量,TotalSearchResults值为31。然而,Results本身是零(这是正确的)。
在我的Sitecore实现中,搜索有31个匹配项,但它们都受到安全性的限制,匿名用户不应该访问它们。是这样的吗?我觉得我好像错过了什么。
public static SearchResults<myCustomSearchResultItem> SearchContent(string searchTerm, int
我正在为一个基于Sitecore的网站设计一个搜索网站。我已经能够做到这一点了。
var query = SearchContext.GetQueryable<MySearchResultItem>().Where(i =>
i.ItemContent.Contains(this._View.SearchTerm)).ToArray();
MySearchResultsItem的定义如下。
public class MySearchResultItem
{
// Will match the _name
Sitecore 8.0更新6 Solr 5.2.1
使用Sitecore实现Solr搜索,并希望使用rebuildcore选项。我在Solr有两个核心。我用如下所示的补丁文件更新我的Solr索引配置:
<?xml version="1.0" encoding="utf-8"?>
<!-- Purpose: This include file defines the indexes used by the content testing feature of Sitecore when using the SOLR content search