[ 
https://jira.duraspace.org/browse/DS-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=27212#comment-27212
 ] 

João Melo commented on DS-1414:
-------------------------------

Ok. Now merged: https://github.com/DSpace/DSpace/pull/149
                
> OpenAIRE and Driver OAI does not work
> -------------------------------------
>
>                 Key: DS-1414
>                 URL: https://jira.duraspace.org/browse/DS-1414
>             Project: DSpace
>          Issue Type: Bug
>          Components: OAI-PMH
>    Affects Versions: 3.0
>         Environment: Standard DSpace installation with three test items
>            Reporter: Juan Corrales Correyero
>            Assignee: João Melo
>            Priority: Major
>              Labels: oai, oai-contexts
>             Fix For: 3.1
>
>         Attachments: 
> 0001-xoai.xml-file-corrected-for-MetadataExistsFilter.patch
>
>   Original Estimate: 1 week
>  Remaining Estimate: 1 week
>
> I have one item compatible with driver and openaire and two not compatible.
> The question 
> http://localhost:8080/oai/driver?verb=ListRecords&metadataPrefix=oai_dc 
> returns "No matches for the query" because the sorl query generated is
> http://localhost:8080/solr/oai/select?q=((())) AND ((())) AND 
> (((metadata.dc.type:*article) OR (metadata.dc.type:*bachelorThesis) OR 
> (metadata.dc.type:*masterThesis) OR (metadata.dc.type:*doctoralThesis) OR 
> (metadata.dc.type:*book) OR (metadata.dc.type:*bookPart) OR 
> (metadata.dc.type:*review) OR (metadata.dc.type:*conferenceObject) OR 
> (metadata.dc.type:*lecture) OR (metadata.dc.type:*workingPaper) OR 
> (metadata.dc.type:*preprint) OR (metadata.dc.type:*report) OR 
> (metadata.dc.type:*annotation) OR 
> (metadata.dc.type:*contributionToPeriodical) OR (metadata.dc.type:*patent) OR 
> (metadata.dc.type:*other))) AND (((metadata.dc.rights:*open\ access*) OR 
> (metadata.dc.rights:*openAccess*))) AND ((item.public:true))
> I have the right results when the solr query is changed to 
> http://localhost:8080/solr/oai/select?q=(((metadata.dc.type:*article) OR 
> (metadata.dc.type:*bachelorThesis) OR (metadata.dc.type:*masterThesis) OR 
> (metadata.dc.type:*doctoralThesis) OR (metadata.dc.type:*book) OR 
> (metadata.dc.type:*bookPart) OR (metadata.dc.type:*review) OR 
> (metadata.dc.type:*conferenceObject) OR (metadata.dc.type:*lecture) OR 
> (metadata.dc.type:*workingPaper) OR (metadata.dc.type:*preprint) OR 
> (metadata.dc.type:*report) OR (metadata.dc.type:*annotation) OR 
> (metadata.dc.type:*contributionToPeriodical) OR (metadata.dc.type:*patent) OR 
> (metadata.dc.type:*other))) AND (((metadata.dc.rights:*open\ access*) OR 
> (metadata.dc.rights:*openAccess*))) AND ((item.public:true))
> There are the tomcat logs:
> dic 06, 2012 8:53:59 AM org.apache.solr.common.SolrException log
> SEVERE: org.apache.solr.common.SolrException: 
> org.apache.lucene.queryParser.ParseException: Cannot parse '((())) AND ((())) 
> AND (((metadata.dc.type:*article) OR (metadata.dc.type:*bachelorThesis) OR 
> (metadata.dc.type:*masterThesis) OR (metadata.dc.type:*doctoralThesis) OR 
> (metadata.dc.type:*book) OR (metadata.dc.type:*bookPart) OR 
> (metadata.dc.type:*review) OR (metadata.dc.type:*conferenceObject) OR 
> (metadata.dc.type:*lecture) OR (metadata.dc.type:*workingPaper) OR 
> (metadata.dc.type:*preprint) OR (metadata.dc.type:*report) OR 
> (metadata.dc.type:*annotation) OR 
> (metadata.dc.type:*contributionToPeriodical) OR (metadata.dc.type:*patent) OR 
> (metadata.dc.type:*other))) AND (((metadata.dc.rights:*open\ access*) OR 
> (metadata.dc.rights:*openAccess*))) AND ((item.public:true))': Encountered " 
> ")" ") "" at line 1, column 3.
> Was expecting one of:
>     <NOT> ...
>     "+" ...
>     "-" ...
>     "(" ...
>     "*" ...
>     <QUOTED> ...
>     <TERM> ...
>     <PREFIXTERM> ...
>     <WILDTERM> ...
>     "[" ...
>     "{" ...
>     <NUMBER> ...
>     <TERM> ...
>     "*" ...
>     
>         at 
> org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:125)
>         at 
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:173)
>         at 
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
>         at org.apache.solr.core.SolrCore.execute(SolrCore.java:1372)
>         at 
> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356)
>         at 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at 
> org.dspace.solr.filters.LocalHostRestrictionFilter.doFilter(LocalHostRestrictionFilter.java:60)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>         at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>         at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>         at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>         at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
>         at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
>         at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
>         at 
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>         at java.lang.Thread.run(Thread.java:722)
> Caused by: org.apache.lucene.queryParser.ParseException: Cannot parse '((())) 
> AND ((())) AND (((metadata.dc.type:*article) OR 
> (metadata.dc.type:*bachelorThesis) OR (metadata.dc.type:*masterThesis) OR 
> (metadata.dc.type:*doctoralThesis) OR (metadata.dc.type:*book) OR 
> (metadata.dc.type:*bookPart) OR (metadata.dc.type:*review) OR 
> (metadata.dc.type:*conferenceObject) OR (metadata.dc.type:*lecture) OR 
> (metadata.dc.type:*workingPaper) OR (metadata.dc.type:*preprint) OR 
> (metadata.dc.type:*report) OR (metadata.dc.type:*annotation) OR 
> (metadata.dc.type:*contributionToPeriodical) OR (metadata.dc.type:*patent) OR 
> (metadata.dc.type:*other))) AND (((metadata.dc.rights:*open\ access*) OR 
> (metadata.dc.rights:*openAccess*))) AND ((item.public:true))': Encountered " 
> ")" ") "" at line 1, column 3.
> Was expecting one of:
>     <NOT> ...
>     "+" ...
>     "-" ...
>     "(" ...
>     "*" ...
>     <QUOTED> ...
>     <TERM> ...
>     <PREFIXTERM> ...
>     <WILDTERM> ...
>     "[" ...
>     "{" ...
>     <NUMBER> ...
>     <TERM> ...
>     "*" ...
>     
>         at 
> org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:211)
>         at 
> org.apache.solr.search.LuceneQParser.parse(LuceneQParserPlugin.java:80)
>         at org.apache.solr.search.QParser.getQuery(QParser.java:142)
>         at 
> org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:101)
>         ... 20 more
> Caused by: org.apache.lucene.queryParser.ParseException: Encountered " ")" ") 
> "" at line 1, column 3.
> Was expecting one of:
>     <NOT> ...
>     "+" ...
>     "-" ...
>     "(" ...
>     "*" ...
>     <QUOTED> ...
>     <TERM> ...
>     <PREFIXTERM> ...
>     <WILDTERM> ...
>     "[" ...
>     "{" ...
>     <NUMBER> ...
>     <TERM> ...
>     "*" ...
>     
>         at 
> org.apache.lucene.queryParser.QueryParser.generateParseException(QueryParser.java:1818)
>         at 
> org.apache.lucene.queryParser.QueryParser.jj_consume_token(QueryParser.java:1700)
>         at 
> org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1327)
>         at 
> org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1237)
>         at 
> org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1313)
>         at 
> org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1237)
>         at 
> org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1313)
>         at 
> org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1237)
>         at 
> org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1313)
>         at 
> org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1237)
>         at 
> org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1226)
>         at 
> org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:206)
>         ... 23 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to