[Zope-dev] Searching on '/' with PathIndexes.

Andreas Jung andreas@andreas-jung.com
Fri, 20 Sep 2002 16:39:08 +0100


--On Freitag, 20. September 2002 16:27 +0200 Lennart Regebro 
<lennart@torped.se> wrote:

> As far as I can see if you search on '/' on PathIndexes, you don't get any
> hits at all. (Well, in fact, you get an "index out of range error" but
> this is a side effect of you not getting any hits).
>
> This seems to be because the path index splits the path "/hi/de/ho" into
> "hi" as level 0, "de" as level 1 and "ho" as level 2. Searching on '/'
> means that the list of paths to search on is [] and it then fails to find
> anything.  Or in fact, it kinda fails to search...
>
>
> I'm wondering now: Is my analyzing of this problem correct? If it is, then
> PathIndex would need some kind of special handling for '/' that simply
> returns everything, right?

I assume, it should...smeels like a but -> file a collector issue please
to remind me.

-aj