adhocracy_core.catalog.index module¶
Custom catalog index.
-
class
ReferenceIndex(discriminator=None)[source]¶ Bases:
substanced.catalog.indexes.SDIndex,hypatia.util.BaseIndexMixin,persistent.PersistentUse
adhocracy_core.graph.Graph.get_source_ids()to query refs.Initialize self.
-
family= <BTrees._Family64 object>¶
-
indexed()¶ Read docids docstring.
-
eq(query: dict) → hypatia.query.Eq[source]¶ Concatenate reference query.
Return type: EqParameters: query ( dict) –- reference (Reference):
- reference with target or source
- traverse (bool):
- traverse all references with same type, starting with the given target or source.
-
apply(query: dict) → BTrees.LFBTree.LFTreeSet[source]¶ Apply reference query.
Return type: LFTreeSetParameters: query ( dict) –- reference (Reference):
- reference with target or source
- traverse (bool):
- traverse all references with same type, starting with the given target or source.
-
applyAll(queries: [<class 'dict'>]) → BTrees.LFBTree.LFTreeSet[source]¶ Apply multiple reference queries.
The result sets are combined with intersection.
-
applyEq(query: dict) → BTrees.LFBTree.LFTreeSet¶ Read apply docsting.
-