I can create / restore Solr backups from Solr via CollectionAdminRequest.Backup and CollectionAdminRequest.Restore.
Looks like it's possible via http api, e.g.:
http://localhost:8983/solr/gettingstarted/replication?command=details&wt=xml
But is it possible to list all backups and drop one by name from SolrJ?
I'm using Solr 7.5.
From what I found, it's not possible to do it from SolrJ directly.
So I've ended up working with HDFS directly. I've configured Solr to use HDFS as backup storage. And from my code I'm accessing it via HDFS client - I can list and remove backups from it.
Related
Is there any way to replicate replicate file index data which is aws cloudsearch to apache solr hosted on ec2 real time.
Not really- in order to make sure that all of your original documents are indexed correctly you have to reindex them into Solr in their original form.
My current application has a Solr engine for storing large amounts of data, however I would like to have some of this data copied over to a PostGres database.
Ideally this "replication" should have a delta comparation mechanism for not missing any data coming from Solr.
I can see lots of examples for importing the data from a database into Solr (DataImportHanlder) but not the other way around, I cannot find any DataExportHandler in the Solr Documentation.
Any suggestions?
Thanks
In a current application, we retain all requests in a SQL Server database table. Since we will be moving to ElasticSearch, can I simply just serialize the data entry (creating the JSON object representation) and throwing that into an ElasticSearch type to be used for a Kibana dashboard?
You do not need to use Logstash to ingest the data into Elasticsearch. Logstash
is simply a tool used to read data from a location, transform it, and then write
it to an output.
You can always write something yourself, or use a different tool to get the data
from your SQL database into Elasticsearch. Once in Elasticsearch, Assuming it is
inserted in a proper manner, Kibana will be able to read it.
I am new user to solr,I want to access and search the MYSQL database tables in java applications via solr.i am able to index my table in solr admin interface. Can anyone tell me how to connect and access MYSQL tables in java application so that i can search data fastly ? I was not able to understand tutorials whatever i found.
Solr provides client libraries in java, ruby and other languagues to help you connect to Solr and query it.
Check for the Java library Solrj to connect and query Solr.
If you are using Frameworks with your projects you might want to check for Spring data as well which will help you seamlessly query and transform Solr response.
So you will need to set up an instance of a Solr Server, SOlr will store and indexes from your database using the DataImportHandler.
http://amac4.blogspot.co.uk/2013/08/configuring-solr-4-data-import-handler.html
Solr creates indexes using Lucene, so you have two options, you can use classes from the Lucene jar file or SolrJ to search your indexes.
OR
You can query Solr by sending http requests. I set-up a Java Web Service so you can snatch some of my code if you need to.
http://amac4.blogspot.co.uk/2013/07/restful-java-web-service-for-solr.html
How can I migrate SOLR files (indexed) from one server to another?
Just copy your data directory under the path, where you configured your solr-Home wherever you want. See this, because it is a Lucene index. Or you can use the solr backup tool.