Fix the inference of the documents searchable fields

This commit is contained in:
Clément Renault 2020-03-03 19:36:46 +01:00 committed by Clément Renault
parent 2b780ab2c5
commit 5e31d28759
No known key found for this signature in database
GPG key ID: 0151CDAB43460DAE
4 changed files with 14 additions and 13 deletions

View file

@ -290,7 +290,7 @@ pub async fn get_searchable(ctx: Request<Data>) -> SResult<Response> {
let schema = index.main.schema(&reader)?;
let searchable_attributes: Option<HashSet<String>> =
let searchable_attributes: Option<Vec<String>> =
schema.map(|s| s.indexed_name().iter().map(|i| (*i).to_string()).collect());
Ok(tide::Response::new(200)