Hi Rafa,
the defaultFilterQueries parameter allows you to limit the result set. The facet are automatically build upon the result. This mean that in your case you will have in the author facet only Van de Velde, Kevin and his coauthors. Also if you write the opposite query, i.e.
-dc.contributor.autor:"Van de Velde, Kevin"
I guess that the result will be not what you expect. No items where Van de Velde appears as author will be retrieved, so it will be not included in the author facet but I guess that this is more restrictive than what you want to achieve.

To exclude a terms from a facet the only way is to prevent such term to be indexed and you can do that only customizing the code.

In DSpace-CRIS you can easily achieve such goal implementing an EnhancedValueGenerator and using such virtual metadata (i.e. item.filteredauhor) in the discovery facet configuration
it.cineca.surplus.ir.defaultvalues.EnhancedValuesGenerator

An example of virtual metadata build using this interface in DSpace-CRIS and used in discovery can be found here:
https://github.com/Cineca/DSpace/blob/dspace-5_x_x-cris/dspace-api/src/main/java/it/cineca/surplus/ir/defaultvalues/FulltextInfoGenerator.java
https://github.com/Cineca/DSpace/blob/dspace-5_x_x-cris/dspace/config/spring/cris/cris-metadata-enhancers.xml#L167
https://github.com/Cineca/DSpace/blob/dspace-5_x_x-cris/dspace/config/spring/api/discovery.xml#L1722

Hope this help,
Andrea





Il 14/04/2016 10:48, Rafa Carreres ha scritto:
Hi all,

In DSpace 5 (Jspui) I have a facet for authors. But, I would like to exclude certain authors from the facet.

I have read the documentation (https://wiki.duraspace.org/display/DSDOC5x/Discovery) about discovery and "Adding default filter queries (OPTIONAL)".

According to this, if I define something like this:

<property name="defaultFilterQueries">
    <list>
<value>dc.contributor.author: "Van de Velde, Kevin"</value>
    </list>
</property>

Does it mean that I'll only get "Van de Velde, Kevin" in the author facet?

If so, how could I EXCLUDE a number of author from the facet? What's the syntax for this?


Regards,

Rafa Carreres
--
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscr...@googlegroups.com <mailto:dspace-tech+unsubscr...@googlegroups.com>. To post to this group, send email to dspace-tech@googlegroups.com <mailto:dspace-tech@googlegroups.com>.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


--
Andrea Bollini
International Business Development, Deputy Leader
Open Source & Open Standards Strategy, Head
Cineca

Via dei Tizii, 6
00185 Roma, Italy
tel. +39 06 44 486 087 - mob. +39 348 82 77 525
http://www.cineca.it
--
You received this message because you are subscribed to the Google Groups "DSpace 
Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to