Code Monkey home page Code Monkey logo

Comments (5)

bglw avatar bglw commented on September 26, 2024

Copying context from @tenmozes in #195:


Hey, thank you for an awesome project

I have two questions regarding filters

  1. When I choose one filter, the number of search result for other shows 0 match
  2. Is it any way to change from checkbox to radio, in other words is any way to use OR logic instead of AND when you choose multiple filters?

Legend:
Image 0 - all is fine
Image 1 - one filter is active
Image 2 - two filters are active

Screenshot 2023-01-13 at 7 51 32 PM Screenshot 2023-01-13 at 7 48 48 PM Screenshot 2023-01-13 at 7 50 21 PM

from pagefind.

bglw avatar bglw commented on September 26, 2024

Good news — this has landed in Pagefind v1.0.0!

See the full release notes here: https://github.com/CloudCannon/pagefind/releases/tag/v1.0.0 💙

This release doesn't yet bring the feature to the UI modules, but all the machinery is in place to execute these queries directly with the JS API.

Open an issue if you have any specific UI needs for this!

from pagefind.

tenmozes avatar tenmozes commented on September 26, 2024

Amazing, let me try :) thank you

from pagefind.

tenmozes avatar tenmozes commented on September 26, 2024

@bglw by any change are you going to add this functionality to pagefind UI? if yes is there any milestone
thank you!

from pagefind.

tenmozes avatar tenmozes commented on September 26, 2024

the most simple configuration for setting up a function to match filter (any in my case) and how to display filter (totalFilters in my case) would solve my request completely

let me know if this is impossible with Pagefind UI flow and i need to build UI using API

from pagefind.

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.