35

I want to learn Solr. May I know some good tutorial/links for it?

Also, is Solr available for .NET?

rae1
  • 6,066
  • 4
  • 27
  • 48
Ed.
  • 1,654
  • 7
  • 20
  • 33

5 Answers5

48

If you mean running the Solr server on .Net instead of Java, then no, there is no port. I've been trying to run it with IKVM here but it's low-priority to me so I can't put much time on it. It'd be great if someone can help out with this.

If you mean using/connecting to Solr from a .Net application, then yes, you can use SolrNet or SolrSharp for that.

I blogged about this not long ago.

UPDATE: I made significant progress with Solr + IKVM.

Brant Bobby
  • 14,956
  • 14
  • 78
  • 115
Mauricio Scheffer
  • 98,863
  • 23
  • 192
  • 275
  • 1
    We use an older version of SolrNet and it is very easy to follow and integrate.. I'd recommend it. – CraftyFella Jan 01 '10 at 17:49
  • there seem to be a C# API for interoperation with Solr.. http://www.codeplex.com/solrsharp – Michael May 31 '10 at 18:59
  • Does either SolrSharp or SolrNet (or both) not use the RESTful interface to Solr, but rather some direct interop? – soandos Aug 07 '13 at 15:21
  • @soandos: Solr's interface is not RESTful. SolrNet only uses HTTP at the moment. There is an open issue to connect to SolrIKVM if you're interested in working on this: https://code.google.com/p/solrnet/issues/detail?id=69 – Mauricio Scheffer Aug 07 '13 at 15:52
  • It appears these client connectors (SolrNet, SolrSharp and MicroSolr) don't work anymore. They aren't updated for the newest version of Solr, so some calls don't work anymore. – Jan_V Apr 08 '14 at 12:57
  • 1
    @Jan_V : That's not correct. I'm the author of SolrNet and I'm still maintaining it. See https://github.com/mausch/SolrNet/blob/master/Documentation/README.md#downloads – Mauricio Scheffer Apr 08 '14 at 13:27
  • Strange, I got an error while doing a `Commit()` and the error log told me the `waitFlush` wasn't supported anymore in the latest version of Solr, which was called in the background. Maybe an error on my side, will check it soonish. – Jan_V Apr 09 '14 at 11:41
  • I see my error now. I used the Nuget Prerelease version of the libraries (`0.4.0-beta2`), thinking it would be kind of up-to-date, but it isn't. Now I've downloaded the `0.4.0.2002.zip` and referenced these assemblies and it works like a charm. – Jan_V Apr 09 '14 at 11:58
1

Jeff Rodenburg created a C# API for interoperation with Solr. The API supports:

Adding, updating and deleting documents from a solr index. Configuration support for multiple solr instances. Flags for Read/Write modes in support of solr replication. Search queries that return strongly-typed objects Support for facets

and more ... http://www.codeplex.com/solrsharp

Mauricio Scheffer
  • 98,863
  • 23
  • 192
  • 275
Michael
  • 6,377
  • 14
  • 59
  • 91
0

Yes it is, there's at least one open source project on GitHub.

https://github.com/mausch/SolrNet

Brant Bobby
  • 14,956
  • 14
  • 78
  • 115
RobV
  • 28,022
  • 11
  • 77
  • 119
0

I would like to introduce my open-source library called LinqToSolr, which provides the functionality of building linq-queries to Solr. Here is a nuget page or browse github project

DolceVita
  • 2,090
  • 1
  • 23
  • 35
0

If you just want to replicate the Lucene.NET database between several machines (in a master-slave disposition), so you can try Lucene Steroids, available at http://bitbucket.org/guibv/lucene.steroids.

This code is based on Solr shell scripts, and uses cwRsync to sync files.

balena
  • 61
  • 2
  • 1
    You get a lot more from using Solr than just replicating. Think of e.g. creating facets. – Dofs Apr 24 '12 at 06:11