Make ML similarity contextual filter and facets work #459
Labels
Drupal Views
Ask and you should receive
enhancement
New feature or request
Facets
Safely navigating the too many choices
Search and Discovery
Mess around and find out
Search API
Sub Modules
When you need more .info.yml files to keep life organized
Milestone
What?
Facts: we refresh the View on a passed encoded Image + Node + File and fetch a vector from the NLP. We alter the query, we get the similarity results. This all happens via Ajax. We refresh the View and we refresh the Facets. Because these are different HTTP requests the facets don't have the
results
object anymore available, so they re-query (I dislike this a lot, so inefficient ..) and call the View again.The view, if not cached, will re-query, but the original Contextual filter is no longer present in the request (bc we are filtering/making sure the requests are only done via Ajax/not public, etc) so the facets run without the KNN filter and that means in fact we always get the same facets back. As if KNN would have never run
Options we have:
The text was updated successfully, but these errors were encountered: