Re: Mucking with DocSlices

2009-08-28 Thread Grant Ingersoll
On Aug 28, 2009, at 1:03 PM, Yonik Seeley wrote: On Fri, Aug 28, 2009 at 10:26 AM, Grant Ingersoll wrote: If I say String.substring().length(), I wouldn't expect the length returned to be the same as the parent (unless of course the substring requested is the identity one), so I'm not s

Re: Mucking with DocSlices

2009-08-28 Thread Yonik Seeley
On Fri, Aug 28, 2009 at 10:26 AM, Grant Ingersoll wrote: >  If I say > String.substring().length(), I wouldn't expect the length returned to be the > same as the parent (unless of course the substring requested is the identity > one), so I'm not sure why DocSlice.subset does. .size() should reflec

Mucking with DocSlices

2009-08-28 Thread Grant Ingersoll
I'd like to be able to change the DocList in a SearchComponent, for instance to shorten or lengthen it. I can get a shorter one via the subset() method, but the problem with this is the new subset still reflects the number of matches, etc. of the parent, which seems a little odd to me. If