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

[ENG-4657] add suggestedFilterOperator #809

Conversation

aaxelb
Copy link
Contributor

@aaxelb aaxelb commented Sep 6, 2023

each related-property-path included with an index-card-search response now comes with a suggestedFilterOperator attribute that could be used in another index-card-search request with the query param cardSearchFilter[<propertyPathKey>][<suggestedFilterOperator>]

e.g. the following suggests that adding cardSearchFilter[supplements][is-present] to the current search would yield 1 result

    {
      "id": "...",
      "type": "related-property-path",
      "attributes": {
        "propertyPathKey": "supplements"
        "suggestedFilterOperator": "is-present",
        "cardSearchResultCount": 1,
        // ...
      }
    },

suggests "at-date" for date properties, "is-present" for "boolean filter facets", and "any-of" to recommend an index-value-search to find valid iri values to filter by

(ticket: ENG-4657)

suggested property paths come with a suggested filter operator
@aaxelb aaxelb marked this pull request as ready for review September 6, 2023 15:54
@aaxelb aaxelb changed the title feature: add suggestedFilterOperator [ENG-4657] add suggestedFilterOperator Sep 6, 2023
@aaxelb aaxelb merged commit aef9b4d into CenterForOpenScience:develop Sep 8, 2023
3 checks passed
@aaxelb aaxelb deleted the feature/suggested-filter-operator branch September 8, 2023 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant