Closed (duplicate)
Project:
Apache Solr Search
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2010 at 13:36 UTC
Updated:
25 Apr 2012 at 14:32 UTC
Hi
I'm interested in using the Field Collapsing feature of Apache Solr as documented here http://wiki.apache.org/solr/FieldCollapsing
Does anyone have experience of using this?
Does it require any changes to the apachesolr module? or to the scheme etc?
If anyone has got it working, can you kindly share the steps involved?
cheers
scotjam
Comments
Comment #1
dstuart commentedHey,
Am working with this at the moment both with the old 236 patch which works with both solr 1.4.1 and the new 3.x branch and then looking at the 4.x branch. The reason I have mentioned both is they changed the field name between the two branches so support for both will be required until a back port patch of the 4.x patch is available.
Will keep you posted
Regards,
Dave
Comment #2
Quarantine commentedSubscribing - I'm interested in this feature as well.
Comment #3
puzl commentedSubscribing - I'm interested in this feature too.
Comment #4
scotjam commentedAnyone got Apache FieldCollapsing working with any joy?
Comment #5
pwolanin commentedAs far as this module, I don't think we'll try to support this until Solr 4.0 is actually released.
Comment #6
jpmckinney commentedComment #7
broncomania commented+1
Comment #8
jpmckinney commentedComment #9
reneve2010 commentedSubscribing. I'm really interested in this feature as well.
Comment #10
a_c_m commentedAgain, very interested, moving it back to 6.x-2.x-dev because thats what i'm interested in.
We may have development resources to throw at this (money or developer time), but only for development against D6.
Comment #11
jpmckinney commented6.x-2.x is unsupported. Only switch the issue to 6.x if there is a patch.
Comment #12
pwolanin commentedRelease notes say "Grouping / Field Collapsing" is in Solr 3.3 in fact.
http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_3_3/solr/CHA...
Comment #13
Ravi.J commentedIn D6 I found the easiest way to get field grouping was as a apachesolr views handler. I am interested to work on this again for D7. I have this scheduled in my list around 15th August. If someone else want to take a stab at it sooner you are welcome.
Here is what i think are possible features for field grouping in D7
For each environment
1. There shall be a checkbox "Group results by default"
2. A drop down list that contains all fields within solr.
3. Facility for other modules to alter the field to be grouped by
4. Option on search results page with a drop down list of fields and check box next to it ?
Comment #14
pwolanin commentedI do not think this is a high priority
Comment #15
trothwell commentedRavi.J any success on this so far? I've briefly attempted to make this work I believe I rolled the wrong patch as ive had no success initially. It's certainly a wanted feature.
Comment #16
trothwell commentedI came across something interesting to try and replicate the grouping functionality.
http://localhost:8983/solr/select/?q=test&bq=type:page^26.0&bq=type:question^2&facet=true&facet.sort=name+asc
This can be achieved through a sort, the bad thing about this module is it has defaulted sorts setup that don't appear to be removable (with ease), so we can't push the node type sort ahead of the relevancy (score).
I was previously using sort without the facet feature but found i couldn't customize the order of the node types the way i needed with score. Facet Score allows you to use Boost Query as you need, working on a hook to make this happen.
Ideas welcome.
Comment #17
broncomania commentedI got grouping running under 6.* with SOLR 3.4 (integrated grouping and important bug fix which will force to update the users in the near future) So lots of people will change in the next time I think.
My problem is now I didnt see any results. I found out if I use the group=true&group.field=site params all my search results disappear, because of using the group function.
It is not about that something went wrong with solr it delivers the search results as expected but the fields has changed during use of the group=true settings.
In normal mode all results are stored under the value array [response] but if I use the group=true it changes to [grouped][site][groups][0....10]
So how can I access these values now in drupal? The search results look really as what I expected thru devel but not for the users ... they see nothing.
Which group is the right partner for this issue because I think this is absolutely a must have! I try now to find out where to change the code but its really hard for me so I ask for help, because I am pretty sure lots of people want to use this feature also in their projects.
Maybe its the wrong topic but the only available on drupal over the search engine. Hope to find other people with the same needs and wishes to extend their search.
Comment #18
nick_vhMarking as duplicate of #1300572: Solr 3.4 Grouping and Field Collapsing
The other issue has already a proposal for a resolution so no need to have two threads at the same time
Comment #19
tinflute commented+1