Giter Site home page Giter Site logo

Comments (5)

bidoubiwa avatar bidoubiwa commented on May 18, 2024 1

Hello @ntraykov
Unfortunately MeiliSearch does provide the min max value the widget requires to work properly. Nonetheless, you can set them manually to make the widget work.

This is the documentation of instantsearch.js about ais-range-input. This is the workaround to make the slider work with instant-meilisearch. It is the same workaround for both ais-range-input and ais-range-slider.

I hope this answers your question. Feel free to come back if it does not!

from meilisearch-vue.

ntraykov avatar ntraykov commented on May 18, 2024 1

@bidoubiwa Thanks a lot for your response! I managed to make it work. I've just put a big enough value. It is showing in the route but I don't care. It is filtering as expected. I've tried to get the intantSearchInstance from the ais-range-input but I wasn't able to fetch the hits. If I can I'll try to contribute to this as it would be useful and it is a cool feature.

from meilisearch-vue.

bidoubiwa avatar bidoubiwa commented on May 18, 2024 1

Thanks a lot @ntraykov. I'm closing this issue as it seems resolved. Feel free to re-open if you don't feel it is!

It would be a pleasure to have you contribute to this project :)

from meilisearch-vue.

ntraykov avatar ntraykov commented on May 18, 2024

It is working when I put random min and max values. But the problem is that when using routing when using range input, when the inputs are empty, the URL has a query param price=0,10000. Usually Algolia takes min and max automatically from the hits but in my case I don't have access to the hits. And also the query param is not needed if there is nothing added by the user.

from meilisearch-vue.

bidoubiwa avatar bidoubiwa commented on May 18, 2024

Usually Algolia takes min and max automatically from the hits but in my case I don't have access to the hits. And also the query param is not needed if there is nothing added by the user.

Unfortunately, MeiliSearch does not provide a min and max. It is not possible to change the min max value dynamically :/
I don't see a good solution for you problem right now. You can vote here if you want it to be implemented faster in MeiliSearch!

from meilisearch-vue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.