Open misino opened 5 years ago
I'm not sure about this is really need.
There are 2 parts which are solved in this PR.
Current solution expects that URL to solr core is in certain shape <protocol>://<host>[<:port>]/[<rootPath>]/<core>
. But what if somebody want to use solr core which is hidden behind proxy (for example on url http://example.com) ?
Presented solution removes this constraint and gives more flexibility in shape of the endpoint.
Solution in this PR improves a performance a little bit. It is not significant, but at least something. The URL is created only once - in the constructor. Previously it was created on each request.
Single configuration option for solr endpoint will make integration with other projects easier.