[opencms-dev] Problem with duplicated resource in search result
Michael Emmerich
m.emmerich at alkacon.com
Thu Mar 31 09:26:40 CEST 2011
Hello Luca,
> I have some duplicated content in search result because those contents
> are sibling. Is it possible to exclude sibling (except the original
> resource) in the search results?
You have to understand that there is no "original resource" of a
sibling. If you have two siblings, both are of the same "value", there
is no "original" and no "copy". Both are equal.
You could think about restricting the search of certain folders (if the
siblings are stored in different folders) or you have to build up a list
of already displayed resources in your search result page "by hand" and
check if the search results to be displayed are siblings of other files.
But keep in mind that this will definitely decrease the performance of
your search.
--
Kind Regards,
Michael.
-------------------
Michael Emmerich
Visit OpenCms Days 2011 Conference and Expo
May 9 to May 10 2011 in Cologne, Germany
http://www.opencms-days.org
Alkacon Software GmbH - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
More information about the opencms-dev
mailing list