arachnode.net
An Open Source C# web crawler with Lucene.NET search using SQL Server 2008/2012/2014/2016/CE An Open Source C# web crawler with Lucene.NET search using MongoDB/RavenDB/Hadoop
Search the Live Index Does arachnode.net scale? | Download the latest release
Adding custom fields to the lucene.net indexes...

1.) Create a new plugin which extends ManageLuceneDotNetIndexes.cs

2.) Update cfg.CrawlActions to reference the new plugin. 

3.) Copy the code from CreateDocument(...) into the CreateDocument(...) function in the new class.  Adding the CreateDocument(...) in the child class allows ManageLuceneDotNetIndexes.cs to perform all common index management functions, while providing our child class the ability to modify the Documents that are added to the index.

4.) Now, add a bit of code to parse/create your new field.

5.) Now, start the Web project.

6.) View the results from a 'body:[something here]' query.

 

 


Posted Thu, Apr 8 2010 4:49 PM by arachnode.net
An Open Source C# web crawler with Lucene.NET search using SQL 2008/2012/CE

copyright 2004-2017, arachnode.net LLC