mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-24 13:40:31 +01:00
Remove useless where clauses for the criteria
This commit is contained in:
parent
07784c8990
commit
1fc25148da
@ -37,7 +37,7 @@ impl<'t> AscDesc<'t> {
|
||||
candidates: Option<RoaringBitmap>,
|
||||
field_id: FieldId,
|
||||
facet_type: FacetType,
|
||||
) -> anyhow::Result<Self> where Self: Sized
|
||||
) -> anyhow::Result<Self>
|
||||
{
|
||||
Self::initial(index, rtxn, query_tree, candidates, field_id, facet_type, true)
|
||||
}
|
||||
@ -49,7 +49,7 @@ impl<'t> AscDesc<'t> {
|
||||
candidates: Option<RoaringBitmap>,
|
||||
field_id: FieldId,
|
||||
facet_type: FacetType,
|
||||
) -> anyhow::Result<Self> where Self: Sized
|
||||
) -> anyhow::Result<Self>
|
||||
{
|
||||
Self::initial(index, rtxn, query_tree, candidates, field_id, facet_type, false)
|
||||
}
|
||||
@ -60,7 +60,7 @@ impl<'t> AscDesc<'t> {
|
||||
parent: Box<dyn Criterion + 't>,
|
||||
field_id: FieldId,
|
||||
facet_type: FacetType,
|
||||
) -> anyhow::Result<Self> where Self: Sized
|
||||
) -> anyhow::Result<Self>
|
||||
{
|
||||
Self::new(index, rtxn, parent, field_id, facet_type, true)
|
||||
}
|
||||
@ -71,7 +71,7 @@ impl<'t> AscDesc<'t> {
|
||||
parent: Box<dyn Criterion + 't>,
|
||||
field_id: FieldId,
|
||||
facet_type: FacetType,
|
||||
) -> anyhow::Result<Self> where Self: Sized
|
||||
) -> anyhow::Result<Self>
|
||||
{
|
||||
Self::new(index, rtxn, parent, field_id, facet_type, false)
|
||||
}
|
||||
@ -84,7 +84,7 @@ impl<'t> AscDesc<'t> {
|
||||
field_id: FieldId,
|
||||
facet_type: FacetType,
|
||||
ascending: bool,
|
||||
) -> anyhow::Result<Self> where Self: Sized
|
||||
) -> anyhow::Result<Self>
|
||||
{
|
||||
let faceted_candidates = index.faceted_documents_ids(rtxn, field_id)?;
|
||||
let candidates = match &query_tree {
|
||||
@ -120,7 +120,7 @@ impl<'t> AscDesc<'t> {
|
||||
field_id: FieldId,
|
||||
facet_type: FacetType,
|
||||
ascending: bool,
|
||||
) -> anyhow::Result<Self> where Self: Sized
|
||||
) -> anyhow::Result<Self>
|
||||
{
|
||||
Ok(AscDesc {
|
||||
index,
|
||||
|
@ -22,7 +22,7 @@ impl<'t> Proximity<'t> {
|
||||
ctx: &'t dyn Context,
|
||||
query_tree: Option<Operation>,
|
||||
candidates: Option<RoaringBitmap>,
|
||||
) -> anyhow::Result<Self> where Self: Sized
|
||||
) -> anyhow::Result<Self>
|
||||
{
|
||||
Ok(Proximity {
|
||||
ctx,
|
||||
@ -38,7 +38,7 @@ impl<'t> Proximity<'t> {
|
||||
pub fn new(
|
||||
ctx: &'t dyn Context,
|
||||
parent: Box<dyn Criterion + 't>,
|
||||
) -> anyhow::Result<Self> where Self: Sized
|
||||
) -> anyhow::Result<Self>
|
||||
{
|
||||
Ok(Proximity {
|
||||
ctx,
|
||||
|
@ -24,7 +24,7 @@ impl<'t> Typo<'t> {
|
||||
ctx: &'t dyn Context,
|
||||
query_tree: Option<Operation>,
|
||||
candidates: Option<RoaringBitmap>,
|
||||
) -> anyhow::Result<Self> where Self: Sized
|
||||
) -> anyhow::Result<Self>
|
||||
{
|
||||
Ok(Typo {
|
||||
ctx,
|
||||
@ -41,7 +41,7 @@ impl<'t> Typo<'t> {
|
||||
pub fn new(
|
||||
ctx: &'t dyn Context,
|
||||
parent: Box<dyn Criterion + 't>,
|
||||
) -> anyhow::Result<Self> where Self: Sized
|
||||
) -> anyhow::Result<Self>
|
||||
{
|
||||
Ok(Typo {
|
||||
ctx,
|
||||
|
@ -21,7 +21,7 @@ impl<'t> Words<'t> {
|
||||
ctx: &'t dyn Context,
|
||||
query_tree: Option<Operation>,
|
||||
candidates: Option<RoaringBitmap>,
|
||||
) -> anyhow::Result<Self> where Self: Sized
|
||||
) -> anyhow::Result<Self>
|
||||
{
|
||||
Ok(Words {
|
||||
ctx,
|
||||
@ -36,7 +36,7 @@ impl<'t> Words<'t> {
|
||||
pub fn new(
|
||||
ctx: &'t dyn Context,
|
||||
parent: Box<dyn Criterion + 't>,
|
||||
) -> anyhow::Result<Self> where Self: Sized
|
||||
) -> anyhow::Result<Self>
|
||||
{
|
||||
Ok(Words {
|
||||
ctx,
|
||||
|
Loading…
x
Reference in New Issue
Block a user