On Tue, Jan 28, 2014 at 10:27 PM, Shawn Heisey <s...@elyograg.org> wrote: > What would you like to see in an example? I know a fair amount about > SolrJ, and we have access to lots of smart people here, so how about we > discuss what you think is missing? We can come up with something that > will hopefully answer the top N questions a user might have.
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)