Search code examples
solrlucenegroupingfieldcollapsing

solr fieldcollapsing and maximum group.limit


I'm using Solr 3.4 and FieldCollapsing. I would like to group all messages using FieldCollapsing.

Per default, every group contains only 1 message.

I can modify the numbers of documents per group by changing the Parameter group.limit. That's a bit inconveniently for grouping all available messages to specific groups.

Is there a way to set group.limit to infinite?

The current workaround is to set group.limit to an very high value, which isn't an satisfying solution.


Solution

  • You can set group.limit to -1. Then you will get infinite documents per group.