Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show contents of Lucene index

Tags:

lucene

luke

I am trying to debug indexing documents in Lucene, and I need to see the contents of the index so I can see exactly how the documents got indexed. Allegedly Luke does this, but there is no documentation for it whatsoever, and when I point it at the index directory (at any of them, although I don't know why it can't figure out which one is right on its own), I get nothing. Surely there is some simple way to do this?

like image 227
cbmanica Avatar asked Jan 05 '13 00:01

cbmanica


People also ask

Where are Lucene indexes stored?

When using the default Sitefinity CMS search service (Lucene), the search index definition (configurations which content to be indexed) is stored in your website database, and the actual search index files – on the file system. By default, the search index files are in the ~/App_Data/Sitefinity/Search/ folder.

What is in a Lucene index?

In Lucene, a Document is the unit of search and index. An index consists of one or more Documents. Indexing involves adding Documents to an IndexWriter, and searching involves retrieving Documents from an index via an IndexSearcher.

How do you search in Lucene?

Lucene supports fielded data. When performing a search you can either specify a field, or use the default field. The field names and default field is implementation specific. You can search any field by typing the field name followed by a colon ":" and then the term you are looking for.


1 Answers

Luke IS the simple way to do it. You run it, browse to the index, and are off to the races. Couldn't be easier. This blog post steps through using some Luke features, perhaps it will help you get going with it.

There are other tools out there, like LIMO is also a nice tool for this, but it is harder to get started than Luke.

Perhaps if you give some details on the problem you are running into with Luke, you will be able to get some help with that.

like image 157
femtoRgon Avatar answered Sep 19 '22 07:09

femtoRgon