There are always tests that are always current in the junit tests. Admittedly,
they aren't nice, stand-alone tests, but they do the things that you are
referencing. And they're always up to date since the tests are always
running.

Look particularly at SolrExampleTests.java and SolrQueryTest.java.

About EmbeddedSolrServer. Actually, it's perfectly reasonable to use. In
fact the MapReduceIndexerTool uses it to create partial indexes that are
eventually merged. It's usually just that ESS is a poor fit for multi-user
applications. Why re-invent all the stuff that the servlet containers already
do?

FWIW,
Erick

On Tue, Jan 28, 2014 at 10:03 AM, Thibaut Rizzi
<thibaut.ri...@anyware-services.com> wrote:
> Le 28/01/2014 16:45, Alexandre Rafalovitch a écrit
>
> Thanks Shawn,
>
> Here is what I would love to see in a classic example:
> 1) Something that actually runs. Maybe it is EmbeddedServer that's
> messing things up but I can't even figure out what is the minimum set
> of libraries on the classpath. I had to get some from dist directory,
> some from inside unpacked war file's library and some from Jetty
> (servlet jar). An example that actually runs and shows the minimum
> classpath would already be semi-magical.
>
> 2) Something that shows what various parameters in setting up an
> instance are. Something that properly sets the resources up and then
> tears them down. Including things like SolrServer.shutdown()
>
> 3) Something that shows at least one path through adding documents,
> querying them and deleting them. Then, people can explore on their own
> all the other semi-magical methods.
>
> 4) Some sort of consensus on what Wiki should say.
>
> And have that shipped in the core distribution, so people don't have
> to dig and google for ancient dead examples.
>
> Regards,
>    Alex.
> P.s. I guess EmbeddedServer is for the use case where Solr is a part
> of another product. But is anybody actually using that? If not, maybe
> kill it and wait for somebody to submit a better implementation.
>
> Personal website: http://www.outerthoughts.com/
> LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
> - Time is the quality of nature that keeps events from happening all
> at once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD
> book)
>
>
> Hi,
>
> I cannot help since I am very new to Solr and SolrJ but the example you just
> made reminded me the nicely written introduction to Jackrabbit that I read a
> while ago : Jackrabbit - First Hops. I guess a similar introduction to the
> SolrJ API would be widely sufficient for those who are currently discovering
> or experimenting with it.
>
> Regards,
> Thibaut.
>

Reply via email to