You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Darren Erik Vengroff (JIRA)" <ji...@apache.org> on 2006/08/14 02:57:14 UTC
[jira] Updated: (SOLR-20) A simple Java client with Java APIs for
add(), delete(), commit() and optimize().
[ http://issues.apache.org/jira/browse/SOLR-20?page=all ]
Darren Erik Vengroff updated SOLR-20:
-------------------------------------
Attachment: solr-client-sources.jar
Here is the latest version of the client code, in the form of solr-client-source.jar. The big difference here is that there are now two clients, DocumentManagerClient for adding, inserting, and updating, and SearchClient for searching. They share the same underlying communication mechanism, which consists of a low-level mechanism for doing queries and parsing responses by reading from an InputStream (see ResponseParser) and a slightly higher level mechanism that handles some of the XML for you (see XmlResponseParser).
I've been building this as a seperate project with a Maven2 dependency on Solr, but if the source is dropped into the Solr source tree at the appropriate place I suspect it will just compile and work. There are no other outside dependencies.
I have some unit tests as well, but for the moment they are too tied in to my environment to be useful to the broader community. I will correct this and submit them.
> A simple Java client with Java APIs for add(), delete(), commit() and optimize().
> ---------------------------------------------------------------------------------
>
> Key: SOLR-20
> URL: http://issues.apache.org/jira/browse/SOLR-20
> Project: Solr
> Issue Type: New Feature
> Components: update
> Environment: all
> Reporter: Darren Erik Vengroff
> Priority: Minor
> Attachments: DocumentManagerClient.java, DocumentManagerClient.java, solr-client-java-2.zip.zip, solr-client-java.zip, solr-client-sources.jar, SolrClientException.java, SolrServerException.java
>
>
> I wrote a simple little client class that can connect to a Solr server and issue add, delete, commit and optimize commands using Java methods. I'm posting here for review and comments as suggested by Yonik.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira