何时在Sitecore 7版本中绝对在Lucene上使用SOLR? [英] When to definitely use SOLR over Lucene in a Sitecore 7 build?

查看:121
本文介绍了何时在Sitecore 7版本中绝对在Lucene上使用SOLR?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的客户没有预算来设置和维护要在其生产环境中使用的SOLR服务器.如果我正确理解Sitecore 7内容搜索API,则可以将其配置为使用Lucene没什么大不了的.在大多数情况下,配置将相似,代码将相同,并且以后可以交换SOLR服务器.

My client does not have the budget to setup and maintain a SOLR server to use in their production environment. If I understand the Sitecore 7 Content Search API correctly, it is not a big deal to configure things to use Lucene instead. For the most part the configuration will be similar and the code will be the same, and a SOLR server can be swapped in later.

网站版本具有

  • 多面搜索页面
  • 在登陆页面和其他页面上列出将利用Content Search API的组件
  • 具有自定义方面的存储桶

该网站大约有5,000页,其中不包括媒体库项目.是否有关于仅使用Lucene的担忧?

The site has around 5,000 pages and components not including media library items. Are there any concerns about simply using Lucene?

主要问题是,何时知道在架构或设计阶段中,您绝对应该选择SOLR而不是Lucene?导致您建议这样做的主要迹象是什么?

The main question is, when, during your architecture or design phase do you know that you should definitely choose SOLR over Lucene? What are the major signs that lead you recommend that?

推荐答案

我认为,如果您在预算有限的情况下与客户打交道,那么Lucene将在您所做的工作中表现出色,并且表现出色. Lucene中的实现完全支持您提到的所有内容.

I think if you are dealing with a customer on a limited budget then Lucene will work perfectly well and perform excellently for the scale of things you are doing. All the things you mention are fully supported by the implementation in Lucene.

在Sitecore方案中,如果出现以下情况,我将开始考虑Solr:

In a Sitecore scenario I would begin to consider Solr if:

  • 您需要索引大量的项目-id表示向上5万个-Lucene对这类数字感到满意,但是Solr改进了查询缓存,并针对这些大量的项目而设计.
  • 搜索层的弹性具有最大的业务重要性(即,站点完全由搜索驱动)-Solr通过SolrCloud提供了更强大的复制/分片和故障转移系统.
  • 在其他应用程序中重新使用搜索层很重要(非Sitecore)-Solr是搜索应用程序,因此可以通过HTTP与XML/JSON等进行访问,这使得与外部系统的集成更加容易.
  • 您需要Lucene所没有的Solr的一些特定附加功能.

..但是正如您所说,如果您想在以后的阶段中将Lucene换成Solr,我们已经尽力确保该过程尽可能简单.值得注意的是这里的几点:

.. but as you say if you want swap out Lucene for Solr at a later phase, we have worked hard to make sure that the process as simple as possible. Worth noting a few points here:

  • 尽管您的LINQ查询将保持不变,但您的配置将略有不同,并且需要注意跨接端口.
  • 要了解Solr作为应用程序的工作方式和架构的工作方式,了解这一点很重要,但是那里有很多很棒的书和丰富的知识.
  • Solr(更新的)分析器和评分机制略有不同,因此您的搜索结果可能略有不同(有时客户可能会对此:P感到震惊)

..但我认为这些都是您可以逐步建立并与客户评估的东西.我肯定这里还有更多要点,如果其他人想到了,其他人也可以提出意见.希望这会有所帮助:)

.. but I think these are things you can build up to over time and assess with the customer. Im sure there are more points here and others can chime in if they think of them. Hope this helps :)

这篇关于何时在Sitecore 7版本中绝对在Lucene上使用SOLR?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆