|
  
- Thread
- 25
- Credit
- 12
- Money
- 12
- Read Perm.
- 100
- Joined
- 30-12-2009
 
|
Let Lucene.NET Improve Your Catalog, Product, and Image Searches
When you’re dealing with hundreds, thousands, or million of products in a catalog, eCommerce developers need to integrate powerful search capabilities within their eCommerce products.
Enter Lucene, or in this case, Lucene.NET. Lucene is an open source “information retrieval” library meant for Internet search engines and local-site search implementations. Lucene was originally created in Java (yawn), but fortunately, it has been ported to multiple platforms, including .NET C# (Yay). It can search and index text from PDFs, HTML, Microsoft Word documents—basically any file that has extractable text. It can even index images, provided that the image has EXIF metadata embedded in the file. Data from each file can be indexed, giving end-users powerful search criteria. For example, the Lucene.NET library can extract the dates the pictures were taken. An end-user than can use a search control powered by Lucene to find a range of pictures based on the given search criteria. Or they can further refine their search by shutter speed, exposure levels, etc.
As an eCommerce developer knows, a single product within a catalog can have a lot of metadata tagged to a class of products. Wine, for instance, will have metadata fields pertaining to the bottle size, the type of wine, and its distinct characteristics. Using Lucene, .NET developers have a widely available, but powerful tool that can be an incredibly useful component for their commerce applications. And the end-users will appreciate refined searching capabilities.
Dr. Dobb’s Portal has a small tutorial on how to use Lucene.NET to index and search image files. Take a good look at it and let Lucene make product searches useful and more granular.
|
|