0) 05.00 Lucene Notes


Welcome to Lucene Notes.

This is the main thread for understanding the Lucene work I have been doing over the last couple of months.

You will find here what I have found out about Lucene. Consider this your online mini text book on lucene.

You will find here

1. History of lucene
2. References
3. Articles
4. APIs
5. Sample code
6. Research

Drop me a note if you have any questions that I can answer.

working sample code. Not organized in any specific order. Provided here to act as a scrap book for coding using the lucene api.

Given a unique key such as a URL, locate the document and return its term frequency vector.

public void printFieldNames() throws IOException
	Collection fieldNames = getReader().getFieldNames();
	Iterator itr = fieldNames.iterator();

An index reader has a getFieldNames() method. This will return an iterator of strings representing the field names.