【发布时间】:2015-03-23 22:35:54
【问题描述】:
我正在使用 Sitecore 搜索数据库中的项目。
我要做的是解析 Lucene 查询并使用标准 Sitecore 搜索返回结果。
我知道我可以使用 QueryParser 来做到这一点,但如果可能的话,我想坚持使用标准的 Sitecore 功能(比如已经存在的索引 sitecore_web_index)。
Sitecore 有这种可能吗?
【问题讨论】:
-
您使用的是哪个版本的 Sitecore?
-
我使用的是 Sitecore 7.2
-
我没有时间回答,但请查看
Sitecore.ContentSearchAPI:sitecore-community.github.io/docs/documentation/Search/… -
我在文档中找不到如何从字符串解析查询并使用 Sitecore 7.2 API 运行,所以我在这里问了一个问题。
-
啊,抱歉,我错过了“将 Lucene 解析为 Sitecore”部分。你能提供你试图解析的例子吗?为什么不能直接使用 Sitecore 查询?
标签: asp.net .net lucene sitecore