Re: Loading pre created index files into MiniSolrCloudCluster of test framework

2019-06-10 Thread Pratik Patel
So, I found a way to programmatically restore a collection from a backup. I though that I could create a backup of a collection, put it on the classpath, restore it during unit test set up and run the queries against newly created collection using restore. Theoretically, it sounded like it would

Re: Loading pre created index files into MiniSolrCloudCluster of test framework

2019-06-06 Thread Pratik Patel
Thanks for the reply Alexandre, only special thing about JSON/XML is that in order to export the data in that form, I need to have "docValues" enabled for all the fields which are to be retrieved. I need to retrieve all the fields and I can not enable docValues on all fields. If there was a way to

Re: Loading pre created index files into MiniSolrCloudCluster of test framework

2019-06-05 Thread Alexandre Rafalovitch
Is there something special about parent/child blocks you cannot do through JSON? Or XML? Both Solr XML and Solr JSON support it. New style parent/child mapping is also supported in latest Solr but I think it is done differently. Regards, Alex On Wed, Jun 5, 2019, 6:29 PM Pratik Patel,

Loading pre created index files into MiniSolrCloudCluster of test framework

2019-06-05 Thread Pratik Patel
Hello Everyone, I am trying to write some unit tests for solr queries which requires some data in specific state. There is a way to load this data through json files but the problem is that the required data needs to have parent-child blocks to be present. Because of this, I would prefer if there