Menu
  • HOME
  • TAGS

Existing SOLR collection not picking up Zookeeper schema change

solr,schema,config,zookeeper,solrcloud

I eventually figured this out after spending so much time with SOLR over the past few months. Let's break down the problem that I was seeing. I was uploading a config to zookeeper, creating a collection in solr, and linking the two together. Then I would change the schema -...

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

solr,solrcloud,inverted-index

Forward index is what you were asking. here in general. here in solr

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

java,php,solr,lucene,solrcloud

When you try SolrCloud for the first time using the bin/solr -e cloud, the related configset gets uploaded to zookeeper automatically and is linked with the newly created collection. The below command would start SolrCloud with the default collection name (gettingstarted) and default configset (data_driven_schema_configs) uploaded and linked to it....

solrcloud - choosing cores for update and search requests

solr,solrcloud

For both queries and updates, its better if you route it to all 6 servers. For updates you might think its better to route it to leaders, but SolrCloud dynamically selects the leaders for each shard. So depending on number of requests and other operations, leaders will be switched every...

Solr scalability and clustering with version 3.5

solr,cluster-computing,scalability,autoscaling,solrcloud

For solr scalability, you can use data replication as described in this page. One node will be the master and the others will be slave. Put everybody behind any load balancing software for GET operations. You will have to take care that you do the POST operations directly to the...

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

solr,solrcloud

you can use &debug=true This will give you details like which shard & which replica gave you the result....

How to use upconfig & linkconfig scripts on external zookeeper

solr,zookeeper,solrcloud

We had a lot of problems using solr.home so save yourself some stress and just keep your directories how solr likes them by default. Example: /example/solr/collection1/conf/schema.xml /example/solr/collection1/conf/solrconfig.xml /example/solr/collection1/core.properties /example/start.jar To get your configuration into Zookeeper, get familiar with solr's zkcli.sh script. You want to use this to manage your solr...

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

solr,zookeeper,solrcloud

This tutorial is a lot closer to what you need: http://solr.pl/en/2013/03/11/solrcloud-howto-2/ If you don't want to run a separate Zookeeper, you can run the embedded Zookeeper on one of your Solr instances by passing -Dzkrun on this instance, and -DzkHost on the other instances to point to the first one....

Solr : stemming in a live cluster (reindexing issues)

solr,solr4,solrcloud

Well, there was something stupid which I landed up doing because of which things didn't work. The above steps surely worked for me, except for that when I reloaded the core, I did it using the LB VIP and not each individual machine (!) . Doing that solved my problem....

SolrCloud election leader

solr,solrcloud

config zookeeper(host : xxx.xxx.xxx.1): tickTime=2000 initLimit=10 syncLimit=5 clientPort=2181 server.1=127.0.0.1:2888:3888 Start Solr1 (host : xxx.xxx.xxx.2) java -Dbootstrap_confdir=./solr/collection1/conf -Dcollection.configName=solr1 -Dsolr.allow.unsafe.resourceloading=true -DzkHost=xxx.xxx.xxx.1:2181 -DnumShards=2 -jar start.jar Start Solr2 (host : xxx.xxx.xxx.3) java -Djetty.port=8900 -DzkHost=xxx.xxx.xxx.1:2181 -jar start.jar Close all firewall !...

Solrcloud multicore configuration

solr,lucene,multicore,sharding,solrcloud

In SolrCloud each of your Core will become a Collection. Each Collection will have its own set of Config Files and data. You might find this helpful Moving multi-core SOLR instance to cloud Solr 5.0 (onwards) has made some changes on how to create a SolrCloud setup with shards, and...

How to check SOLR cloud health status or making zookeeper send status

java,solr,zookeeper,solrcloud

CloudSolrServer provides API to retrieve the status of replicas. I have an answer posted here if it helps Solr API for getting shard's leader/replica status...

Solr : existing index

solr,solrcloud

If you want to explore content of the index, you can use Luke which you can download in github : https://github.com/DmitryKey/luke/releases...

Solr Cloud Managed Resources

solr,solrcloud,synonym,stop-words

In SolrCloud configuration and other files like stopwords, are stored and maintained by Zookeeper. Which means you do not need to individually send updates to each server. Once you have SolrCloud, before putting in any data, you will create a collection. Each collection has its own set of resources/config folder....

Solr 5.0: Unable to start Solr with Zookeeper Ensemble

solr,lucene,solrcloud

You need to put your zk connection string in quotes.

edismax with multiple words for keyword tokenizer splitting on space

solr,lucene,solrcloud,solr4j

You need to escape the space in your query (using backslash or quotes around the term) - the query parser doesn't parse based on the analyzer/tokenizer for each field.

SolrCloud Collection API returns Bad Request

solrcloud

This operation was released in Solr 4.8.0. What version of Solr are you running?

Solr cloud distributed search on collections

solr,zookeeper,solrcloud

Thanks for your kind word stewart.You can search it directly on solr as http://localhost:8983/solr/select?collection=collection1,collection2 There is no need to mention any collection path since you are defining them in the collection parameters....

How to get last year's same week data in SOLR

solr,solr4,solrcloud

It's probably easier to calculate the boundaries for your week number last year in the frontend and then query Solr with the date interval. That way you can get the behavior you want regarding sundays/mondays as well.

Basic Authentication for SOLR (1.4) shard queries with SLL

solr,solrj,solrcloud

Have you tried this? https://wiki.apache.org/solr/SolrSecurity Security for inter-solr-node requests configuration point....

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

ant,solr,solr4,solrcloud

According to LUCENE-4288, Solr will only package properly if it's checked out from SVN by default. However, if you change package-src-tgz to package-local-src-tgz, it will properly package. Find the following lines in solr/build.xml: <!-- make a distribution --> <target name="package" depends="package-src-tgz,..."/> And change package-src-tgz to package-local-src-tgz. <!-- make a distribution...

Handle multiple tables of MySQL in with Solr 5.1.0?

java,php,schema,solrcloud,solr5

To import data by using JOIN query in MySQL database and import it Yes, this is achievable in solr using DIH. With the DIH, as you have to configure your data-config.xml. Here you can write the query using the joins which will fetch the data from all the desired...

Solr custom UpdateRequestProcessorFactory fails with “Error Instantiating UpdateRequestProcessorFactory”

java,solr,lucene,config,solrcloud

The issue is a classloader issue. I had added my custom jar into the server/lib/ folder. When I added the Collection, it would instantiate my custom class which needs the UpdateRequestProcessorFactory class but is not available in that classloader. I solved this by rmoving my jar from server/lib/ and adding...

Removing collections/shards/etc in SolrCloud/Zookeeper

solr,zookeeper,solrcloud

SolrCloud Collections API proivdes support for this. Did you look at https://cwiki.apache.org/confluence/display/solr/Collections+API Solrcloud delete collection bug? You can use solrctl tool if you are working with CDH Solr....

DocExpirationUpdateProcessorFactory not deleting records

solr,solr4,solrcloud

This is because I was setting the ttl to be of type date ,it should rather be set to type string and should be set as "+60SECONDS" and not as "NOW+60SECONDS"

SolrCloud: Unable to Create Collection, Locking Issues

solr,zookeeper,solrcloud

Based on the log entry you supplied, it looks like Solr may be creating the data (index) directory for EACH shard in the same folder. Solr index directory '/solrData/Indexes/index' doesn't exist. Creating new index... This message was shown for two different collections and it references the same location. What I...

Adding Zookeeper to existing Solr

solr,lucene,zookeeper,solrcloud

For my setup is SolrCloud the way to go rather than say ReplicationHandler? SolrCloud is the way forward with Solr, so I'd say yes. Is it possible to add solrCloud and ZK support without re-indexing (50hrs is a long time)? If you don't use sharding, only replicas, no need...

Solr 5.0.0 is not starting properly in CentOS

solr,lucene,centos,solrcloud

I tried it ...here it goes...only difference is I tried on Ubantu [email protected]:~/Downloads/solr-5.0.0$ bin/solr start -e cloud Welcome to the SolrCloud example! This interactive session will help you launch a SolrCloud cluster on your local workstation. To begin, how many Solr nodes would you like to run in your local...