Adds the document to the index.
Parameters: writer - the Lucene index writer Parameters: id - the unique id of the document Parameters: text - the text of the document throws: IOException -
Checks to see if the hits are what we expected.
Parameters: query - the query to execute Parameters: description - the description of the search Parameters: expectedIds - the expected document ids of the hits Parameters: expectedScores - the expected scores of the hits throws: IOException -