Skip to content

Search endpoint misses Filters and Parents properties #1046

Open
@joepio

Description

@joepio
  • See endpoint
  • No Filters and Search 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    serveratomic-server

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions