一直想了解分布搜索与索引。Lucene有MultiSearcher,solr1.2的只能有单个索引,现在1.3可以有Distributed Searching这玩意。可以从多个索引里搜索出并合并结果返回给你。这些索引不是replication的,是分割的。可以先%num方式索引在num台机器上,然后用solr的shards参数。
如:
shards=localhost:8080/use-solr1.3,localhost:9080/use-solr1.3&q=chenlb
测试后可以返回结果,但合并的时候发了点时间,我的机子上40-60ms,单个搜索基本是0ms
测试数据是14W结果,分开索引到两个tomcat里。看了后台,一个搜索有两次请求,其中合并的那机子是三次请求。时间可能花在请求里,还有就是合并可能缓存不到。
官方建议:如果单个solr足够快的话没有必要搞Distributed Searching,如果再高点要求可以index repliction。
当索引很大的时候可能Distributed Searching用的上场, 个人之见。
参考:
http://wiki.apache.org/solr/DistributedSearch
分享到:
相关推荐
solr.warsolr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包solr.war包...
solr
solr
ABOUT THE TECHNOLOGY Solr 4 provides new features to enable large-scale distributed search solutions that can be deployed as an elastically scaling cloud-based service and can provide additional ...
solr文档
ABOUT THE TECHNOLOGY Solr 4 provides new features to enable large-scale distributed search solutions that can be deployed as an elastically scaling cloud-based service and can provide additional ...
Employ search features like querying, categorizing, search based on location, and distributed search ☆ 出版信息:☆ [作者信息] Surendra Mohan [出版机构] Packt Publishing [出版日期] 2013年10月15日...
solr manageschema 配置文件,增加了分词器后的配置文件
solr技术文solr技术文solr技术文
Solr定时更新Solr定时更新
已经成熟和测试过的solr搭建和试用,里面包含启动solr
如何使用solr搭建服务器
Solr 依存于Lucene,因为Solr底层的核心技术是使用Lucene 来实现的,Solr和Lucene的本质区别有以下三点:搜索服务器,企业级和管理。Lucene本质上是搜索库,不是独立的应用程序,而Solr是。Lucene专注于搜索底层的...
solr增量更新-
Apache Solr(solr-8.11.1.tgz)Binary releases 二进制版本
solr安装包下载地址
The book starts off by explaining the fundamentals of Solr and then goes on to cover various topics such as data indexing, ways of extending Solr, client APIs and their indexing and data searching ...
Solr(Cloudera)使用手册
Solr笔记,Solr笔记,Solr笔记,Solr笔记,Solr笔记,Solr笔记,Solr笔记,Solr笔记,Solr笔记,Solr笔记,
solr-6.2.0 强大的分布式搜索引擎,包含各种详细例子及源码解析