I'm wondering if there are any recommendations, best practises or top-tips for integrating a Lucene.NET based search into an ASP.NET MVC web application?
Things I've read (or think I've read) in various places include the following:
IndexWriter
, many IndexReader
sIndexReader
sAre there any other useful tips or resources I should read before starting?
Thanks,
Kieron
While it is about the Java version, Lucene.NET is an almost exact port to C#, so it is easy to use the concepts in you code. Just a warning, Lucene.NET 4.8 is .NET Standard 2.0 and can be easily used in a .NET Core application, but the API is different from the 3.0.3 version, which is not .NET Standard, only .NET Framework 4.6.
Lucene.net is a .net port of Lucene, an open source full text search engine written in java. Lucene.net when incorporated into .Net applications provides full text search functionality. And also, Lucene.Net can be used to index entity framework objects to facilitate easy searching, thanks to LINQ to Lucene project.
Use different ASP.NET frameworks like MVC and Web API in the same project Take advantage of the ASP.NET Scaffolding framework to automatically create Controllers and Views to perform CRUD operations based on your model classes Expose the same set of information in machine- and human-readable formats using the right tool for each job
ASP.NET Core apps are lightweight and modular, with built-in support for dependency injection, enabling greater testability and maintainability. Combined with MVC, which supports building modern web APIs in addition to view-based apps, ASP.NET Core is a powerful framework with which to build enterprise web applications.
Here are my tips (in no particular order):
A few gotchas from one of my previous projects were:
I would suggest looking at the source code for RavenDb as it is built on top of Lucene and uses a number of best practices.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With