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 -...
Forward index is what you were asking. here in general. here in solr
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....
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,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...
you can use &debug=true This will give you details like which shard & which replica gave you the result....
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...
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....
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....
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 !...
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...
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...
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,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....
You need to put your zk connection string in quotes.
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.
This operation was released in Solr 4.8.0. What version of Solr are you running?
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....
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.
Have you tried this? https://wiki.apache.org/solr/SolrSecurity Security for inter-solr-node requests configuration point....
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...
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...
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...
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....
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"
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...
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...
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...