简体   繁体   中英

How to review index created with lucene.net

I'm in process of using lucene.net to implement auto-suggest and faceted search for a website.

Trying my hands with Analysis/Indexing, After index is created,

  1. Is there any way to retrieve and view paged listing of indexed documents.
  2. Is there a way to retrieve tokens/terms and offset/positions stored for each field in index

You can use the Luke tool, which can open a Lucene index and let you peek at the contents. It's very instructive.

I'm not including a link to the tool here, because it's poorly maintained. You have to download a Luke version matching your Lucene version - and several people released the tool for specific Lucene versions, find the one that's right for you.

(Lucene.NET indexes are compatible with Lucene indexes, and version numbers do match)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM