pub struct SearchClause {
pub binding_var: SmallName,
pub spec: SearchSpec,
pub score_var: Option<SmallName>,
}Expand description
<search clause>: the SEARCH ... IN (<source specification clause>) [SCORE AS ...] subclause of MatchClause.
binding_var/score_var (and each nested index_name) are plain
identifiers (never a general expression, a parameter, or a property
access – Rules 1, 4, 5) rather than Expr, matching the grammar’s own
<binding variable reference> / <index name specification> /
<binding variable> productions.
Fields§
§binding_var: SmallName<binding variable reference>: must name a variable declared by the
same <match statement>’s own pattern.
spec: SearchSpec<source specification clause>: one index search, or a
COMBINE of two or more weighted sources fused with WRRF.
score_var: Option<SmallName>[SCORE AS <binding variable>] – None when the score column is
omitted (results are still ordered by descending score either way).
Trait Implementations§
Source§impl Clone for SearchClause
impl Clone for SearchClause
Source§impl Debug for SearchClause
impl Debug for SearchClause
Source§impl PartialEq for SearchClause
impl PartialEq for SearchClause
impl StructuralPartialEq for SearchClause
Auto Trait Implementations§
impl Forget for SearchClause
impl Freeze for SearchClausewhere
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Expr>: Freeze,
PhantomData<MapPair>: Freeze,
PhantomData<InterpPart>: Freeze,
*const PropertyAccess is !null: Freeze,
PhantomData<PropertyAccess>: Freeze,
*const BinaryExpr is !null: Freeze,
PhantomData<BinaryExpr>: Freeze,
*const UnaryExpr is !null: Freeze,
PhantomData<UnaryExpr>: Freeze,
*const ComparisonExpr is !null: Freeze,
PhantomData<ComparisonExpr>: Freeze,
*const InExpr is !null: Freeze,
PhantomData<InExpr>: Freeze,
*const IsNullExpr is !null: Freeze,
PhantomData<IsNullExpr>: Freeze,
*const IsTypeExpr is !null: Freeze,
PhantomData<IsTypeExpr>: Freeze,
*const IsNormalizedExpr is !null: Freeze,
PhantomData<IsNormalizedExpr>: Freeze,
*const ChronologicalCompareExpr is !null: Freeze,
PhantomData<ChronologicalCompareExpr>: Freeze,
*const StringMatchExpr is !null: Freeze,
PhantomData<StringMatchExpr>: Freeze,
*const CaseExpr is !null: Freeze,
PhantomData<CaseExpr>: Freeze,
*const ExistsSubqueryExpr is !null: Freeze,
PhantomData<ExistsSubqueryExpr>: Freeze,
*const CountSubqueryExpr is !null: Freeze,
PhantomData<CountSubqueryExpr>: Freeze,
*const CollectSubqueryExpr is !null: Freeze,
PhantomData<CollectSubqueryExpr>: Freeze,
*const ListComprehensionExpr is !null: Freeze,
PhantomData<ListComprehensionExpr>: Freeze,
*const MapComprehensionExpr is !null: Freeze,
PhantomData<MapComprehensionExpr>: Freeze,
*const PatternComprehensionExpr is !null: Freeze,
PhantomData<PatternComprehensionExpr>: Freeze,
*const ReduceExpr is !null: Freeze,
PhantomData<ReduceExpr>: Freeze,
*const AllReduceExpr is !null: Freeze,
PhantomData<AllReduceExpr>: Freeze,
*const ShortestPathExpr is !null: Freeze,
PhantomData<ShortestPathExpr>: Freeze,
*const SubscriptExpr is !null: Freeze,
PhantomData<SubscriptExpr>: Freeze,
*const QuantifierExpr is !null: Freeze,
PhantomData<QuantifierExpr>: Freeze,
*const HasLabelExpr is !null: Freeze,
PhantomData<HasLabelExpr>: Freeze,
*const Expr is !null: Freeze,
*const PatternPredicateExpr is !null: Freeze,
PhantomData<PatternPredicateExpr>: Freeze,
*const MapProjectionExpr is !null: Freeze,
PhantomData<MapProjectionExpr>: Freeze,
PhantomData<SearchWeightedSource>: Freeze,
impl Move for SearchClause
impl RefUnwindSafe for SearchClause
impl Send for SearchClausewhere
Arc<str>: Send,
RawVecInner: Send,
BoxRaw<Expr>: Send,
BoxRaw<PropertyAccess>: Send,
BoxRaw<BinaryExpr>: Send,
BoxRaw<UnaryExpr>: Send,
BoxRaw<ComparisonExpr>: Send,
BoxRaw<InExpr>: Send,
BoxRaw<IsNullExpr>: Send,
BoxRaw<IsTypeExpr>: Send,
BoxRaw<IsNormalizedExpr>: Send,
BoxRaw<ChronologicalCompareExpr>: Send,
BoxRaw<StringMatchExpr>: Send,
BoxRaw<CaseExpr>: Send,
BoxRaw<ExistsSubqueryExpr>: Send,
BoxRaw<CountSubqueryExpr>: Send,
BoxRaw<CollectSubqueryExpr>: Send,
BoxRaw<ListComprehensionExpr>: Send,
BoxRaw<MapComprehensionExpr>: Send,
BoxRaw<PatternComprehensionExpr>: Send,
BoxRaw<ReduceExpr>: Send,
BoxRaw<AllReduceExpr>: Send,
BoxRaw<ShortestPathExpr>: Send,
BoxRaw<SubscriptExpr>: Send,
BoxRaw<QuantifierExpr>: Send,
BoxRaw<HasLabelExpr>: Send,
BoxRaw<PatternPredicateExpr>: Send,
BoxRaw<MapProjectionExpr>: Send,
impl Sync for SearchClausewhere
Arc<str>: Sync,
RawVecInner: Sync,
BoxRaw<Expr>: Sync,
BoxRaw<PropertyAccess>: Sync,
BoxRaw<BinaryExpr>: Sync,
BoxRaw<UnaryExpr>: Sync,
BoxRaw<ComparisonExpr>: Sync,
BoxRaw<InExpr>: Sync,
BoxRaw<IsNullExpr>: Sync,
BoxRaw<IsTypeExpr>: Sync,
BoxRaw<IsNormalizedExpr>: Sync,
BoxRaw<ChronologicalCompareExpr>: Sync,
BoxRaw<StringMatchExpr>: Sync,
BoxRaw<CaseExpr>: Sync,
BoxRaw<ExistsSubqueryExpr>: Sync,
BoxRaw<CountSubqueryExpr>: Sync,
BoxRaw<CollectSubqueryExpr>: Sync,
BoxRaw<ListComprehensionExpr>: Sync,
BoxRaw<MapComprehensionExpr>: Sync,
BoxRaw<PatternComprehensionExpr>: Sync,
BoxRaw<ReduceExpr>: Sync,
BoxRaw<AllReduceExpr>: Sync,
BoxRaw<ShortestPathExpr>: Sync,
BoxRaw<SubscriptExpr>: Sync,
BoxRaw<QuantifierExpr>: Sync,
BoxRaw<HasLabelExpr>: Sync,
BoxRaw<PatternPredicateExpr>: Sync,
BoxRaw<MapProjectionExpr>: Sync,
impl Unpin for SearchClausewhere
Arc<str>: Unpin,
*const u8 is !null: Unpin,
Box<Expr>: Unpin,
Box<PropertyAccess>: Unpin,
Box<BinaryExpr>: Unpin,
Box<UnaryExpr>: Unpin,
Box<ComparisonExpr>: Unpin,
Box<InExpr>: Unpin,
Box<IsNullExpr>: Unpin,
Box<IsTypeExpr>: Unpin,
Box<IsNormalizedExpr>: Unpin,
Box<ChronologicalCompareExpr>: Unpin,
Box<StringMatchExpr>: Unpin,
Box<CaseExpr>: Unpin,
Box<ExistsSubqueryExpr>: Unpin,
Box<CountSubqueryExpr>: Unpin,
Box<CollectSubqueryExpr>: Unpin,
Box<ListComprehensionExpr>: Unpin,
Box<MapComprehensionExpr>: Unpin,
Box<PatternComprehensionExpr>: Unpin,
Box<ReduceExpr>: Unpin,
Box<AllReduceExpr>: Unpin,
Box<ShortestPathExpr>: Unpin,
Box<SubscriptExpr>: Unpin,
Box<QuantifierExpr>: Unpin,
Box<HasLabelExpr>: Unpin,
Box<PatternPredicateExpr>: Unpin,
Box<MapProjectionExpr>: Unpin,
impl UnsafeUnpin for SearchClausewhere
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Expr>: UnsafeUnpin,
PhantomData<MapPair>: UnsafeUnpin,
PhantomData<InterpPart>: UnsafeUnpin,
*const PropertyAccess is !null: UnsafeUnpin,
PhantomData<PropertyAccess>: UnsafeUnpin,
*const BinaryExpr is !null: UnsafeUnpin,
PhantomData<BinaryExpr>: UnsafeUnpin,
*const UnaryExpr is !null: UnsafeUnpin,
PhantomData<UnaryExpr>: UnsafeUnpin,
*const ComparisonExpr is !null: UnsafeUnpin,
PhantomData<ComparisonExpr>: UnsafeUnpin,
*const InExpr is !null: UnsafeUnpin,
PhantomData<InExpr>: UnsafeUnpin,
*const IsNullExpr is !null: UnsafeUnpin,
PhantomData<IsNullExpr>: UnsafeUnpin,
*const IsTypeExpr is !null: UnsafeUnpin,
PhantomData<IsTypeExpr>: UnsafeUnpin,
*const IsNormalizedExpr is !null: UnsafeUnpin,
PhantomData<IsNormalizedExpr>: UnsafeUnpin,
*const ChronologicalCompareExpr is !null: UnsafeUnpin,
PhantomData<ChronologicalCompareExpr>: UnsafeUnpin,
*const StringMatchExpr is !null: UnsafeUnpin,
PhantomData<StringMatchExpr>: UnsafeUnpin,
*const CaseExpr is !null: UnsafeUnpin,
PhantomData<CaseExpr>: UnsafeUnpin,
*const ExistsSubqueryExpr is !null: UnsafeUnpin,
PhantomData<ExistsSubqueryExpr>: UnsafeUnpin,
*const CountSubqueryExpr is !null: UnsafeUnpin,
PhantomData<CountSubqueryExpr>: UnsafeUnpin,
*const CollectSubqueryExpr is !null: UnsafeUnpin,
PhantomData<CollectSubqueryExpr>: UnsafeUnpin,
*const ListComprehensionExpr is !null: UnsafeUnpin,
PhantomData<ListComprehensionExpr>: UnsafeUnpin,
*const MapComprehensionExpr is !null: UnsafeUnpin,
PhantomData<MapComprehensionExpr>: UnsafeUnpin,
*const PatternComprehensionExpr is !null: UnsafeUnpin,
PhantomData<PatternComprehensionExpr>: UnsafeUnpin,
*const ReduceExpr is !null: UnsafeUnpin,
PhantomData<ReduceExpr>: UnsafeUnpin,
*const AllReduceExpr is !null: UnsafeUnpin,
PhantomData<AllReduceExpr>: UnsafeUnpin,
*const ShortestPathExpr is !null: UnsafeUnpin,
PhantomData<ShortestPathExpr>: UnsafeUnpin,
*const SubscriptExpr is !null: UnsafeUnpin,
PhantomData<SubscriptExpr>: UnsafeUnpin,
*const QuantifierExpr is !null: UnsafeUnpin,
PhantomData<QuantifierExpr>: UnsafeUnpin,
*const HasLabelExpr is !null: UnsafeUnpin,
PhantomData<HasLabelExpr>: UnsafeUnpin,
*const Expr is !null: UnsafeUnpin,
*const PatternPredicateExpr is !null: UnsafeUnpin,
PhantomData<PatternPredicateExpr>: UnsafeUnpin,
*const MapProjectionExpr is !null: UnsafeUnpin,
PhantomData<MapProjectionExpr>: UnsafeUnpin,
PhantomData<SearchWeightedSource>: UnsafeUnpin,
impl UnwindSafe for SearchClausewhere
Arc<str>: UnwindSafe,
RawVecInner: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<PropertyAccess>: UnwindSafe,
BoxRaw<BinaryExpr>: UnwindSafe,
BoxRaw<UnaryExpr>: UnwindSafe,
BoxRaw<ComparisonExpr>: UnwindSafe,
BoxRaw<InExpr>: UnwindSafe,
BoxRaw<IsNullExpr>: UnwindSafe,
BoxRaw<IsTypeExpr>: UnwindSafe,
BoxRaw<IsNormalizedExpr>: UnwindSafe,
BoxRaw<ChronologicalCompareExpr>: UnwindSafe,
BoxRaw<StringMatchExpr>: UnwindSafe,
BoxRaw<CaseExpr>: UnwindSafe,
BoxRaw<ExistsSubqueryExpr>: UnwindSafe,
BoxRaw<CountSubqueryExpr>: UnwindSafe,
BoxRaw<CollectSubqueryExpr>: UnwindSafe,
BoxRaw<ListComprehensionExpr>: UnwindSafe,
BoxRaw<MapComprehensionExpr>: UnwindSafe,
BoxRaw<PatternComprehensionExpr>: UnwindSafe,
BoxRaw<ReduceExpr>: UnwindSafe,
BoxRaw<AllReduceExpr>: UnwindSafe,
BoxRaw<ShortestPathExpr>: UnwindSafe,
BoxRaw<SubscriptExpr>: UnwindSafe,
BoxRaw<QuantifierExpr>: UnwindSafe,
BoxRaw<HasLabelExpr>: UnwindSafe,
BoxRaw<PatternPredicateExpr>: UnwindSafe,
BoxRaw<MapProjectionExpr>: UnwindSafe,
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
Mutably borrows from an owned value. Read more