solrcloud

How to index data in a specific shard using solrj

陌路散爱 提交于 2020-01-23 13:35:13
问题 I am using solrj as client to index documents into solr cloud (Using solr4.5) I had a requirement to save documents based on tenant_id, so i am trying to do document routing . Which is possible only if the collection is created using numShards parameter (http://searchhub.org/2013/06/13/solr-cloud-document-routing/) I have two instances of solr in solr cloud(example1/solr and example2/solr) and exrenal zookeeper which is running in 2181 port. Both the instances consist collection called

How to index data in a specific shard using solrj

六眼飞鱼酱① 提交于 2020-01-23 13:35:13
问题 I am using solrj as client to index documents into solr cloud (Using solr4.5) I had a requirement to save documents based on tenant_id, so i am trying to do document routing . Which is possible only if the collection is created using numShards parameter (http://searchhub.org/2013/06/13/solr-cloud-document-routing/) I have two instances of solr in solr cloud(example1/solr and example2/solr) and exrenal zookeeper which is running in 2181 port. Both the instances consist collection called

How to index data in a specific shard using solrj

泪湿孤枕 提交于 2020-01-23 13:35:06
问题 I am using solrj as client to index documents into solr cloud (Using solr4.5) I had a requirement to save documents based on tenant_id, so i am trying to do document routing . Which is possible only if the collection is created using numShards parameter (http://searchhub.org/2013/06/13/solr-cloud-document-routing/) I have two instances of solr in solr cloud(example1/solr and example2/solr) and exrenal zookeeper which is running in 2181 port. Both the instances consist collection called

Solr cloud error while creating collection no config file found

ⅰ亾dé卋堺 提交于 2020-01-16 01:15:07
问题 I am using external zookeper for testing I am using on local system steps I followed are as bellow. Step 1. created 3 zookeper server with data containing myid file containing unique numbers 1,2,3 respectively. Step 2. I started all three zookeper server useing command ./zkServer.sh start Step 3. check status of each server 2 showing status as leader and remaining 2 as Mode: follower Step4 : try to run solr cloud example as /opt/solr$bin/solr start -e cloud -z localhost:2181,localhost:2182

Solrcloud delete collection bug?

依然范特西╮ 提交于 2020-01-13 19:07:05
问题 First,I create a collection called usercollection : http://xxxxx/solr/admin/collections?action=CREATE&name=usercollection&numShards=3&replicationFactor=3&maxShardsPerNode=3 Then I found something wrong, so I delete it. http://xxxx/solr/admin/collections?action=DELETE&name=usercollection At last ,I want to create the collection again. And I found something wrong. `May 16, 2013 8:32:23 PM org.apache.solr.cloud.OverseerCollectionProcessor run INFO: Overseer Collection Processor: Get the message

Solr result grouping error .Unexpected docvalues type SORTED_SET for field 'vendor' (expected=SORTED)

只谈情不闲聊 提交于 2020-01-05 03:08:23
问题 I have a solr schema like this <fields> <field name="id" type="string" indexed="false" stored="true" required="true" /> <field name="product" type="string" indexed="true" stored="true" required="true" /> <field name="vendor" type="string" indexed="true" stored="true" required="true" /> <field name="language" type="string" indexed="true" stored="true" required="true" /> <field name="TotalInvoices" type="float" indexed="true" stored="true" required="true"/> </fields> I am querying the schema

Apache Zookeeper: distribution of nodes across data centers

核能气质少年 提交于 2020-01-04 03:19:23
问题 I am working on a brand new SolrCloud - ZooKeeper infrastructure. Some background information: all other services (mostly web site infrastructure) are distributed across two data centers , with active-active configurations. at the network level, the servers are setup on extended LANS, with dark fibre across the data centers. So latency is minimum. the SolrCloud - ZooKeeper infrastructure will be used by most of these applications. I got a Solr Cloud, and a ZooKeeper ensemble running.

SolrCloud with SSL and Basic Authentication

喜夏-厌秋 提交于 2020-01-03 17:42:12
问题 Is it possible to configure SolrCloud with SSL and Basic Authentication? I have configured 3 nodes of Solr in SolrCloud with SSL using this: https://cwiki.apache.org/confluence/display/solr/Enabling+SSL and I have added authentication and authorization following this: https://cwiki.apache.org/confluence/display/solr/Basic+Authentication+Plugin, https://cwiki.apache.org/confluence/display/solr/Rule-Based+Authorization+Plugin when only SSL is enabled it works. when only authentication +

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

早过忘川 提交于 2020-01-03 03:21:26
问题 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

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

☆樱花仙子☆ 提交于 2020-01-03 03:21:06
问题 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