pub enum PreviewFeature {
Show 14 variants
HybridSearch,
LocalCallables,
GraphTypeOptProps,
GraphTypeDefaultValues,
GraphTypeImpliedLabels,
Ontology,
ObfuscatedLiterals,
MixedLabelSyntax,
Float16CoordinateTypes,
ChronologicalComparisons,
ComplexSearchPatterns,
CollectionZip,
CollectionHas,
GqlStddevAliases,
}Expand description
A gated preview Cypher feature. The table order is the registry order; rows are never renumbered, only appended.
Variants§
HybridSearch
CIP-278 hybrid search COMBINE (reserved; lands later).
LocalCallables
CIP-231 local callables: DEFINE PROCEDURE/FUNCTION, ADR-0382.
GraphTypeOptProps
CIP-283 graph-type optional properties (prop :: ANY in element types).
GraphTypeDefaultValues
CIP-262 graph-type property default values (DEFAULT ON COMMIT <value expression>).
GraphTypeImpliedLabels
CIP-266 graph-type implied labels that identify node element types (inheritance).
Ontology
The ontology feature’s whole dialect surface: the db.ontology.* procedures (ADR-0378: the first non-syntax extension of ADR-0371’s scope policy — the family’s contract tracks the non-final Ontology Graph Spec and CIP-287) and, through the namespace registry’s mapping, the system_ontologies namespace’s visibility (ADR-0593 — the namespace exists to host this feature’s stored document, so its listing advertises the same non-final surface the procedures do). Row, mapping and gates are removed once the spec and CIP-287 are final.
ObfuscatedLiterals
The Neo4j obfuscated literal ******: parsed to a dummy false for semantic analysis, never executed. Gates at the lexer, the one point the two behaviors differ: enabled it lexes as a literal, disabled the stream is the ordinary * tokens and the parser’s own syntax error – Neo4j’s disabled form is a syntax error, not ADR-0371’s authored preview error, so the gate never reaches the front detector loop (its arm returns false).
MixedLabelSyntax
Neo4j’s mixed-label-syntax extra semantic feature: legacy colon-conjunction, GQL label-expression symbols and the IS introducer may mix across the label expressions of one clause (gates at parse, threaded to the parser as ParseOptions; mixing inside ONE label expression stays rejected).
Float16CoordinateTypes
The FLOAT16/BFLOAT16 vector coordinate types (CIP-280, ADR-0464), mirroring Neo4j’s own configuration toggle: the types in a VECTOR<…> type expression and the vector(<list>, <dim>, <type>) constructor. Detected on the parsed AST; the disabled form is ADR-0371’s authored error.
ChronologicalComparisons
Cypher 25’s four chronological comparison operators (a IS [NOT] BEFORE | AFTER | SAME INSTANT | SAME REPRESENTATION b), mirroring Neo4j’s own toggle. Detected on the parsed AST; the disabled form is ADR-0371’s authored error.
ComplexSearchPatterns
Neo4j’s vector-search complex-pattern mode: a SEARCH clause’s MATCH statement keeps its own pattern shape – several components, variable-length hops, quantified and selected paths, several bound variables, predicates outside the binding – instead of the floor’s single node or single-hop relationship. Widens the front’s SEARCH validation; disabled, every pattern-shape rejection keeps firing.
CollectionZip
CIP-274: the coll.zip collection function, callable and SHOW-listed only under this opt-in (ADR-0497). A live Neo4j probe records the name as front-end registered but unreachable – no SHOW FUNCTIONS row, 42N48 under CYPHER 5 and 25 – so the default dialect must not advertise it. Row and gate are deleted when a Neo4j release ships the function.
CollectionHas
CIP-286: the coll.hasAnyOf/coll.hasAllOf/coll.hasNoneOf collection functions, callable and SHOW-listed only under this opt-in (ADR-0497). One row for the three-name family; deleted when CIP-286 ships.
GqlStddevAliases
CIP-245’s stddev_samp/stddev_pop spellings (ADR-0497): the corpus catalogue lists only the canonical stdev_samp/stdev_pop, and Neo4j 2026.05 answers 42N48 for the GQL spellings, so the default dialect advertises and dispatches only the stdev_* rows. The gate keeps the @doc-derived 78/78 reachable. Deleted when a release registers the spellings (or the scenarios are re-pinned).
Implementations§
Source§impl PreviewFeature
impl PreviewFeature
Sourcepub fn kebab_name(self) -> &'static str
pub fn kebab_name(self) -> &'static str
The feature’s kebab-case RELATE_PREVIEW name. The
exhaustive match is the compile guarantee the registry
exists for — coverage cannot drift from the table.
Sourcepub fn from_kebab_name(name: &str) -> Option<Self>
pub fn from_kebab_name(name: &str) -> Option<Self>
The feature for a kebab-case RELATE_PREVIEW name.
None when name is not a registered feature.
Trait Implementations§
Source§impl Clone for PreviewFeature
impl Clone for PreviewFeature
impl Copy for PreviewFeature
Source§impl Debug for PreviewFeature
impl Debug for PreviewFeature
impl Eq for PreviewFeature
Source§impl Hash for PreviewFeature
impl Hash for PreviewFeature
Source§impl PartialEq for PreviewFeature
impl PartialEq for PreviewFeature
impl StructuralPartialEq for PreviewFeature
Auto Trait Implementations§
impl Forget for PreviewFeature
impl Freeze for PreviewFeature
impl Move for PreviewFeature
impl RefUnwindSafe for PreviewFeature
impl Send for PreviewFeature
impl Sync for PreviewFeature
impl Unpin for PreviewFeature
impl UnsafeUnpin for PreviewFeature
impl UnwindSafe for PreviewFeature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.