Hey!<div>I&#39;m trying to understand if my idea of how to use the FilterExtent in zc.catalog (1.1.1) is</div><div>correct (and efficient). I&#39;m also using hurry.query (0.9.3). My current understanding of</div><div>extents is: they can be used to perform a search on a subset of a catalog. For example,&nbsp;
</div><div>&quot;give me all objects where attr1 is &#39;foo&#39; but only for intids 5,6,7 and 10&quot;</div><div><br>&nbsp;</div><div>Short version:</div><div>I have an extent of a large catalog. How do I make a search within this extent?
</div><div><br>&nbsp;</div><div><br>&nbsp;</div><div>Long version:</div><div>Basically, I have a few content components that can&nbsp;belong to several &quot;networks&quot;.&nbsp;
</div><div><br>&nbsp;</div><div>My idea is to have an extent in each network. Adding&nbsp;a component to several&nbsp;</div><div>networks is simply a matter of subscribing to an added event, looking at the object&#39;s&nbsp;
</div><div>&quot;networks&quot; attribute and add it to each of the specified networks via&nbsp;the network&#39;s</div><div>extent.add method.</div><div><br>&nbsp;</div><div>&gt;&gt;&gt; list(BigCatalog.refs
)</div><div>[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]</div><div>&gt;&gt;&gt; list(network1.extent.set)</div><div>[1, 2, 5]</div><div>&gt;&gt;&gt; list(network2.extent.set)</div><div>[2, 3, 5, 6, 11]</div><div>
<br>&nbsp;</div><div>In turn, the members of my site can join these networks so I&#39;d want an extent on</div><div>each principal too. This is to allow a kind of &quot;subscription&quot; to his networks.&nbsp;Also I&#39;d want
</div><div>some filter capabilities where the user can somehow change settings for the filter</div><div>function, but I&#39;ll leave it for now..</div><div>Say, we have a member John, who&#39;s member of network1 &amp; 2, his extent would then
</div><div>look like this (assuming he&#39;s not filtering anything from the networks):</div><div><br>&nbsp;</div><div>&gt;&gt;&gt; IUserExtent(john).extent.set</div><div>[1, 2, 3, 5, 6, 11]</div>
<div><br>&nbsp;</div><div>SO, my main question now is, uhm, how do I actually make a search within a network&#39;s</div><div>extent? I mean, I could do a search on the big catalog and then make a union with the
</div><div>network&#39;s extent:</div><div><br>&nbsp;</div><div>&gt;&gt;&gt; some_result &amp; network1.extent</div><div>[1]</div><div><br>&nbsp;</div><div>...But was it really meant to be used like this? I see you can set the parent catalog on
</div><div>the extent but I&#39;m still not sure how to use it.</div><div><br>&nbsp;</div><div>Regards</div><div>Jesper</div>