Wednesday, October 12, 2011

First Lucene.Net Sample

Created a Lucene console application using the tutorial here.
This is exactly the same application as the tutorial but i had small re-factoring around the code.

The main function shows the main steps involved when we are using Lucene.Net


Here we create the indexes required for the Lucene.Net



Add doc function will add the given column to the indexes.



Here we creates the query to search in the indexed data.


Searches the indexed data using the query created  and displays the search results in the console.


This is only a simple application and need to study, how to use this with database values and drawbacks