Needs review
Project:
Ranged Search for Faceted Search
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Sep 2009 at 15:51 UTC
Updated:
11 Apr 2011 at 23:35 UTC
Jump to comment: Most recent file
Comments
Comment #1
osherl commentedI found a workaround for the Amazon rating problem. I assign taxonomy terms to nodes, for example, an item with 3 stars will have the "All", "2 and up" and "3 and up" terms assigned to it, etc. Faceted Search handles it beautifully. I have created a nice Amazon mashup site for safe cosmetics. Please check it out at http://safecosmeticshop.com
Comment #2
steveray commentedLazlo,
I'm using this successfully for SAT scores:
700..inf | 700+
600..inf | 600+
500..inf | 500+
400..inf | 400+
0..inf | Any
I checked the "When counting items in a range, add the sum of previous ranges." box in the Advanced section of the Edit Range Facet page.
I selected the "Range ID, Asc" option for that facet on the facet environment page.
I get this result in the Guided Search box, which may be similar to what you were looking for (if "5 only" == "700+") :
Average Senior Math SAT Score
700+ (3)
600+ (23)
500+ (41)
400+ (42)
Any (43)
I could not flip the list over, if I select the "Range ID, Desc" option, they sort with Any (1) and 400+ (1) topping the list, but the totals are wrong for the context.
No extra taxonomy was required.
Steve
Comment #3
osherl commentedSteve,
Thank you very much for the tip, looks like it should work. I will give it try and let you know.
Laszlo
Comment #4
vinoth.3v commentedany update on
1. Newly created Range Facets show up in "Guided search" before adding them to the environment.
?
also I am unable to save it to environment.
Comment #5
Cyboth commentedI'm having the same issue with the numeric range facet,
As soon as I created the facet it would automatically be added to the environment, it would also not add to the search if a user tryed using the guided search.
It adds automatically to the environment, but doesn't work, and when I try to add it to the environment it doesn't save.
This only seem to happen with my numeric, textual is also added automatically but seems to be working.
Thanks.
Comment #6
izarco commentedI have the same issue. Any progress?
Thank's and good job.
Comment #7
brycesenz commentedSubscribing. I am facing the same issue of facets showing up before adding them to an environment.
I've only just started investigating this, but I think that part of the problem is this - when you define a new range, it gets saved into the {fsrange_facets} table. However, it doesn't get saved into the {faceted_search_filters} table until AFTER you go to the Faceted Search Environment administration section and save it to a particular environment.
I'm still working on at least fixing that issue, but I'll keep y'all posted.
Comment #8
brycesenz commentedNM. Turns out that the above database situation is not the root cause.
Comment #9
brycesenz commentedOk, actual update. I think that the problem of range facets appearing prematurely in the guided search block can be solved with a slight tweak in the 'fsrange_faceted_search_collect' function in fsrange.module.
Original
Proposed Change
Can others please test this and confirm that it works?
Comment #10
plachThe fix looks good and seems to be working as expected. I'm going to test it more extensively and report.
You can find a proper patch attached.
Comment #11
haopei commentedThis works. I can now create range facets and enable them to the environment.
However, there seems to be another problem. I have created two range facets:
Facet Name: "Price Range - For Sale"
Facet Name: "Price Range - For Rent"
The first range facet works fine, and is enabled in the environment without trouble. The second facet refuses to be enabled.
Any ideas of what might be preventing this?
About my website
I have a real estate website which uses two CCK fields:
1. Rent Price
2. Sale Price
Both fields have identical configuration.
I have configured range facets for both of these fields, however, "Rent Price" cannot be enabled.
Thank you for any tips!
Update: I re-created the CCK field associated with the "For Rent" range facet. This fixes the problem.