Hi Lucas,
I'm not entirely sure where you are trying to insert the facet but in our
configuration for the searchFilterType we have
org.dspace.discovery.configuration.DiscoverySearchFilterFacet for the class
property instead of DiscoverySearchFilter. We have also the set the
following properties in addition to what you have in this section
<property name="facetLimit" value="10"/>
<property name="sortOrder" value="COUNT"/>
If you want it to be one of the 'Discovery' boxes on a page you will need
to add it to the 'sidebarFacets' for that sections configuration.
We also have configured:
webui.browse.index.5 = type:metadata:dc.type:text
Though I can't remember if this was to display it in the 'Browse items by',
or to add it to the drop down list on the browse page.
On Thursday, 9 June 2016 23:22:37 UTC+10, Lucas angelo wrote:
>
> Hi, I am having trouble inserting "type" on the facet search. I am using
> version 5.3 and jspui interface. Até o momento e fiz o seguinte no
> discovery.xml:
>
>
>
>
>
> <!-- Set TagCloud configuration per discovery configuration -->
> <property name="tagCloudFacetConfiguration"
> ref="defaultTagCloudFacetConfiguration"/>
> <!--The search filters which can be used on the discovery search
> page-->
> <property name="searchFilters">
> <list>
> <ref bean="searchFilterTitle" />
> <ref bean="searchFilterAdvisor" />
> <ref bean="searchFilterAuthor" />
> <ref bean="searchFilterSubject" />
> <ref bean="searchFilterIssued" />
> <ref bean="searchFilterType" />
>
> </list>
> </property>
>
>
>
> <!-- Set TagCloud configuration per discovery configuration -->
> <property name="tagCloudFacetConfiguration"
> ref="homepageTagCloudFacetConfiguration"/>
> <!--The search filters which can be used on the discovery search page
> (same as defaultConfiguration above)-->
> <property name="searchFilters">
> <list>
> <ref bean="searchFilterTitle" />
> <ref bean="searchFilterAdvisor" />
> <ref bean="searchFilterAuthor" />
> <ref bean="searchFilterSubject" />
> <ref bean="searchFilterIssued" />
> <ref bean="searchFilterType" />
> </list>
> </property>
>
>
>
>
>
> <bean id="searchFilterType"
> class="org.dspace.discovery.configuration.DiscoverySearchFilter">
> <property name="indexFieldName" value="type"/>
> <property name="metadataFields">
> <list>
> <value>dc.type</value>
> </list>
> </property>
> </bean>
>
>
>
> After, I run ./dspace index-discovery -f, but did not work. Can anyone
> tell if what I did above in discovery.xml is correct or if it can be made
> easier.
>
> Thanks in advance.
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.