EEXCESS / recommender

EEXCESS stands for: Enhancing Europe’s eXchange in Cultural Educational and Scientific reSources and is funded by the EU under GA No. 600601
http://eexcess.eu/
3 stars 4 forks source link

No results from Deutsche Digitale Bibliothek when query contains more than one keyword #37

Open schloett opened 8 years ago

schloett commented 8 years ago

I am not able to retrieve results from DDB when querying with more than one keyword, even when using two keywords from a result title which was retrieved with a single keyword. E.g. 5th result of query "weben" is "weberin beim weben", while "weberin weben" returns 0 results.

jr-dig-orgel commented 8 years ago

I have debugged this, and the problem is that the PR generates a wrong query. actual the queryGenerator is: "queryGeneratorClass": "eu.eexcess.partnerrecommender.reference.OrQueryGeneratorFieldTermConjunction",

and this generates queries like: https://api.deutsche-digitale-bibliothek.de/search?query=weben%2BOR%2Bweberin&rows=10&facet=place_fct

but it should be: https://api.deutsche-digitale-bibliothek.de/search?query=weben+Bweberin&rows=10&facet=place_fct as described in https://api.deutsche-digitale-bibliothek.de/doku/display/ADD/search#search-Request2