[
https://jira.duraspace.org/browse/DS-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=25953#comment-25953
]
Nestor Oviedo commented on DS-1244:
-----------------------------------
I'm not sure what would be the right way with this issue. We thought the best
way to proceed would be to add the open-search match in the Discovery aspect,
but then we realised that, because of the aspect chain execution, the xml
serialized by discovery aspect must be a DRI compatible xml, and the one
generated by the open-search generator is not (we tested this).
A simple way to achieve this might be changing the root sitemap.xmap in order
to catch the "/open-search/discover" requests. This approach requires editing
the "websvc.opensearch.svccontext" config property.
So, the root sitemap.xmap would end up having the following open-search matches:
<!-- catch all open-search requests -->
<map:match pattern="open-search/**">
<!-- non-discovery request (backward compatible) -->
<map:match pattern="open-search/">
<map:generate type="OpenSearchGenerator"/>
</map:match>
<!-- discovery request -->
<map:match pattern="open-search/discover">
<map:generate type="DiscoveryOpenSearchGenerator"/>
</map:match>
<!-- common behaviour for discovery and non-discovery
request -->
....
....
</map:match>
The dspace.cfg file would have:
- without discovery, no need to make changes
websvc.opensearch.uicontext = simple-search
websvc.opensearch.svccontext = open-search/
- with discovery
websvc.opensearch.uicontext = discover
websvc.opensearch.svccontext = open-search/discover
I'd like to hear what you have to say about this issue. Any idea would be very
welcome
> OpenSearch not working as expected when Discovery is enabled
> ------------------------------------------------------------
>
> Key: DS-1244
> URL: https://jira.duraspace.org/browse/DS-1244
> Project: DSpace
> Issue Type: Bug
> Components: Discovery, DSpace API
> Affects Versions: 1.8.2, 3.0
> Reporter: Nestor Oviedo
> Labels: 404, Discovery, OpenSearch, open-search, simple-search
>
> We enabled the Discovery aspect (and disabled the SearchArtifact
> aspect). It seemed there were no problem until we try the OpenSearch
> service.
> There are two main problems here:
> 1) URL "/simple-search" returns a 404 error
> 2) URL "/open-search" is not using Solr services
> About problem 1, that value is defined in the
> "websvc.opensearch.uicontext" property (in dspace.cfg). The DSpace
> manual says it is for HTML requests and should be changed only for
> non-standard servlet mapping.
> As I can see, this property could be changed to "/discover" and the
> OpenSearch returning HTML pages with results would be working as
> expected.
> If this is true, maybe this situation could be added to the DSpace manual.
> About problem 2, I've seen the "/open-search" URL is matched in the
> main sitemap.xmap (the one located in
> <xmlui-webapp>/sitemap.xmap), and a special generator is
> invoked to make the search and to create the RSS/ATOM with the
> results.This special generator is
> org.dspace.app.xmlui.cocoon.OpenSearchGenerator .
> The problem here is that the search is made using the PostgreSQL index
> instead of the Solr services.
> I suspect a brand new generator should be created, which would use the
> Solr services for searching.
> We will be working on this. If anyone has some comment or suggest, it'd be
> very welcome.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.duraspace.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel