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

dstuart’s picture

Hey,

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

Quarantine’s picture

Subscribing - I'm interested in this feature as well.

puzl’s picture

Subscribing - I'm interested in this feature too.

scotjam’s picture

Anyone got Apache FieldCollapsing working with any joy?

pwolanin’s picture

Version: 6.x-2.x-dev » 7.x-1.x-dev
Status: Active » Postponed

As far as this module, I don't think we'll try to support this until Solr 4.0 is actually released.

jpmckinney’s picture

Category: support » feature
broncomania’s picture

Version: 7.x-1.x-dev » 6.x-2.0-beta3

+1

jpmckinney’s picture

Version: 6.x-2.0-beta3 » 7.x-1.x-dev
reneve2010’s picture

Subscribing. I'm really interested in this feature as well.

a_c_m’s picture

Version: 7.x-1.x-dev » 6.x-2.x-dev

Again, 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.

jpmckinney’s picture

Version: 6.x-2.x-dev » 7.x-1.x-dev

6.x-2.x is unsupported. Only switch the issue to 6.x if there is a patch.

pwolanin’s picture

Release 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...

Ravi.J’s picture

In 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 ?

pwolanin’s picture

I do not think this is a high priority

trothwell’s picture

Ravi.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.

trothwell’s picture

I 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.

broncomania’s picture

I 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.

nick_vh’s picture

Status: Postponed » Closed (duplicate)

Marking 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

tinflute’s picture

+1