Re: SOLR/Velocity Test Cases

2013-01-09 Thread Erik Hatcher
And to add a little to this, since it looked ugly below, the $response.response.response.numFound thing is something I'm going to improve to make it leaner and cleaner to get at the actual result set and other response structures. $response is the actual SolrQueryResponse, and navigating that

Re: SOLR/Velocity Test Cases

2013-01-09 Thread Erik Hatcher
Marcos - I just happen to be tinkering with VrW over the last few days (to get some big improvements across the board with it and the /browse UI into Solr 5.0, and maybe eventually 4.x too), so I whipped up such a test case just now. Here's the short and sweet version: public void testVeloci

SOLR/Velocity Test Cases

2013-01-09 Thread Marcos Mendez
Hi, I'm trying to write some tests based on SolrTestCaseJ4 that test using velocity in SOLR. I found VelocityResponseWriterTest.java, but this does not test that. In fact it has a todo to do what I want to do. Anyone have an example out there? I just need to check if velocity is loaded with m