pub struct IrFtsSearch {Show 15 fields
pub source: IrSource,
pub backend: SearchBackend,
pub search_col: String,
pub tsquery_fn: &'static str,
pub query_expr: IrExpr,
pub object_shape: Vec<IrShapePointer>,
pub filter: Option<IrExpr>,
pub order_by_rank: Option<IrSortDir>,
pub offset: Option<IrExpr>,
pub limit: Option<IrExpr>,
pub deferred_index_name: Option<String>,
pub deferred_query_param_name: Option<String>,
pub deferred_query_literal: Option<String>,
pub deferred_ids_param: Option<usize>,
pub deferred_scores_param: Option<usize>,
}Expand description
select fts::search(Type, $query) { object { … }, score }
Emits a SELECT with a WHERE tsvector @@ tsquery filter and a ts_rank
score returned alongside the matched object.
Fields§
§source: IrSourceThe searched type as an IrSource (table + alias).
backend: SearchBackendBackend that owns this search index.
search_col: Stringtsvector column name, e.g. __search__ (Postgres backend only).
tsquery_fn: &'static strPostgreSQL tsquery constructor (Postgres backend only).
query_expr: IrExprThe query text expression (e.g. $1).
object_shape: Vec<IrShapePointer>Pointers to include in the object sub-tuple.
filter: Option<IrExpr>§order_by_rank: Option<IrSortDir>§offset: Option<IrExpr>§limit: Option<IrExpr>§deferred_index_name: Option<String>Remote index name (derived from type + index_name, set for deferred backends).
deferred_query_param_name: Option<String>Name of the user’s query-text param (e.g. “query”), for the deferred search plan.
deferred_query_literal: Option<String>Inline literal query text (when not a param), for the deferred search plan.
deferred_ids_param: Option<usize>Param index for the uuid[] IDs injected by the Python layer (deferred backend).
deferred_scores_param: Option<usize>Param index for the float8[] scores injected by the Python layer (deferred backend).
Trait Implementations§
Source§impl Clone for IrFtsSearch
impl Clone for IrFtsSearch
Auto Trait Implementations§
impl Freeze for IrFtsSearch
impl RefUnwindSafe for IrFtsSearch
impl Send for IrFtsSearch
impl Sync for IrFtsSearch
impl Unpin for IrFtsSearch
impl UnsafeUnpin for IrFtsSearch
impl UnwindSafe for IrFtsSearch
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.