Postponed (maintainer needs more info)
Project:
Apache Solr Facet Builder
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Jan 2011 at 16:10 UTC
Updated:
22 Mar 2011 at 11:38 UTC
Comments
Comment #1
ronan commentedI don't actually know I'm afraid. I'm not even sure there's anything my module can do to weight the facets a certain way. My module defines and indexes content against the facets but the rest of the display and handling is done by the ApacheSolr module itself. I can look into it when I have a free moment, but it might be worth asking somebody who works on the ApacheSolr module if there's a way to force the order of facets on your search results.
Comment #2
kevster commentedThis would also be useful for us - we want to add price facet but cant at the moment due to the ordering...
Comment #3
mtndan commentedIt appears to be ordering based on number of results returned in a given facet. I dug around and am a bit stumped how to impose an arbitrary order on the facets. I'll post if I find out anything.
Comment #4
mtndan commentedIt appears to be ordering based on number of results returned in a given facet. I dug around and am a bit stumped how to impose an arbitrary order on the facets. I'll post if I find out anything.
Comment #5
marthinal commentedi had the same and i think maybe there are 2 ways:
1.using template_preproccess_block() working with $variables dont know if possible but sure can access to the data from there.
2.into apachesolr.module line 1124(works for me)
switch ($facet_query_sorts[$module][$delta]) {
case 'index numeric asc':
ksort($items, SORT_NUMERIC);
break;
case 'index numeric desc':
krsort($items, SORT_NUMERIC);
break;
case 'index desc':
case 'index key desc':
krsort($items, SORT_STRING);
break;
case 'index asc':
case 'index key asc':
default:
ksort($items, SORT_STRING);
break;
the sort is happening here .Really dont know how you are ordering the content try disabling this snippet ....
Good luck.
Comment #6
marthinal commentedI WAS WITH A SMALL NUMBER OF NODES AND NOW !!! DOESNT WORKS!! excuse #5 im working on it ..... ohhh :(
Comment #7
marthinal commentedIts not drupal who order the content like this its inside $response ordered.So when we query to solr we have this result . Dont know if possible from solr directly into the query or manipulate the content after into the module in this case apachesolr integration .... someone working on it?
Comment #8
marthinal commented@mtndan
I think we have to open an issue into apachesolr module integration about it maybe ... didnt find anything about it there ...if so please write here the link.
i dont know what to do in this cases if open another with the same name in apachesolr module integration.... and close this one.
Comment #9
marthinal commentedI open a issue about it at apachesolr search integration ---> http://drupal.org/node/1057182
Comment #10
brycesenz commentedSubscribing.