I am using the Filter Component from James Fairhurst for my site
http://www.jamesfairhurst.co.uk/posts/view/cakephp_filter_component/
Now I am stuck, trying to filter the Search Results.
I am trying to do something like i.e. Amazon does:
On the left of the results page, there are Filters like "Rating at least 3 Stars" or "Pricerange".
How could I implement this?
Any ideas where I should start?
Thanks in advance!
Related
I'm trying to implement guided navigation using vespa. At present, I am using grouping to implement it. I've written a query like this.
SELECT * FROM entity where sddocname contains 'entity' | all(group(category) each(group(item_category) each(output(count()))));
In the above example category is like "electronics","automobiles" etc and "item_category" is like "mobile phone","car"etc.
I don't want to select any documents, I just wanted to see the grouped data. Is there a better way to solve this problem?
Use limit 0 to remove the plain hit list. Example here https://docs.vespa.ai/documentation/tutorials/blog-search.html
limit 0 in yql or just specify &hits=0
I've 3 jsons files linked with 3 controllers, and I need to search on them using ionic/angularjs. I would like the results appear as dropdown menu, like Facebook search or like here in Stackoverflow.
Thank you.
So there are two things here that you want to do:
Be able to search inside JSON file, I think you can do that, there is a SO thread for same : Angular Search for value in JSON and display corresponding data
Display an Auto-complete drop-down, I think there bunch of directives out there, like: https://www.versioneye.com/javascript/sn0opr:ionic-autocomplete/0.1
You can also check following Ionic forum thread for type ahead recommendation:
https://forum.ionicframework.com/t/recomendation-for-a-typeahead-widget/55
If you want to create your own have look at following tutorial:
http://www.sitepoint.com/creating-a-typeahead-widget-with-angularjs/
I've created a calendar views wherein i can see all the events I've created. I also add contextual filter(start_date_of_event) to set the date to current on the first load of the page. It is working fine but my problem is that when i put an exposed filter(start_date_of_event) same field i use in my contextual filter, and tried to run it ? it seems it wont work.
To further explain. Below are the sample link:
1. with contextual filter (working) : http://test.com/test-calendar-listing/2014-12
2. with contextual filter and exposed filter (not working) :http://test.com/test-calendar-listing/2014-12?field_state_country_value=All&field_sample_method_of_delivery_tid=All&field_topics_tid=All&field_provider_type_value=All&field_event_status_value=1&field_start_date_value%5Bvalue%5D%5Bmonth%5D=11&field_start_date_value%5Bvalue%5D%5Byear%5D=2014
What i did so far is used filter harmonizer but no luck.I also tried to used hook_form_alter to redirect the page the link i want but not working also. can you please suggest what is the best thing to do? or what are things i am missing ? thanks for your help.
I want to create a small web app which would display a list of movies, with a Google spreadsheet set as a database. So far, I was able to connect my spreadsheet to my app and I also added some filters to it. (As a side note, this thread really helped me in the process.)
Here is a very simplified version of my app: http://plnkr.co/edit/BtbSCVOh7KJsMHjANxMP?p=preview
I still have 3 problems with my <select>, which I can't fix despite trying for hours:
I can't sort my <options> alphabetically. Trying with orderBy didn't return anything.
I can't figure out a way to split my categories when there are more than one for a movie.
If the "categorie" field in my spreadsheet is empty, it will return a blank <option> which I would like to remove or hide.
My guess is that I'll need to update my function one way or another, but I'm a bit lost at the moment.
Any help on this would be really appreciated!
I'm trying to find facet filtering solution for backbone (collection data). I didn't mean searchbox, but something like here http://www.documentcloud.org/public/search/ - project list in left sidebar.
Is there some library for this stuff?
Thanks!
At my company we are developing this, maybe it might interest you:
https://github.com/arillo/Backbone.Facetr