
Behavioral filtering containers
Special behavioural filter constraint containers are used to define a filter constraint scope, which has a different treatment in calculations, or to define a scope in which the entities are searched.
In Scope
- argument:enum(LIVE|ARCHIVED)
mandatory enum argument representing the scope to which the filter constraints in the second and subsequent arguments are applied
- filterConstraint:any+
one or more mandatory filter conditions, combined by a logical link, used to filter entities only in a specific scope
The evitaDB query engine is strict about indexes and does not allow you to filter or sort on data (attributes, references, etc.) for which no index has been prepared in advance (it tries to avoid situations where a full scan would degrade query performance). Scopes, on the other hand, allows us to get rid of unnecessary indexes when we know we will not need them (archived data is not expected to be queried as extensively as live data) and free up some resources for more important tasks.
User filter
- filterConstraint:any+
one or more mandatory filter constraints that will produce logical conjunction
| Facet summary with facetHaving in userFilter | Facet summary without userFilter scope |
|---|---|
Before | After |
How userFilter shapes predictions
| Carrier family | Constraints | Powers prediction |
|---|---|---|
| Facet carriers | facetHaving | Facet COUNT and IMPACT in referenceSummary |
| Value-range carriers | attributeBetween, histogramHaving | Attribute and per-parameter (reference) histograms |
| Price-range carriers | priceBetween | Price histogram |
| Computing prediction for… | Facet carriers | Value-range carriers | Price-range carriers |
|---|---|---|---|
| Facet COUNT (per option, universe-level) | dropped — entire userFilter is ignored | dropped | dropped |
| Facet IMPACT (per option, delta) | kept; selection simulated per group rules | kept | kept |
| Attribute / reference (per-parameter) histogram | kept | dropped | kept |
| Price histogram | kept | kept | dropped |


