Thanks!

and how would you do it calling it from another web application, let's say from a servlet or so? I need to do some stuff in my web java code, then call the Solr service and do some more stuff afterwards


Quoting Bertrand Delacretaz <[EMAIL PROTECTED]>:

On 1/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

...Could someone give me some code examples on how Solr requests can be
called by Java code...

Although our Java client landscape is still a bit fuzzy (there are
several variants floating around), you might want to look at the code
found in http://issues.apache.org/jira/browse/SOLR-20

If you're new to Java, I'd recommend playing with HttpClient first
(http://jakarta.apache.org/commons/httpclient/), see the tutorial
there for the basics.

The standard Java library classes are also usable to write HTTP
clients, but HttpClient will help a lot in getting the "details"
right, if you don't mind depending on that library.

-Bertrand



Reply via email to