>> I want to return the "interesting" terms used for MLT

Could you do this using Query.extractTerms() on the rewritten version of the 
MoreLikeThis query (a BooleanQuery)?

Mark

----- Original Message ----
From: Ryan McKinley <[EMAIL PROTECTED]>
To: java-user@lucene.apache.org
Sent: Wednesday, 30 May, 2007 5:16:16 PM
Subject: Re: MoreLikeThis API changes?

> 
>> 2. Do retrieveTerms(int docNum) and createQuery(PriorityQueue q) need 
>> to be private?  Can they be public?  If not public, could they at 
>> least be protected?
>>
> 
> I would think protected would be fine, what is your case for it being 
> public?
> 

 From the solr RequestHandler, I want to return the "interesting" terms 
used for MLT.  If retrieveTerms() is public, the handler could do this 
for any MLT implementation.  If protected, it would be locked to its own 
subclass of MLT (ok, but not ideal).

Since retrieveInterestingTerms(Reader) is public, it seems reasonable.

- - - -

In implementing the handler, i ran into another related problem...

Is there any way to walk through a PriorityQueue without destroying it? 
  Everything I see calls pq.pop() in a loop.  I would like to be able to 
use the queue to construct the MLT query and for display.  For large 
documents, constructing the "interesting" terms can be very slow, so 
doing it twice isn't a good idea.


thanks
ryan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






      ___________________________________________________________ 
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today 
http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to