mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 08:41:00 +00:00
add search endpoint; warn unwrap
This commit is contained in:
committed by
qdequele
parent
0aa16dd3b1
commit
73b5c87cbb
@ -75,7 +75,7 @@ impl From<meilisearch_core::Error> for Error {
|
||||
};
|
||||
let message = format!("parsing error on line {} at column {}: {}", line, column, e.variant.message());
|
||||
|
||||
Error::FilterParsing(message)
|
||||
Error::FilterParsing(message)
|
||||
},
|
||||
_ => Error::Internal(error.to_string()),
|
||||
}
|
||||
@ -257,7 +257,7 @@ impl<'a> SearchBuilder<'a> {
|
||||
for doc in docs {
|
||||
let mut document: IndexMap<String, Value> = self
|
||||
.index
|
||||
.document(reader, Some(&all_attributes), doc.id)
|
||||
.document(reader, Some(all_attributes.clone()), doc.id)
|
||||
.map_err(|e| Error::RetrieveDocument(doc.id.0, e.to_string()))?
|
||||
.ok_or(Error::DocumentNotFound(doc.id.0))?;
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
// pub mod meilisearch;
|
||||
pub mod meilisearch;
|
||||
// pub mod tide;
|
||||
|
Reference in New Issue
Block a user