hi andy, > How can I use HitCollector to iterate over every returned document?
You have to override the function collect for the HitCollector class and then store the retrieved Data in an array or map. Here is just a source-code scratch (is = IndexSearcher) is.search(query, null, new HitCollector(){ public void collect(int docID, float score) { Document doc = is.doc(docID); titles[docID] = doc.get("title"); } }); hth, martin --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]