Skip to content

For a search result, get all values for a specified Key  #39

@will-moore

Description

@will-moore

Having performed a search, we want to allow filtering by a chosen Key. This can be done by adding a AND clause to the search.
But we need to know all the possible values of that Key for the previous search results (otherwise the user may easily pick a value that gives no results in a new search).

I noticed that a search results from /submitquery includes a "bookmark" ID for pagination.
Perhaps this could be used for retrieving all the Values for a given Key from those results.

Ideally the results of this search would be similar to the searchvalues that is currently used to populate auto-complete and includes image counts:
E.g:

GET /searchengine//api/v1/resources/all/searchvalues/bookmark/123/?key=Gene&value=pax

This would then also work if the user hasn't chosen a Key:
GET /searchengine//api/v1/resources/all/searchvalues/bookmark/123/?key=Gene&value=pax

This is similar to the issue #11

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