I have a book index with fields title, description, author_name, library_id (where the book located). I want to query books that match a provided string, and I also give an array of library_ids for ranking purpose. The results with library_ids that belong to the provided list of library_ids should be ranked higher (higher score).
Is it possible to perform this type of query?