swissbib / sruServer

SRU server based on the RESTLET framework (http://restlet.org/)
5 stars 0 forks source link

Make it possible to search with non-alphanumerical character #26

Open liowalter opened 7 years ago

liowalter commented 7 years ago

I would like to search the publication with the 035 field (NATIONALLICENCE)oxford-10.1093/intimm/1.1.11

This doesn't work : http://sru.swissbib.ch/sru/search/defaultdb?query=+dc.anywhere+exact+(NATIONALLICENCE)oxford-10.1093/intimm/1.1.11&operation=searchRetrieve&recordSchema=info%3Asrw%2Fschema%2F1%2Fmarcxml-v1.1-light&maximumRecords=10&startRecord=0&recordPacking=XML&availableDBs=defaultdb&sortKeys=Submit+query

Therefore, I remove all non-alphanumeric characters which gives this
http://sru.swissbib.ch/sru/search/defaultdb?query=+dc.anywhere+exact+NATIONALLICENCEoxford101093intimm1111&operation=searchRetrieve&recordSchema=info%3Asrw%2Fschema%2F1%2Fmarcxml-v1.1-light&maximumRecords=10&startRecord=0&recordPacking=XML&availableDBs=defaultdb&sortKeys=Submit+query

This return one record, but is not the good one. It is the record with 035 (NATIONALLICENCE)oxford-10.1093/intimm/11.1.1

basimar commented 7 years ago

Dear Lionel You are searching for this article, I suppose: https://doi.org/10.1093/intimm/1.1.11. I've tried searching for the article title and/or authors in swissbib, but can't find the record, which would explain why you can't find it using SRU.

Regards, Basil

liowalter commented 7 years ago

Dear Basil, Thanks for the hint. Indeed you are right ! But the problem remains :

I didn't manage to have an SRU query that gives 0 record for 10.1093/intimm/1.1.11 and one record for 10.1093/intimm/11.1.1

The advanced swissbib search gives also the wrong record for the second doi : https://www.swissbib.ch/Search/Results?sort=relevance&advancedSearchFormRequest=advancedSearchFormRequest&join=AND&bool0%5B%5D=AND&lookfor0%5B%5D=10.1093%2Fintimm%2F1.1.11&type0%5B%5D=ISN&lookfor0%5B%5D=&type0%5B%5D=AllFields&lookfor0%5B%5D=&type0%5B%5D=AllFields&daterange%5B%5D=publishDate&publishDatefrom=&publishDateto=&limit=20

I think that @guenterh is right. The problem is bound to SOLR.

swissbib-unibas commented 6 years ago

26