Hi Michael, I guess this could be solved using grouping as you said.
Documents inside a group can be sorted on a field (in your case, the version
field, see parameter group.sort), and you can show only the first one. It
will be more complex to show facets (post grouping faceting is work in
progress but still not committed to the trunk).

I would be easier from the Solr side if you could do something at index
time, like indicating which document is the "current" one and which one is
an old one (you would need to update the old document whenever a new version
is indexed).

Regards,

Tomás

On Mon, Aug 1, 2011 at 10:47 AM, Mike Sokolov <soko...@ifactory.com> wrote:

> A customer has an interesting problem: some documents will have multiple
> versions. In search results, only the most recent version of a given
> document should be shown. The trick is that each user has access to a
> different set of document versions, and each user should see only the most
> recent version of a document that they have access to.
>
> Is this something that can reasonably be solved with grouping?  In 3.x? I
> haven't followed the grouping discussions closely: would someone point me in
> the right direction please?
>
> --
> Michael Sokolov
> Engineering Director
> www.ifactory.com
>
>

Reply via email to