Re: [Dspace-tech] discovery facet by collection
This is the sidebar facet in discovery.xml that works showing the collection bean id=searchFilterCollection class=org.dspace.discovery.configuration.DiscoverySearchFilterFacet property name=indexFieldName value=location.coll/ property name=metadataFields list valuelocation.coll/value /list /property property name=sortOrder value=VALUE/ /bean I really need to show the collections found and other metadada in the same facet, let's say that I want to show location.coll and dc.title, so: bean id=searchFilterCollection class=org.dspace.discovery.configuration.DiscoverySearchFilterFacet property name=indexFieldName value=location.coll/ property name=metadataFields list valuedc.title/value valuelocation.coll/value /list /property property name=sortOrder value=VALUE/ /bean but doesn't work :( -- View this message in context: http://dspace.2283337.n4.nabble.com/discovery-facet-by-collection-tp4678162p4679008.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] discovery facet by collection
Hi Christian, The PR really helped me. The problem was that seems that dspace needs the field ending with _filter to make the filter appear so, we can modify our schema.xml to add this field and also fill with the same value of location.coll: field name=location.coll_filter type=keywordFilter indexed=true stored=true multiValued=true omitNorms=true / copyField source=location.coll dest=location.coll_filter / With this the facet appears. The next problem is that when you click in any of the values that the facet finds the filtering doesn't work as it returns 0 items. I have fix that creating the field location.coll_keyword also. So: field name=location.coll_keyword type=keywordFilter indexed=true stored=true multiValued=true omitNorms=true / copyField source=location.coll dest=location.coll_keyword / So now all seems work good :) My problem now is that I don't want to make a new facet, I want to use the location.coll in an existent facet and here seems not working, will see what's happening. -- View this message in context: http://dspace.2283337.n4.nabble.com/discovery-facet-by-collection-tp4678162p4678984.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] discovery facet by collection
Hi Pablo, glad I could help. I'm not sure if i understand this part: My problem now is that I don't want to make a new facet, I want to use the location.coll in an existent facet and here seems not working, will see what's happening. Am 29.07.2015 um 11:12 schrieb Pablo Buenaposada: Hi Christian, The PR really helped me. The problem was that seems that dspace needs the field ending with _filter to make the filter appear so, we can modify our schema.xml to add this field and also fill with the same value of location.coll: field name=location.coll_filter type=keywordFilter indexed=true stored=true multiValued=true omitNorms=true / copyField source=location.coll dest=location.coll_filter / With this the facet appears. The next problem is that when you click in any of the values that the facet finds the filtering doesn't work as it returns 0 items. I have fix that creating the field location.coll_keyword also. So: field name=location.coll_keyword type=keywordFilter indexed=true stored=true multiValued=true omitNorms=true / copyField source=location.coll dest=location.coll_keyword / So now all seems work good :) My problem now is that I don't want to make a new facet, I want to use the location.coll in an existent facet and here seems not working, will see what's happening. -- View this message in context: http://dspace.2283337.n4.nabble.com/discovery-facet-by-collection-tp4678162p4678984.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Christian Scheible Softwareentwickler / Abt. Content-basierte Dienste Kommunikations-, Informations- und Medienzentrum (KIM) Universität Konstanz 78457 Konstanz +49 (0)7531 / 88-2857 Raum B 703 -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] discovery facet by collection
Hi Pablo, I think the problem is that collection is not a metadata field. So you need to add some fields to the Solr index. I wrote a pull request (https://github.com/DSpace/DSpace/pull/988) to make filtering for items with full text possible. This is possible by: - adding a FilterPlugin like my dspace-api/src/main/java/org/dspace/discovery/SolrServiceFullTextFilterPlugin.java - referencing it in the discovery.xml to activate it (see line 36 in my pull request). - and using it the same way I used it (in lines 414-423) Hope this helps Christian Am 24.07.2015 um 14:22 schrieb Pablo Buenaposada: I don't know if you understand me. From what I know, to make a sidebar facet work you need to create mandatory a search filter, so, is not helpful... is required! My problem is not about making the sidebar facet appear in community/collection level, the problem is that in nowhere appears it. This is my discovery.xml of a clean 5.2 version with the collection search filter configured not working: ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:context=http://www.springframework.org/schema/context; xmlns:util=http://www.springframework.org/schema/util; xsi:schemaLocation=http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd; default-autowire-candidates=*Service,*DAO,javax.sql.DataSource context:annotation-config / bean id=solrServiceResourceIndexPlugin class=org.dspace.discovery.SolrServiceResourceRestrictionPlugin scope=prototype/ bean id=SolrServiceSpellIndexingPlugin class=org.dspace.discovery.SolrServiceSpellIndexingPlugin scope=prototype/ alias name=solrServiceResourceIndexPlugin alias=org.dspace.discovery.SolrServiceResourceRestrictionPlugin/ bean id=solrBrowseIndexer scope=prototype class=org.dspace.browse.SolrBrowseCreateDAO /bean bean id=org.dspace.discovery.configuration.DiscoveryConfigurationService class=org.dspace.discovery.configuration.DiscoveryConfigurationService property name=map map entry key=default value-ref=defaultConfiguration / entry key=site value-ref=homepageConfiguration / /map /property property name=toIgnoreMetadataFields map entry keyutil:constant static-field=org.dspace.core.Constants.COMMUNITY//key list valuedc.rights/value /list /entry entry keyutil:constant static-field=org.dspace.core.Constants.COLLECTION//key list valuedc.rights/value /list /entry entry keyutil:constant static-field=org.dspace.core.Constants.ITEM//key list valuedc.description.provenance/value /list /entry /map /property /bean bean id=defaultConfiguration class=org.dspace.discovery.configuration.DiscoveryConfiguration scope=prototype property name=sidebarFacets list ref bean=searchFilterAuthor / ref bean=searchFilterSubject / ref bean=searchFilterIssued / ref bean=searchFilterCollection / /list /property property name=tagCloudFacetConfiguration ref=defaultTagCloudFacetConfiguration/ property name=searchFilters list ref bean=searchFilterTitle / ref bean=searchFilterAuthor / ref bean=searchFilterSubject / ref bean=searchFilterIssued / ref bean=searchFilterCollection / /list /property property name=searchSortConfiguration bean
Re: [Dspace-tech] discovery facet by collection
I don't know if you understand me. From what I know, to make a sidebar facet work you need to create mandatory a search filter, so, is not helpful... is required! My problem is not about making the sidebar facet appear in community/collection level, the problem is that in nowhere appears it. This is my discovery.xml of a clean 5.2 version with the collection search filter configured not working: ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:context=http://www.springframework.org/schema/context; xmlns:util=http://www.springframework.org/schema/util; xsi:schemaLocation=http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd; default-autowire-candidates=*Service,*DAO,javax.sql.DataSource context:annotation-config / bean id=solrServiceResourceIndexPlugin class=org.dspace.discovery.SolrServiceResourceRestrictionPlugin scope=prototype/ bean id=SolrServiceSpellIndexingPlugin class=org.dspace.discovery.SolrServiceSpellIndexingPlugin scope=prototype/ alias name=solrServiceResourceIndexPlugin alias=org.dspace.discovery.SolrServiceResourceRestrictionPlugin/ bean id=solrBrowseIndexer scope=prototype class=org.dspace.browse.SolrBrowseCreateDAO /bean bean id=org.dspace.discovery.configuration.DiscoveryConfigurationService class=org.dspace.discovery.configuration.DiscoveryConfigurationService property name=map map entry key=default value-ref=defaultConfiguration / entry key=site value-ref=homepageConfiguration / /map /property property name=toIgnoreMetadataFields map entry keyutil:constant static-field=org.dspace.core.Constants.COMMUNITY//key list valuedc.rights/value /list /entry entry keyutil:constant static-field=org.dspace.core.Constants.COLLECTION//key list valuedc.rights/value /list /entry entry keyutil:constant static-field=org.dspace.core.Constants.ITEM//key list valuedc.description.provenance/value /list /entry /map /property /bean bean id=defaultConfiguration class=org.dspace.discovery.configuration.DiscoveryConfiguration scope=prototype property name=sidebarFacets list ref bean=searchFilterAuthor / ref bean=searchFilterSubject / ref bean=searchFilterIssued / ref bean=searchFilterCollection / /list /property property name=tagCloudFacetConfiguration ref=defaultTagCloudFacetConfiguration/ property name=searchFilters list ref bean=searchFilterTitle / ref bean=searchFilterAuthor / ref bean=searchFilterSubject / ref bean=searchFilterIssued / ref bean=searchFilterCollection / /list /property property name=searchSortConfiguration bean class=org.dspace.discovery.configuration.DiscoverySortConfiguration property name=defaultSortOrder value=desc/ property name=sortFields list ref bean=sortTitle / ref bean=sortDateIssued / ref bean=sortCollection / /list /property /bean /property property name=recentSubmissionConfiguration bean class=org.dspace.discovery.configuration.DiscoveryRecentSubmissionsConfiguration property
Re: [Dspace-tech] discovery facet by collection
I saw this issue raised up on the list again today. Pablo, I do not know if this will answer your questions, but this information might be helpful. As Christian suggests, I have also found it helpful to define new sidebarFacets as searchFilters. I implemented a custom sidebar facet on a community and another sidebar facet on the collections within that community. In order for the sidebar facet to function at the community level, I needed to define that facet as a search filter within each of the collections in that community. On Tue, Jun 2, 2015 at 7:37 AM, Christian Scheible christian.schei...@uni-konstanz.de wrote: The field should be fine (At least thats the field I can see in Solr search core). Maybe the problem is that you didn't define it in every place where it is needed. I think it has to be a search filter in addition to a facet in order to work. And maybe it has to be part of the hompageConfiguration and the defaultConfiguration. But I am not sure about that. Am 02.06.2015 um 14:51 schrieb Pablo Buenaposada: yes, I have reindex after the change in discovery.xml. The tag location.coll is the correct one to obtain the collection? -- View this message in context: http://dspace.2283337.n4.nabble.com/discovery-facet-by-collection-tp4678162p4678167.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Christian Scheible Softwareentwickler / Abt. Content-basierte Dienste Kommunikations-, Informations- und Medienzentrum (KIM) Universität Konstanz 78457 Konstanz +49 (0)7531 / 88-2857 Raum B 703 -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Terry Brady Applications Programmer Analyst Georgetown University Library Information Technology https://www.library.georgetown.edu/lit/code 425-298-5498 (Seattle, WA) -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] discovery facet by collection
up -- View this message in context: http://dspace.2283337.n4.nabble.com/discovery-facet-by-collection-tp4678162p4678894.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] discovery facet by collection
I'm using the configuration of a filter that works ok, so seems that no bad configuration could affect here, any hint? -- View this message in context: http://dspace.2283337.n4.nabble.com/discovery-facet-by-collection-tp4678162p4678364.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] discovery facet by collection
Hi, I want to make a discovery sidebar facet by collection, what's the value to put in discovery.xml to retrieve the collection of the items? I see in solr that the value is location.coll but i have tested with valuelocation.coll/value with no luck. -- View this message in context: http://dspace.2283337.n4.nabble.com/discovery-facet-by-collection-tp4678162.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] discovery facet by collection
Hi, did you reindex discovery after chaning the discovery.xml? After modifying sidebarFacets and searchFilters, don't forget to reindex existing items by running|[dspace]/bin/dspace index-discovery||-b|, otherwise the changes will not appear. Am 02.06.2015 um 10:24 schrieb Pablo Buenaposada: Hi, I want to make a discovery sidebar facet by collection, what's the value to put in discovery.xml to retrieve the collection of the items? I see in solr that the value is location.coll but i have tested with valuelocation.coll/value with no luck. -- View this message in context: http://dspace.2283337.n4.nabble.com/discovery-facet-by-collection-tp4678162.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Christian Scheible Softwareentwickler / Abt. Content-basierte Dienste Kommunikations-, Informations- und Medienzentrum (KIM) Universität Konstanz 78457 Konstanz +49 (0)7531 / 88-2857 Raum B 703 -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] discovery facet by collection
The field should be fine (At least thats the field I can see in Solr search core). Maybe the problem is that you didn't define it in every place where it is needed. I think it has to be a search filter in addition to a facet in order to work. And maybe it has to be part of the hompageConfiguration and the defaultConfiguration. But I am not sure about that. Am 02.06.2015 um 14:51 schrieb Pablo Buenaposada: yes, I have reindex after the change in discovery.xml. The tag location.coll is the correct one to obtain the collection? -- View this message in context: http://dspace.2283337.n4.nabble.com/discovery-facet-by-collection-tp4678162p4678167.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Christian Scheible Softwareentwickler / Abt. Content-basierte Dienste Kommunikations-, Informations- und Medienzentrum (KIM) Universität Konstanz 78457 Konstanz +49 (0)7531 / 88-2857 Raum B 703 -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] discovery facet by collection
yes, I have reindex after the change in discovery.xml. The tag location.coll is the correct one to obtain the collection? -- View this message in context: http://dspace.2283337.n4.nabble.com/discovery-facet-by-collection-tp4678162p4678167.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette