Luca Matteis
Luca Matteis

Reputation: 29267

Querying a Lucene index file

I'm trying to query a Lucene index file through QueryParser. However I would like to see the format of the index file before querying it. Is there a way to lookup the structure of a Lucene index file, sort of like how I'm able to lookup the structure of a regular SQL table?

The reason is that I haven't built this index file myself and would like to get my way around it before querying it.

Upvotes: 1

Views: 1206

Answers (2)

Eugene Kuleshov
Eugene Kuleshov

Reputation: 31795

You can use Luke, or programmatically IndexReader.getFieldNames().

Upvotes: 3

Pascal Dimassimo
Pascal Dimassimo

Reputation: 6928

Luke - Lucene Index Toolbox

Luke is a handy development and diagnostic tool, which accesses already existing Lucene indexes and allows you to display and modify their content in several ways

Upvotes: 3

Related Questions