Hi Mic, I tried like this:
String indexName = "path"; IndexReader r = IndexReader.open(indexName); MoreLikeThis mlt = new MoreLikeThis(r); . . . . . . . . BooleanQuery result = (BooleanQuery) mlt.like(docNum); result.add(query, BooleanClause.Occur.MUST_NOT); how I can print the result content to see if it contain the releated terms to the query ? I tried also: String [] wordlist=mlt.retrieveInterestingTerms(r); but was some error "the method retrieveInterestingTerms(int) in the type MoreLikeThis is not applicable for the arguments (IndexReader)" thanks a lot -- View this message in context: http://lucene.472066.n3.nabble.com/High-frequency-term-for-the-searched-query-tp1839942p1852936.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org