I would like to contribute a class based on the MoreLikeThis class in contrib/queries that generates a query based on the tags associated with a document.
I created a patch LUCENE-1910.patch that demonstrates this class. Based on feedback, I moved the information gain calculation code to a separate class and refactored the code MoreLikeThisUsingTags class to include more descriptive variables and comments and the ASL. I would appreciate any more feedback or comments. https://issues.apache.org/jira/browse/LUCENE-1910 <https://issues.apache.org/jira/browse/LUCENE-1910>Thanks, Thomas