Skip to content

Commit f84631b

Browse files
committed
Update Query type to SearchQuery
1 parent bf16269 commit f84631b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/search.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,10 @@ impl<'a> SearchQuery<'a> {
287287
self.filter = Some(filter);
288288
self
289289
}
290-
pub fn with_facets<'b>(&'b mut self, facets: Selectors<&'a [&'a str]>) -> &'b mut SearchQuery<'a> {
290+
pub fn with_facets<'b>(
291+
&'b mut self,
292+
facets: Selectors<&'a [&'a str]>,
293+
) -> &'b mut SearchQuery<'a> {
291294
self.facets = Some(facets);
292295
self
293296
}
@@ -778,7 +781,7 @@ mod tests {
778781
async fn test_matching_strategy_all(client: Client, index: Index) -> Result<(), Error> {
779782
setup_test_index(&client, &index).await?;
780783

781-
let results = Query::new(&index)
784+
let results = SearchQuery::new(&index)
782785
.with_query("Harry Styles")
783786
.with_matching_strategy(MatchingStrategies::ALL)
784787
.execute::<Document>()
@@ -793,7 +796,7 @@ mod tests {
793796
async fn test_matching_strategy_left(client: Client, index: Index) -> Result<(), Error> {
794797
setup_test_index(&client, &index).await?;
795798

796-
let results = Query::new(&index)
799+
let results = SearchQuery::new(&index)
797800
.with_query("Harry Styles")
798801
.with_matching_strategy(MatchingStrategies::LAST)
799802
.execute::<Document>()

0 commit comments

Comments
 (0)