pub enum SearchSort {
Relevance,
}Expand description
Ordering applied to the discovery result set.
Relevance is the only sort (issue #290). Verified against live
OpenAlex: every non-relevance sort (cited_by_count, fwci,
publication_date) over OpenAlex’s loose full-text match floats
high-scoring off-topic papers to the top — they override the one
signal that enforces topicality. “Important / recent / high-quality” is
therefore expressed as filters (min_fwci / min_percentile /
from_year), which narrow the candidate set without discarding
relevance ordering. (Non-relevance sorting is only safe over an
already-topically-constrained set — not free-text search.)
Variants§
Relevance
OpenAlex relevance_score:desc — best textual match to query
first. Only meaningful because a search term is always present.
Implementations§
Source§impl SearchSort
impl SearchSort
Sourcepub fn as_openalex(self) -> &'static str
pub fn as_openalex(self) -> &'static str
The OpenAlex sort= parameter value for this ordering.
Trait Implementations§
Source§impl Clone for SearchSort
impl Clone for SearchSort
Source§fn clone(&self) -> SearchSort
fn clone(&self) -> SearchSort
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SearchSort
Source§impl Debug for SearchSort
impl Debug for SearchSort
Source§impl Default for SearchSort
impl Default for SearchSort
Source§fn default() -> SearchSort
fn default() -> SearchSort
impl Eq for SearchSort
Source§impl PartialEq for SearchSort
impl PartialEq for SearchSort
Source§fn eq(&self, other: &SearchSort) -> bool
fn eq(&self, other: &SearchSort) -> bool
self and other values to be equal, and is used by ==.