2008/5/7 Philip Van Hoof <<a href="mailto:spam@pvanhoof.be" target="_blank">spam@pvanhoof.be</a>>:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><br>
On Wed, 2008-05-07 at 16:29 +0200, Jos van den Oever wrote:<br>
> 2008/5/7 Jamie McCracken <<a href="mailto:jamie.mccrack@googlemail.com" target="_blank">jamie.mccrack@googlemail.com</a>>:<br>
> > we need ranges in order to search efficiently - having potentially<br>
> > random hit IDs passe to that function means we cannot optimise (no way<br>
> > to tell in advance if its a range)<br>
> ><br>
> > Its so bad that we will add an extension GetPagedHits ourselves if no<br>
> > one else wants it!<br>
><br>
> You're seeing ghosts. It's trivial and very quick to check if a range<br>
> of numbers is sequential.<br>
> If it's sequential, you can use your optimized range function, if not,<br>
> get the hits one by one. For the later you need a function anyway.<br>
><br>
> Adding a proprietary extension over such a non-issue is rather sad.<br>
<br>
</div>Calling a discussed solution that we intent to move to spec as soon as<br>
possible proprietary because somebody does not want to utilise an<br>
extremely loosely specified hack that only works by accident*, is rather<br>
sad.<br>
<br>
I have better things to do with my time, really.<br>
<br>
* You had to explain the person who wrote the specification (right?)<br>
that this is possible with his own specification, but he didn't know:<br>
<div></div></blockquote><div><br>Is that person me? - I wrote the wiki pages, but the spec is community consensus and have been discussed *at length* in the past. In any case Jos an I agreed, there was just a moment of confusion. The strategy Jos described is quite obvious if you know the spec. It has crossed my mind many times. <br>
<br>There may be some justification in calling it a hack, but It is not exactly a big hack. And we can make it a no-hack with a simple change in the documentation of GetHitData.<br><br>
> You wrote:<br>
> > They are sequential. From the spec:<br>
<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Mikkel Kamstrup Erlandsen wrote:<br>
> Uhm, that was not the intention :-) The hit_ids argument is an<br>
> arbitrary array of hit ids, fx, [1, 7, 28].<br>
<br>
</div>I don't know what your definition of writing a robust specification is,<br>
but this sure isn't my definition.<br>
<div><br>
</div></blockquote><div><br>I don't know what you are trying to say with that. Can you elaborate?<br></div></div><br>
<br>Cheers,<br>Mikkel<br>