Open
Description
- See endpoint
- No
Filters
andSearch
params
pub struct SearchQuery {
/// The text search query entered by the user in the search box
pub q: Option<String>,
/// Maximum amount of results
pub limit: Option<usize>,
/// Only include resources that have one of these resources as its ancestor
#[serde_as(as = "Option<StringWithSeparator::<CommaSeparator, String>>")]
pub parents: Option<Vec<String>>,
/// Filter based on props, using tantivy QueryParser syntax.
/// e.g. `prop:val` or `prop:val~1` or `prop:val~1 AND prop2:val2`
/// See https://docs.rs/tantivy/latest/tantivy/query/struct.QueryParser.html
pub filters: Option<String>,
pub include: Option<bool>,
}
TODO
- Create properties (in the server ontology)
- Add them to
urls.rs
- Add them to the search Endpoint definition