Hello,

I am writing a mini-client app and realized that I can't find a
canonical example of how to write a SolrJ-based client. Given that it
is the recommended API, I thought we had one in the distribution. But
I can't seem to find it.

I also checked
- https://cwiki.apache.org/confluence/display/solr/Using+SolrJ - this
has a couple of partial examples but talks about SolrJ 3.x.x and 4.x.x
in the same breadth. So, not clear how up to date and is not a
complete example anyway
- https://wiki.apache.org/solr/Solrj - This talks about Solr 1.4
- http://wiki.apache.org/solr/Solrj1.3 - This talks about Solr 1.3
(reasonable enough)
- https://wiki.apache.org/solr/SolJava - This actually has an example
for Solr 1.3, but it seems rather date. Funny enough this is the page
one will reach if going to the Solr client page
- JavaDocs - don't seem to have any examples in the code either. In
fact, seems to be something funny with the packages because
...solrj.embedded package is in the core JavaDoc, separate from the
rest of SolrJ javadoc.
- My own example does not seem to match API either, at least for
embedded example (
https://github.com/arafalov/solr-indexing-book/blob/master/published/solrj/ClientSolrj.java
)

What am I missing? Should I be looking at test classes:
https://github.com/apache/lucene-solr/tree/trunk/solr/solrj/src/test/org/apache/solr/client/solrj
? They seem to be a little specialized to be reversing engineering
basic examples from.

I am not trying to make a fuss, just understand what the baseline
situation is. And maybe get a couple of good pointers from people in
the know.

Regards,
   Alex.

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)

Reply via email to