lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ramzi Alqrainy <ramzi.alqra...@gmail.com>
Subject Re: Help on Notification for SOLR
Date Mon, 24 Nov 2014 20:55:03 GMT
of course there is another approach which is using Solr Clients. So, you can
use solr clients for specific language like PHP, JAVA, ...

For Example :

JAVA Solr Client :

SolrJ is an API that makes it easy for Java applications to talk to Solr.
SolrJ hides a lot of the details of connecting to Solr and allows your
application to interact with Solr with simple high-level methods.


String urlString = "http://localhost:8983/solr";
SolrServer solr = new HttpSolrServer(urlString);
SolrInputDocument document = new SolrInputDocument();
document.addField("id", "552199");
document.addField("name", "Gouda cheese wheel");
document.addField("price", "49.99");
UpdateResponse response = solr.add(document);
 
// Remember to commit your changes!
 
solr.commit();


If you want another language, you can tell me and I will help you .


   
EXTERNAL Taminidi Ravi (ETI, Automotive-Service-Solutions) wrote
> Hello,  
> 
> I am working on implementing a notification system when there is any
> change in the solr index (Addition or removal of documents from Index).
> 
> Can someone guide me on the starting point. I see some articles using DIH?
> Is there any way using without DIH.
> 
> Thanks
> 
> Ravi





--
View this message in context: http://lucene.472066.n3.nabble.com/Help-on-Notification-for-SOLR-tp4170708p4170716.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message