Discussion:
SolrJ for .NET / C#
Eirik Hungnes
2016-08-16 13:01:38 UTC
Permalink
Hi

I have been looking around for a library for .NET / C#. We are currently
using SolrNet, but that is ofc not as well equipped as SolrJ, and have
heard rumors occasionally about someone, also Lucene, has been working on a
port to other languages?
--
Best regards,

Eirik
Joe Lawson
2016-08-16 13:08:22 UTC
Permalink
All I have seen is SolrNET, forks of SolrNET and people using RestSharp.
Post by Eirik Hungnes
Hi
I have been looking around for a library for .NET / C#. We are currently
using SolrNet, but that is ofc not as well equipped as SolrJ, and have
heard rumors occasionally about someone, also Lucene, has been working on a
port to other languages?
--
Best regards,
Eirik
--
-Joe
GW
2016-08-16 14:39:02 UTC
Permalink
As long as you are .NET you will be last in line. You try using the REST
API. All you get with a .NET/C# lib is a wrapper for the REST API.
Post by Joe Lawson
All I have seen is SolrNET, forks of SolrNET and people using RestSharp.
Post by Eirik Hungnes
Hi
I have been looking around for a library for .NET / C#. We are currently
using SolrNet, but that is ofc not as well equipped as SolrJ, and have
heard rumors occasionally about someone, also Lucene, has been working
on a
Post by Eirik Hungnes
port to other languages?
--
Best regards,
Eirik
--
-Joe
GW
2016-08-16 14:43:52 UTC
Permalink
The client that comes with PHP is lame. If installed you should un-install
php5-solr and install the Pecl/Pear libs which are good to the end of 5.x
and 6.01. It tanks with 6.1.

I defer to my own effort of changing everything to plain old REST requests.
Post by GW
As long as you are .NET you will be last in line. You try using the REST
API. All you get with a .NET/C# lib is a wrapper for the REST API.
Post by Joe Lawson
All I have seen is SolrNET, forks of SolrNET and people using RestSharp.
Post by Eirik Hungnes
Hi
I have been looking around for a library for .NET / C#. We are currently
using SolrNet, but that is ofc not as well equipped as SolrJ, and have
heard rumors occasionally about someone, also Lucene, has been working
on a
Post by Eirik Hungnes
port to other languages?
--
Best regards,
Eirik
--
-Joe
Joe Lawson
2016-08-16 16:22:19 UTC
Permalink
The sad part of doing plain old REST requests is you basically miss out on
all the SolrCloud features that are inherent in client call optimization
and collection discovery. It would be nice if some companies made /contrib
offerings for different languages that could be better maintained.

Most REST clients are stuck in a pre-SolrCloud world or master/slave
configuration and that paradigm is going away.
Post by GW
The client that comes with PHP is lame. If installed you should un-install
php5-solr and install the Pecl/Pear libs which are good to the end of 5.x
and 6.01. It tanks with 6.1.
I defer to my own effort of changing everything to plain old REST requests.
Post by GW
As long as you are .NET you will be last in line. You try using the REST
API. All you get with a .NET/C# lib is a wrapper for the REST API.
opensourceconnections.com>
Post by GW
Post by Joe Lawson
All I have seen is SolrNET, forks of SolrNET and people using RestSharp.
Post by Eirik Hungnes
Hi
I have been looking around for a library for .NET / C#. We are
currently
Post by GW
Post by Joe Lawson
Post by Eirik Hungnes
using SolrNet, but that is ofc not as well equipped as SolrJ, and have
heard rumors occasionally about someone, also Lucene, has been working
on a
Post by Eirik Hungnes
port to other languages?
--
Best regards,
Eirik
--
-Joe
--
-Joe
GW
2016-08-16 16:24:44 UTC
Permalink
Interesting, I managed to do Solr SQL
Post by Joe Lawson
The sad part of doing plain old REST requests is you basically miss out on
all the SolrCloud features that are inherent in client call optimization
and collection discovery. It would be nice if some companies made /contrib
offerings for different languages that could be better maintained.
Most REST clients are stuck in a pre-SolrCloud world or master/slave
configuration and that paradigm is going away.
Post by GW
The client that comes with PHP is lame. If installed you should
un-install
Post by GW
php5-solr and install the Pecl/Pear libs which are good to the end of 5.x
and 6.01. It tanks with 6.1.
I defer to my own effort of changing everything to plain old REST
requests.
Post by GW
Post by GW
As long as you are .NET you will be last in line. You try using the
REST
Post by GW
Post by GW
API. All you get with a .NET/C# lib is a wrapper for the REST API.
opensourceconnections.com>
Post by GW
Post by Joe Lawson
All I have seen is SolrNET, forks of SolrNET and people using
RestSharp.
Post by GW
Post by GW
Post by Joe Lawson
Post by Eirik Hungnes
Hi
I have been looking around for a library for .NET / C#. We are
currently
Post by GW
Post by Joe Lawson
Post by Eirik Hungnes
using SolrNet, but that is ofc not as well equipped as SolrJ, and
have
Post by GW
Post by GW
Post by Joe Lawson
Post by Eirik Hungnes
heard rumors occasionally about someone, also Lucene, has been
working
Post by GW
Post by GW
Post by Joe Lawson
on a
Post by Eirik Hungnes
port to other languages?
--
Best regards,
Eirik
--
-Joe
--
-Joe
Joe Lawson
2016-08-16 16:38:59 UTC
Permalink
Post by GW
Interesting, I managed to do Solr SQL
It is true that pretty much all operations still work by calling a
collection API directly. The benefits I'm referring to are dynamic cluster
state discovery, routing of requests automatically based on the state,
proper POST and query operations that interact without depending on
inter-cluster routing. Basically removing/abstracting away operational
concerns from the application itself.

Shawn Heisey
2016-08-16 14:36:06 UTC
Permalink
Post by Eirik Hungnes
I have been looking around for a library for .NET / C#. We are
currently using SolrNet, but that is ofc not as well equipped as
SolrJ, and have heard rumors occasionally about someone, also Lucene,
has been working on a port to other languages?
The only client that the Solr project maintains is SolrJ -- the Java
client. This client is an integral part of Solr itself, so it is kept
up to date. Naturally this is the client that we recommend, but
sometimes the choice of development language does not include Java.

Clients for any other programming language are third-party software. We
have no control over that software, and changes in new versions of Solr
will occasionally break those clients. For instance, one of the main
Solr clients for PHP was broken by a change in Solr 4.0, and it took the
maintainers of that client a LONG time to fix the problem.

I have mentioned the possibility of having the project build/maintain
clients for other languages, or perhaps have some of them absorbed into
the project (if the license is compatible) but nobody has volunteered to
take on the task. I don't have much experience with those programming
languages.

You can find information about third-party clients here:

https://wiki.apache.org/solr/IntegratingSolr

There are some .NET clients there. The most recent of them was last
updated a year ago.

Thanks,
Shawn
Loading...