Add support Algolia facets or filter regular queries in searchable relationship #4554
Unanswered
goellner
asked this question in
Ideas & Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am having a very hard time, to make a searchable relationship easier to use for our Nova users. When dealing with a lot of rows in the database, it would be really nice to be able to filter with Algolias facets on the searchable input.
Example:
Imagine we have 1.000.000 products in different categories (set up as facet filter) in Algolia. With a dataset like this, it is likely that there are products with the same name, but in entirely different categories. One solution would be to show the product category too, but that only solves part of the problem.
We can already set a scoutQuery, but we would need to pass either a query parameter already to the
attach
screen or filter on thesearchable
component. Not sure tbh if it is possible to also add the$field
parameter, like we have forDynamic Relatable Methods
for modifying the query depending on where it is called from.I assume some configurable checkboxes below the searchable input (where we can already set
withTrashed
), would be perfect and this could be used with Algolia and I would think that could work even for plain queries. Everything that helps with filtering down the results is a win imho.Is there a way to extend the existing searchables Vue component and to add this functionality ourselves? If one of the maintainers want to chat about this, I would really appreciate it and I think it could really increase the UX for Nova users.
Beta Was this translation helpful? Give feedback.
All reactions