Re: Writing unit tests to test complex solr queries

2019-05-16 Thread Pratik Patel
Thanks a lot for the response Mikhail and Angie! I did go through most of the test classes in solr before posting here but couldn't find anything which is close to what I want to do which is to load pre-created index files and configuration or at least index files. However, the class HelloWorldSol

Re: Writing unit tests to test complex solr queries

2019-05-14 Thread Angie Rabelero
Hi, I’ll advised you to extend the class SolrCloudTestCase, which extends the MiniSolrCloudCluster. Theres a hello world example in the solr source at https://github.com/apache/lucene-solr/blob/master/solr/core/src/test/org/apache/solr/HelloWorldSolrCloudTestCase.java. Here’s how I setup a clust

Re: Writing unit tests to test complex solr queries

2019-05-14 Thread Mikhail Khludnev
Hello, Pratick. Welcome to mysterious world of Solr testing. The best way is to find existing test closest to your problem field, copy in and amend necessarily. What about https://github.com/apache/lucene-solr/blob/master/solr/solrj/src/test/org/apache/solr/client/solrj/io/stream/StreamExpressionTe

Writing unit tests to test complex solr queries

2019-05-10 Thread Pratik Patel
Hello Everyone, I want to write unit tests for some solr queries which are being triggered through java code. These queries includes complex streaming expressions and faceting queries which requires large number of documents to be present in solr index. I can not create and push so many documents