The Lucene documentation contains a couple of example codes (IndexFiles and SearchFiles) that show how to index and search text files, repectively. There's also an example of how to index HTML, and a web application that uses it. What are you looking for beyond that?