FAQ Database Discussion Community


SolrCloud election leader

solr,solrcloud
I would like to use SolrCloud (Solr4.10.3 ).. I follow this wiki(Example B: https://wiki.apache.org/solr/SolrCloud#Example_B:_Simple_two_shard_cluster_with_shard_replicas ) SolrCloud uses leaders and an overseer as an implementation detail. This means that some nodes/replicas will play special roles. You don't need to worry if the instance you kill is a leader or the cluster...

How to setup solr cloud with 2 shards 1 leader and 1 replica and with zookeeper on different machines?

solr,zookeeper,solrcloud
I'm still confused on setting up a solr cloud cluster. The one in the tutorial are setup for localhost binded to different ports. But I wanna know how would it be like using different machines. What do I need? Do I need to extract the downloaded Solr to each machine?...

Solr : existing index

solr,solrcloud
I work with solr to index some data. I need to check existing index before start another index. Is there any command to check existing index with solr? Thanks!...

Adding Zookeeper to existing Solr

solr,lucene,zookeeper,solrcloud
I have an existing Solr setup, running on a standalone Solr instance. I have been asked to add resilience and high availability to this setup. So I would like to add replication to my setup, for which I believe SolrCloud is the way to go? I have run through the...

How to build solr.tgz file from source using “ant package”

ant,solr,solr4,solrcloud
I want to build a .tgz distribution file from solr. The build.xml file tells me to use "ant package". However, running ant package gets everything from svn and builds ./package/solr-6.0.0-SNAPSHOT.zip whereas my code base is from lucene_4_10_x branch. How do I build ./package/solr-4.10.3.zip from the source code? I need to...

Solr custom UpdateRequestProcessorFactory fails with “Error Instantiating UpdateRequestProcessorFactory”

java,solr,lucene,config,solrcloud
I have a custom class extending UpdateRequestProcessorFactory doing some work on a document when it gets added to the index. This was working fine in v4.10.3 in standalone Solr. I moved to SolrCloud v5.2 and it throws this error when adding the Collection (node): ERROR - 2015-06-14 12:25:11.071; [ docs_shard1_replica1]...

Handle multiple tables of MySQL in with Solr 5.1.0?

java,php,schema,solrcloud,solr5
I have more than 30 tables in my MySQL database. Recently I have import data from my 1 table to Solr 5.1.0 using DataImporthandler and in my data-config.xml file, fire query of, select * from table-name But in my search I have to integrate more than 10 tables to give...

Cannot Find Proper solrconfig.xml file for configuration in solr 5.1.0

java,php,solr,lucene,solrcloud
I have setup Solr 4.7 before and I had configured solrconfig.xml file in my core for dataimport requestHandler and it was working fine. But when I setup Solr 5.1.0, what is the location of solrconfig.xml file for particular core? Where is it located?...

Existing SOLR collection not picking up Zookeeper schema change

solr,schema,config,zookeeper,solrcloud
I have a local solr cloud cluster running on three separate nodes: 33.33.3[3-5]:8080 This cluster is managed by a local 3 node zookeeper ensemble that lives at: 33.33.3[0-2]:2181 I am trying to experiment with schema modifications - however, I'm having trouble getting SOLR to pickup the new changes. Here is...

Solr 5.0: Unable to start Solr with Zookeeper Ensemble

solr,lucene,solrcloud
I have 3 Zookeeper servers running at server1:2181, server2:2181 and server3:2181. I want to start 4 Solr servers at server1:8983,server2:8983,server3:8983 and server4:8983 to point to Zookeeper Ensemble above. So at server1, I run a command: bin>solr -c -z server1:2181,server2:2181,server3:2181 -m 2g and I received an error message: Missing operand. Invalid...

Basic Authentication for SOLR (1.4) shard queries with SLL

solr,solrj,solrcloud
We have SOLR (4.6) servers with basic authentication. We want to do shard queries over them but we can't find a way to pass the authentication info, via the query or via SOLRJ... We see a few threads on this issue open, but no resolution (e.g. https://issues.apache.org/jira/browse/SOLR-1861)...

How do I include the responding node in a solr query?

solr,solrcloud
On Solr 4.1 with several servers and shards, is there a way to include any of these information into the query response? which machine responded to a query where it gets the data from I'm facing an issue where I think the data is not beind distributed between machines properly,...

solrcloud - choosing cores for update and search requests

solr,solrcloud
I have a SolrCloud with one collection configured with compositeId and numShards=3 and replicationFactor=2. there will be about 200K inserts a day and about as many searches. from the SolrCloud documentation: "If the machine is a replica, the document is forwarded to the leader for processing." Does this means that...

Solr : stemming in a live cluster (reindexing issues)

solr,solr4,solrcloud
I have a live Solr cluster where stemming was not enabled and my schema.xml looks like this: .. <field name="Searchable_Text" type="text_general" indexed="true" stored="true" multiValued="false"/> .. <field name="text" type="text_general" indexed="true" stored="false" multiValued="true"/> .. <copyField source="Searchable_Text" dest="text" maxChars="3000"/> .. <fieldType name="text_general" class="solr.TextField" positionIncrementGap="100"> <analyzer type="index"> <tokenizer...

can solr find all of the terms of a field of a document?

solr,solrcloud,inverted-index
solr uses inverted index to find the document from the indexed "terms". but what I wonder is that - is there any approach to know all of the terms which refer to a specific documents? thanks...

Solr 5.0.0 is not starting properly in CentOS

solr,lucene,centos,solrcloud
When I running command bin/solr start -e cloud it is not asking me to collection name and other information like no of replicas and configuration settings. I got following output Welcome to the SolrCloud example! This interactive session will help you launch a SolrCloud cluster on your local workstation. To...

DocExpirationUpdateProcessorFactory not deleting records

solr,solr4,solrcloud
I am trying to use the DocExpirationUpdateProcessorFactoryfactory in Solr 4.10.1 version. I have included the following in my solrconfig.xml <updateRequestProcessorChain default="true"> <processor class="solr.UUIDUpdateProcessorFactory"> <str name="fieldName">id</str> </processor> <processor class="solr.TimestampUpdateProcessorFactory"> <str name="fieldName">timestamp</str> </processor> <processor class="solr.processor.DocExpirationUpdateProcessorFactory"> <int...

Solrcloud multicore configuration

solr,lucene,multicore,sharding,solrcloud
I have a standalone Solr instance with 4 different cores working fine using the embedded Jetty server. I configured the cores for v4.10.3 but since I moved to v5.1 and all seems to work fine without any changes. Before going into production, I need to set it up as a...

Solr Cloud Managed Resources

solr,solrcloud,synonym,stop-words
I am implementing Solr Cloud for the first time. I've worked with normal Solr and have that down pretty well, but I'm not finding a lot on what you can and can't do with Solr Cloud. So my question is about Managed Resources. I know you can CRUD stop words...