Options to rerank based on facet values engaged by the user for the current key. That key needs to be a custom textual key and facetable. To use this control, you also need to pass all the facet keys engaged by the user in the request using the field [SearchRequest.FacetSpec]. In particular, if you don't pass the facet keys engaged that you want to rerank on, this control won't be effective. Moreover, to obtain better results, the facet values that you want to rerank on should be close to English (ideally made of words, underscores, and spaces).
Fields
rerank_facet
If set to true, then we also rerank the dynamic facets based on the facet values engaged by the user for the current attribute key during serving.
facet_values
If empty, rerank on all facet values for the current key. Otherwise, will rerank on the facet values from this list only.
Implementations
new
fn new() -> Self
set_rerank_facet
fn set_rerank_facet<T: std::convert::Into<bool>>(self, v: T) -> Self
Sets the value of [rerank_facet][crate::model::catalog_attribute::facet_config::RerankConfig::rerank_facet].
set_facet_values
fn set_facet_values<T, V>(self, v: T) -> Self
where
T: std::iter::IntoIterator,
V: std::convert::Into<std::string::String>,
Sets the value of [facet_values][crate::model::catalog_attribute::facet_config::RerankConfig::facet_values].