lucy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Karman <pe...@peknet.com>
Subject Re: [lucy-user] Hits offset and search performarce
Date Wed, 14 Nov 2012 03:17:39 GMT
Marvin Humphrey wrote on 11/13/12 6:38 PM:
> On Tue, Nov 13, 2012 at 9:47 AM, Peter Karman <peter@peknet.com> wrote:
>> On 11/13/12 11:33 AM, Marvin Humphrey wrote:
>>
>>> I would oppose a seek() which runs implicit searches behind the scenes
>>> because it would surprise users with a hidden performance cost.
>>
>> I was imagining that $hits->seek() would just adjust the iterator pointer,
> 
> Why not just use the `offset` parameter to Searcher#hits?  So long as
> rerunning the search is ruled out, adding seek() offers little functionality
> beyond what we already get from `offset`.
> 

point taken. I re-read the swish-e docs just now and seek_result() does just
what offset does.

/me retracts

-- 
Peter Karman  .  http://peknet.com/  .  peter@peknet.com

Mime
View raw message