lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From starz10de <farag_ah...@yahoo.com>
Subject Re: High frequency term for the searched query
Date Sat, 06 Nov 2010 11:40:32 GMT

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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message