Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search endpoint misses Filters and Parents properties #1046

Open
joepio opened this issue Feb 18, 2025 · 0 comments
Open

Search endpoint misses Filters and Parents properties #1046

joepio opened this issue Feb 18, 2025 · 0 comments
Labels
server atomic-server

Comments

@joepio
Copy link
Member

joepio commented Feb 18, 2025

  • 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
@joepio joepio added the server atomic-server label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
server atomic-server
Projects
None yet
Development

No branches or pull requests

1 participant