Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can someone give me a high overview of how lucene.net works?

I have an MS SQL database and have a varchar field that I would like to do queries like where name like '%searchTerm%'. But right now it is too slow, even with SQL enterprise's full text indexing.

Can someone explain how Lucene .Net might help my situation? How does the indexer work? How do queries work?

What is done for me, and what do I have to do?

like image 333
Brian R. Bondy Avatar asked Sep 30 '08 14:09

Brian R. Bondy


2 Answers

I saw this guy (Michael Neel) present on Lucene at a user group meeting - effectively, you build index files (using Lucene) and they have pointers to whatever you want (database rows, whatever)

http://code.google.com/p/vinull/source/browse/#svn/Examples/LuceneSearch

Very fast, flexible and powerful.

What's good with Lucene is the ability to index a variety of things (files, images, database rows) together in your own index using Lucene and then translating that back to your business domain, whereas with SQL Server, it all has to be in SQL to be indexed.

It doesn't look like his slides are up there in Google code.

like image 90
Cade Roux Avatar answered Oct 19 '22 23:10

Cade Roux


This article (strangely enough it's on the top of the Google search results :) has a fairly good description of how the Lucene search could be optimised.

Properly configured Lucene should easily beat SQL (pre 2005) full-text indexing search. If you on MS SQL 2005 and your search performance is still too slow you might consider checking your DB setup.

like image 43
Ilya Kochetov Avatar answered Oct 19 '22 23:10

Ilya Kochetov