Skip to content

Complex search queries through the API #4

@bbucek

Description

@bbucek

Hello.

I wasn't sure where would be the best place to ask a question about the more complex API queries.
I find this resource very useful and but I'd like to explore the possibility of more complex queries than we have in this example:

query = '/search?page=1&filter={"query":{"jsonmodel_type":"boolean_query","op":"AND","subqueries":[{"jsonmodel_type":"field_query","field":"primary_type","value":"digital_object","literal":true},{"jsonmodel_type":"field_query","field":"digital_object_id","value":"' + doid + '","literal":true}]}}'

for example:
is it possible to extend the subqueries further down and filter results combining AND and OR operators to pull the results from the Archive?

Thanks for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions