Solr 3.3 的默认搜索处理程序是什么;为这些查询选择什么处理程序?
我尝试用 Google 搜索,但所有文档(包括 Solr 的)都在 1.3 到 3.3 版本之间撕裂,这对 Solr 新手没有帮助。
我了解到 3.3 的“标准”查询处理器(响应 /select?q=id:* 的查询处理器)与 1.4 的Dismax一样先进。请纠正我这一点。
当我想要实现这些时,请建议去哪里(图论)和使用什么(查询处理程序):
- 当我想向用户建议一个方面时; “Pets in Cochin”将在两个字段中分面
- 为每个字段赋予不同的权重
- 搜索所有字段,但当我想将我的算法与 Solr 的默认值无缝集成时, ;例如 solrs_scoring()*date_scoring() ,其中 date_scoring() 将为 e^-(k*time_from_now) (这似乎在所有提到日期的地方都推荐)。
正如我提到的,我在这里问,因为当文档分散时,谷歌并没有多大帮助。这不是一个“给我代码”的问题。
I tried Googling, but all documentation (including Solr's) are torn between versions 1.3 to 3.3, which is not helpful to a newb to Solr.
I get it that the "standard" query processor (the one that responds to /select?q=id:*) of 3.3 is as advanced as Dismax of 1.4. Please correct me on this.
Please suggest where to go (turorials) and what to use(query handler) when I want to implement these:
- when I want to suggest a facet to the user; "Pets in Cochin" will facet in two fields
- search all fields, but give different weights to each
- when I want to integrate my algorithms seamlessly with Solr's default; such as solrs_scoring()*date_scoring() where date_scoring() would be e^-(k*time_from_now) (this seems recommended everywhere dates are mentioned).
As I mentioned, I ask here as Google doesnt help much when docs are scattered. This is not a "gimme the codez" question.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Solr 文档就是这个 Apache wiki。文档并不分散:全部都在这个 wiki 中。
文档非常好:有介绍、教程、常见问题解答、安装指南、提示/技巧和参考文档。它全部与最新的稳定版本(在撰写本文时为 3.3)保持同步,甚至还记录了一些 4.0 功能。每当某些功能或配置位特定于版本时,您都会看到一个警告图标以及类似“Solr4.0”的内容,以指示该功能所需的最低版本。
现在来回答更多技术问题:默认处理程序使用标准查询处理器,而不是 dismax。它们是不同的东西:并不是一个比另一个更先进。 Solr 相关性常见问题解答涵盖了以下问题:“我应该使用标准查询解析器还是 dismax 查询解析器”
如果如果你仍然感到迷茫,可以考虑买一本关于 Solr 的书。
The Solr documentation is this Apache wiki. Documentation is not scattered: it's all in this wiki.
Documentation is quite good: you have an introduction, tutorial, FAQs, installation guides, tips/tricks and reference documentation. It's all kept up to date with the latest stable release (at the time of writing, 3.3), and it even has some 4.0 features documented. Whenever some feature or config bit is version-specific, you'll see a warning icon along with something like "Solr4.0" to indicate the minimum required version for that feature.
Now to the more technical questions: the default handler uses the standard query processor, not dismax. They're different things: it's not like one is more advanced than the other. The Solr relevancy FAQ covers the question "Should I use the standard or dismax Query Parser"
If you still feel lost, consider getting a book about Solr.