lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Sturlese <>
Subject Customizing SOLR-236 field collapsing
Date Thu, 21 May 2009 13:31:25 GMT

Hey there,
I have been testing the last adjacent field collapsing patch in trunk and
seems to work perfectly. I am trying to modify the function of it but don't
know exactly how to do it. What I would like to do is instead of collapse
the results send them to the end of the results cue.
Aparently it is not possible to do that due to the way it is implemented. I
have noticed that you get a DocSet of the ids that "survived" the collapsing
and that match the query and filters (collapseFilterDocSet =
collapseFilter.getDocSet();, you get it in
Once it is done the search is excuted again, this time the DocSet obtained
before is passed as a filter:

    DocListAndSet results = searcher.getDocListAndSet(rb.getQuery(),
== null? rb.getFilters(): null,

The result of this search will give you the final result (with the correct
offset and start).
I have thought in saving the collapsed docs in another DocSet and after do
something with them... but don't know how to manage it.
Any clue about how could I reach the goal?
Thanks in advance
View this message in context:
Sent from the Solr - User mailing list archive at

View raw message