I would love for my users to have the ability to filter search results by tags. Now there are loads of tags to begin, so perhaps a way to narrow them down in a less obtrusive way may be to provide a dropdown list of checkboxed terms that narrows as the search is refined by other filters. Then, as certain terms become more important then others, the results are filtered by those.

Alternatively, is there another way to help filter through a bunch of nodes someone can recommend?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drunken monkey’s picture

Project: Search API » Facet API
Component: Facets » Usability

This is an issue in the Facet API (and possibly a duplicate as well) which provides all the UI used for facetting.

cpliakas’s picture

dropdown list of checkboxed terms

The language suggests two types of UI components. Could you please clarify, and if possible post a screenshot or sketch of what you are thinking?

Thanks,
Chris

stopshinal’s picture

FileSize
1.63 MB

Here is a screenshot of what i'm shooting for.
With my primary concern identified in Black.
As shown in Pink, am also interested in the ability to add a 'filter tag by keyword term'. But his comes second, as I hope other filters will naturally narrow down tag options.

cpliakas’s picture

Thanks for sharing! Great diagram, and I think this is a wonderful UI component. I would actually be open to adding this to Facet API core since it is very user friendly, however I don't see myself having the time to work on it in the near future.

This could be accomplished by creating a separate widget. It definitely could exist as a stand-alone project similar to the Collapsible Facets module. That is a great example of how to create a widget and roughly the amount of code that would be required to do so.

I'm not sure what your level of experience is with coding custom modules, however what you outlined doesn't look very difficult to accomplish. if you want to code up the module, I can provide guidance on how to do so.

Thanks,
Chris

stopshinal’s picture

Chris I appreciate your support and enthusiasm. I'm not very seasoned in the way of module dev. I haven't the slightest experience developing widgets for the search api (would it be for search api, just like facets/sorts/ranges are available). But if you can point me in a direction with a few helpful hints and perhaps examples to research, we may be able to get this off the ground.

Justin

cpliakas’s picture

Component: Usability » User interface (functionality)

Let me see what I can dig up. You might also want to follow #1307296: Implement a widget that displays facets via the jQuery plugin "Chosen" as it seems similar in scope.

cpliakas’s picture

The best resource for how to work with the API is this blog post by Yuriy Gerasimov. It explains how to greate display widgets with code samples.

Thanks,
Chris

cpliakas’s picture

Component: User interface (functionality) » Contrib

Adding to the Contrib component, which means that I am looking for this functionality to be added outside of this module in a separate contrib.

cpliakas’s picture

Title: Make facet for taxonomy (tags) a dropdown with checkboxs » Implement a widget that displays facets in a dropdown with checkboxs
cpliakas’s picture

Project: Facet API » Facet API Extra
Component: Contrib » Code

Moving over to Facet API Extra for consideration.

rooby’s picture

I came across a couple of jQuery plugins, relevant to this, which look pretty awesome.

http://code.google.com/p/dropdown-check-list/
- Which would require running version 1.3 of the plugin with the jquery_update module.
- There is also a good chance of getting jQuery 1.7 in the not too distant future - see #1386294: Release jQuery 1.7 for Drupal 7 - in which case the latest version of the plugin could be used.

http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/
- Which would require the jquery_update module.

Maybe the select list implementation at http://drupal.org/sandbox/lynn/1311040 could support multiple select using that plugin?
And maybe that sandbox could be integrated into this module or else it could become a full project of its own? (I'm not sure what you want the scope of this module to be).

This is exactly what I need so I will most likely investigate implementing it in some way.

My goal down the line is to have a meta block of facets, with a select list of available (enabled) facets, which can be added by the user.
To keep the block to a minimum size this widget would be ideal.

thedosmann’s picture

Don't know if you found anything on this but look here

http://www.trellon.com/content/blog/apachesolr-and-facetapi

thedosmann’s picture

I'm trying to creete a search environment where a user can select facets enter a key word or pharse and search in that filter setup. solr search allows this as only after the search and has no filtering for and- or- not- searches. I want a search that allows filtering when a user searches and will also allow filtering on those results. Custom search comes close because it ties into core but is not well integrated with solr so it does not hook into the solr data like search api facets. The search solr api looks like a close match to start with but it is not well developed in integration with search api in data structure. So far a lot of looking and testing but no luck.... I'm starting to think I may have to just do some hacking. Custom search would be great if it hooked into search api facets. The ground work seems to have been done but no one, that I have found so far, has tied it up together. Display suite has a good edge but alas no good solr integration with seach api solr environment.

rooby’s picture

The code at http://drupal.org/sandbox/lynn/1311040 already provides the select widget.
I'm using that and it works.

It just doesn't support multiple values in a dropdown of check boxes fashion.

It would be great to get that sandbox integrated into this module or make it a full project.
I would rather be using a full project than a sandbox project.

ygerasimov’s picture

Project: Facet API Extra » Facet API Bonus

Moving issue to Facet API Bonus module.

STNyborg’s picture

Has anyone had any luck with making the facet more user friendly as shown in the examples above?

Regards,

Svend

cpliakas’s picture

STNyborg,

Can you highlight which links you are referring to? This thread has gotten a bit long :-)

Thanks,
Chris

STNyborg’s picture

Chris,

Sorry for that. You are right. This thread is but long!

I was referring to #3 and #11.

// Svend

David_Rothstein’s picture

Just wanted to point out that I posted a module which provides the multiple select functionality: Facetapi Multiselect

cpliakas’s picture

Cool! Very clean coding, can't wait to try it out. Added a link to the module on Facet API's project page.

Thanks!
Chris

jmartinezlopez’s picture

Issue summary: View changes
FileSize
23.72 KB

I'm already developing this widget to share with all that need something similar. I let screenshot of my current development progress :)

thePanz’s picture

@jmartinezlopez : are you still working on such Widget? Would be great if we could add it to "FacetAPI Bonus" module :)

thePanz’s picture

Furthermore: how is your addition different from the Facetapi-MultSelect (https://www.drupal.org/project/facetapi_multiselect) module?

DanieleN’s picture

Status: Active » Closed (won't fix)

So, for your interest;

I implemented Facetapi-MultSelect with the JS-Library Select2 to tree https://github.com/clivezhg/select2-to-tree and it works like a charm
for Multiselect, Nesting and Searchfield Widget