How can I get all documents in the index? Is there a query that will return all of them?

Otis Gospodnetic

This cannot be done with Lucene out of the box, however there is a way to do this.
One solution is to add a field with a known and constant value to each document in the index. Then searching for that field and value will give you all documents in the index.