linked-swissbib / vufind

A library resource discovery portal designed and developed for libraries by libraries
GNU General Public License v2.0
1 stars 2 forks source link

Definition of fields to search #9

Closed ltog closed 8 years ago

ltog commented 9 years ago

@guenterh

I'm referring to http://localhost/sbrd/Exploration/Author?lookfor=hello . I do not understand where we define, in which fields (e.g. foaf:lastName or rdfs:label) we want to search.

I would like to adjust this for the ExploreAuthor controller.

guenterh commented 9 years ago

Hi Lukas, I will give you a response in the course of this morning

guenterh commented 9 years ago

@ltog @marahellstern

Hi Lukas, if you are going to use the request http://localhost/vflinked/Exploration/authorDetails?lookfor=johann%20wolfgang%20goethe&type=Contributor the Backend will create a query against ES using the defined search for Contributor in https://github.com/linked-swissbib/vufind/blob/vfsb/linked/local/config/vufind/searchspecsES.yaml

Only the fields for the embedded contributor will be used. Not the additional ones defined for AllFields.

You can debug this mechanism https://github.com/linked-swissbib/vufind/blob/vfsb/linked/module/LinkedSwissbib/src/LinkedSwissbib/Backend/Elasticsearch/Backend.php#L104

My aim is to use phpUnit Tests for this. Therefor the Travis integration I have done yesterday for the two VuFind projects under the github domains of swissbib and linked-swissbib. But I need more time to finsh this methods and complete the infrastructure.

Back to your question how to define a request for authors: the proposal lookfor=johann%20wolfgang%20goethe&type=Contributor is just one alternative. Another possibility would be to use something like
http://localhost/vflinked/Exploration/authorDetails?name=wolfgang Goethe where the controller could have the knowledge to set the missing Type parameter for the backend. I think we should go for the moment with one of several alternatives. Otherwise we will get lost....

The problem for you (Chur) at the moment is, that we are still working heavily providing the necessary data (Genf, Köln, Basel). Things are changing and/or evolving constantly. But we have to cope with it.

Günter

@sschuepbach for info