lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Scadden <P.Scad...@gns.cri.nz>
Subject adding documents to a secured solr server.
Date Wed, 01 Nov 2017 22:27:34 GMT
Solrj QueryRequest object has a method to set basic authorization username/password but what
is the equivalent way to pass authorization when you are adding new documents to an index?
       ConcurrentUpdateSolrClient solr = new ConcurrentUpdateSolrClient(solrProperties.getServer(),10,2);
...
             up.addField("id","myid");
             up.addField("title",title);
             up.addField("author",author);
             String content = textHandler.toString();
             up.addField("_text_",content);
             solr.add(up);
             solr.commit();

I cant see where authorization occurs?

Notice: This email and any attachments are confidential and may not be used, published or
redistributed without the prior written consent of the Institute of Geological and Nuclear
Sciences Limited (GNS Science). If received in error please destroy and immediately notify
GNS Science. Do not copy or disclose the contents.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message