I solved the PUT issue using a post ( with adding of more than one field) :
ContentStreamUpdateRequest contentStreamUpdateRequest =
> new ContentStreamUpdateRequest(
> SCHEMA_SOLR_FIELDS_ENDPOINT);
> SolrServer solrServer = this.getCore( core );
>
mmm wondering how to pass the payload for the PUT using that structure with
SolrQuery...
2014-07-09 15:42 GMT+01:00 Alessandro Benedetti
:
> Thank's Elaine !
> Worked for the GET Method !
> I will test soon with the PUT method :)
>
> One strange thing is that is working with a real Solr Instanc
Thank's Elaine !
Worked for the GET Method !
I will test soon with the PUT method :)
One strange thing is that is working with a real Solr Instance but not with
an Embedded SolrServer ...
probably it's matter of dependencies, I let you know...
Many thanks
Cheers
2014-07-08 21:59 GMT+01:00 Cari
Alessandro,
I just got this to work myself:
public static final String DEFINED_FIELDS_API = "/schema/fields";
public static final String DYNAMIC_FIELDS_API = "/schema/dynamicfields";
...
// just get a connection to Solr as usual (the factory is mine - it
will use CloudSol