solrcloud

Need help to decide between the type of spellchecker to use in solr?

久未见 提交于 2019-12-07 07:45:30
I have a list of cities on mysql db which is hooked onto a UI for autocompletion purposes. I am currently using solr-5.3.0. Data import is happening through scheduled delta imports. I have the following questions: I want to implement spell checker to this feature. I tried using: DirectSolrSpellChecker IndexBasedSpellChecker FileBasedSpellChecker Out of these 3 only FileBasedSpellChecker is able to give suggestions that solely exists on db. For eg, while searching cologne I've got results like { "responseHeader":{ "status":0, "QTime":4, "params":{ "q":"searchfield:kolakata", "indent":"true",

Solrcloud Zookeper Setup : No registered leader was found after waiting for 4000ms , collection: c1 slice: shard2

梦想与她 提交于 2019-12-07 06:45:02
问题 Am using solr 4.10.3, I start solr via embedded jetty server in java. Am trying to configure solrcloud with 2 shards(Leaders). I have an external zookeeper setup, I point to zookeeper instance while starting solr like this. System.setProperty("zkHost", "192.168.2.21:2111"); System.setProperty("numShards", "2"); System.setProperty("collection.configName", "configuration1"); System.setProperty("bootstrap_confdir","/conf/zooconf"); I have two solr instances running, one in 8983 port & other in

Roles of zookeeper in solr cloud

大兔子大兔子 提交于 2019-12-07 03:11:19
问题 I am new to SolrCloud(4.X), Can anybody explain in detail about roles and responsibility of zookeeper in SolrCloud? Also how does zookeper work in regards to search/add request to Solr? 回答1: Zookeepers are a central repository for SolrCloud configuration. You can consider it as a distributed filesystem which can be accessed by all Solr nodes in the cluster. So if you change any config file you just need to inform or upload it to Zookeeper and not on every node in the cluster. One more

solr5.2.1+tomcat8.0.23+zookeeper3.4.6

二次信任 提交于 2019-12-06 16:48:56
提示: 1.本文中用到的solr,tomcat,zk都是相对于此博客最新的版本,solr的每个大版本的变更都无法完美的向前兼容,所以这次的solr5和solr4也是一样。 2.本次是在一台机器上部署3个zk,4个tomcat,所以端口会有相应的改变(俗称伪集群) 首先下载相应的包 zookeeper-3.5.0-alpha.tar.gz, apache-tomcat-8.0.23.tar.gz, solr-5.2.1.tgz 创建目录结构,我是按照如下的目录结构组织,大家可以按照自己的喜好 1.建立solrcloud文件夹 chensideMacBook-Pro:solrcloud chaney$ pwd /Users/chaney/solrcloud 2. solrcloud 下面目录结构为 chensideMacBook-Pro:solrcloud chaney$ ls service1 service2 service3 tomcat1 tomcat2 tomcat3 tomcat4 3.service中是zk的目录,三个目录结构一样,目录结构为 chensideMacBook-Pro:service1 chaney$ ls data datalog logs zookeeper-3.5.0-alpha zk的相应操作 1.进入zk的conf目录 /Users/chaney

Solr server HttpParse error

℡╲_俬逩灬. 提交于 2019-12-06 14:20:47
Hi when i am sending a query to solr server using http client , solr server prints exception log saying HttpParser full. I am running solrcloud 4.0 in jetty server. Is this a problem with jetty ? What could be the reason for this and how can i resolve it ? 来源: https://stackoverflow.com/questions/15973884/solr-server-httpparse-error

Solr: Using the Block Join Children Query Parser

夙愿已清 提交于 2019-12-06 13:46:30
Currently I evaluate the Block Join Children Query Parser as described here . Therefore I have created the following collection: curl "http://localhost:8983/solr/admin/collections?action=CREATE&name=nestedPerson&numShards=6"` Then I have inserted these two documents: curl http://localhost:8983/solr/nestedPerson/update?commitWithin=3000 -d '<add> <doc> <field name="id">p1</field> <field name="deceased">false</field> <doc> <field name="id">c1</field> <field name="firstName">Bob</field> </doc> </doc> <doc> <field name="id">p2</field> <field name="deceased">true</field> <doc> <field name="id">c2<

How to Split solr shard in solr cloud

北战南征 提交于 2019-12-06 10:08:52
问题 I am using solr 4.10.3 in solrCloud mode. I have one shard and 3 replica. external zookeeper ensemble in being used. My document in one index has been increase too much. Now I want to create more shards. I tries to use http://localhost:8983/solr/admin/collections?action=SPLITSHARD&collection=collection1&shard=shard1 But it gives following error Error executing split operation for collection: collection1 parent shard: shard1 java.lang.NullPointerException at org.apache.solr.cloud

Understanding the different type of SOLR commits

五迷三道 提交于 2019-12-06 08:01:06
问题 I want to clarify my understanding about different type of Solr commits. Please correct me if I am wrong. commits : all type of commits including SOFT and HARD commits. autoCommit : does a HARD commit to the disk and make sure all the autoSoftCommit commits are written to disk and commits any other pending documents. autoSoftCommit - does a SOFT commit . After a autoSoftCommit, if the the SOLR server goes down, the autoSoftCommit documents will be lost. autocommit maxTime : Maximum time

SolrCloud搭建过程

别等时光非礼了梦想. 提交于 2019-12-05 19:37:44
1.先搭建单机版 1.1前提是安装好jdk并配置环境变量 1.2 tomcat路径是/usr/local/solr/tomcat,tomcat环境配置在tomcat/bin/startup.sh中进行配置,在最上面添加: export CATALINA_HOME=/usr/local/solr/tomcat export CATALINA_ BASE =/usr/local/solr/tomcat 1.3解压上传的solr tar zxvf solr-4.10.3.tgz.tgz 1.4将解压后solr-4.10.3/dist文件夹下的solr-4.10.3.war复制到tomcat/webapps,并修改名称为solr.war. cp -r solr-4.10.3.war usr/local/solr/tomcat/webapps/solr.war 1.5运行tomcat,然后关闭,删除solr.war 1.6把/tmp/solr-4.10.4/example/lib/ext 目录下所有的jar包复制到solr工程中。 # cp * /usr/local/solr/tomcat/webapps/solr/WEB-INF/lib/ 1.7把solr-4.10.3/example/solr复制到/usr/local/solr/solrhome中 # cp -r solr /usr

SolrCloud ZooKeeper Configuration updates

允我心安 提交于 2019-12-05 17:09:04
问题 How do I update an existing configuration file of SolrCloud in the Zoo Keeper? I am using Solr4 Beta version with ZooKeeper 3.3.6. I have updated a configuration file, and restarted the Solr Instance which uploads the configuration file to the ZooKeeper. But when I check the configuration file from the SolrCloud Admin console, I don't see the updates. I am not able to understand if this is an issue with SolrCloud admin console or if I am not successful in uploading the config file to