I’m trying to build a distance filter using Vue Instantsearch. I already have the appropriate geo data on each of the records in my index. What I want to do now is add a filter where by a user can state that they wish to only see results within 100 miles of them (for example).
The aroundRadius query parameter seems to be just what I need but I can’t figure out how to manipulate that property from a custom Vue component.
What I have so far is:
this.searchStore.queryParameters.aroundRadius = value;
And while this doesn’t throw any errors, it doesn’t update the parameter either.
Complete component code is here:
Any help appreciated!