Git Product home page Git Product logo

Comments (9)

ohnorobo avatar ohnorobo commented on August 16, 2024

different use case, but probably some similar functionality here

from finda.

ohnorobo avatar ohnorobo commented on August 16, 2024

https://github.com/LuizArmesto/backbone.leaflet

from finda.

paulswartz avatar paulswartz commented on August 16, 2024

I have a basic version of this up on my fork: http://paulswartz.github.io/finda/

from finda.

ohnorobo avatar ohnorobo commented on August 16, 2024

Me gusta.

One thing that comes up poking around is if we want to display this using AND or OR filtering.

It looks like what's currently has going on is AND filtering.

  • start out with no facets selected and displaying all data
  • when a facet is selected display only the items with that facet
  • when more than one facet is selected display only data which meets facet1 AND facet2 AND facet3 ... etc

OR filtering would be something more like http://jiren.github.io/filter.js/filterjs-map.html

  • start out with all the fields selected (and have a button to deselect everything)
  • when a single facet is selected display only items with that facet
  • when multiple facets are selected display items which match facet1 OR facet2 OR facet3 ... etc

There are benefits to both approaches. AND lets you find an individual resources which have a specific mixture of characteristics, OR filtering tends to display more data and allows you to find a group of resources that match a set of needs more quickly.

I'd like to loop Hannah in on this and figure out which would be more useful for her search case, either through email or by asking her to visit a CfB meeting to hash it out.

from finda.

paulswartz avatar paulswartz commented on August 16, 2024

Currently, it's actually /more/ confusing; it's AND filtering if the underlying data is a list of options, but OR filtering if it's a single value. I'd love to have Hannah check it out though, and see what she/they think.

from finda.

paulswartz avatar paulswartz commented on August 16, 2024

Oh, and I did have a rationale for the AND/OR, despite the confusion. I figured that if you were selecting some services, you'd want to see the locations that had all of those services since you needed multiple things.

from finda.

paulswartz avatar paulswartz commented on August 16, 2024

screenshot 2014-02-25 19 39 12

Amazon does it by changing the numbers next to the checkbox to reflect the number of items which will remain when that's clicked. "Featured Brands" is an OR search; "Features & Apps" is an AND search. I'll try to play with that soon.

from finda.

paulswartz avatar paulswartz commented on August 16, 2024

Finally got around to implementing a basic version of the faceting counts: http://paulswartz.github.io/finda/

Known issues:

  • clicking on the text doesn't toggle the checkbox
  • the filtering of the facets is connected, but checking a Service doesn't update the counts or options of the Categories
  • related:, if you filter so far there are no displayed values for a facet, the title is still displayed
  • related: if you filter so far there are no options, even the "selected" options disappear

from finda.

paulswartz avatar paulswartz commented on August 16, 2024

I think I've addressed those issues; I opened up #55 to merge it in.

from finda.

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.