Opened 13 years ago
Last modified 13 years ago
#94 new defect
problem getting an individual record
Reported by: | vronk | Owned by: | ljo |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | MDRepository | Version: | |
Keywords: | Cc: |
Description
For some handles, the searchRetrieve-function does not work. It seems to have to do with the spec char '/' in the handle.
Let's take a handle: test-hdl:1839/00-0000-0000-0001-2C86-6
You can find it if searched with eq
:
http://demo.spraakdata.gu.se/clarin/cmd/model/stats?operation=searchRetrieve&query=//MdSelfLink%5B.%20eq%20%27test-hdl%3A1839%2F00-0000-0000-0001-2C86-6%27%5D
However you get nothing if asked with a ft:query
(MdSelfLink? is ft-indexed.):
http://demo.spraakdata.gu.se/clarin/cmd/model/stats?operation=searchRetrieve&query=//MdSelfLink%5Bft:query%28.,%27test-hdl%3A1839%2F00-0000-0000-0001-2c86-6%27%29%5D
(As ft:query
expects all lower-case, the characters in the handle (C
) were changed to lower-case.)
So the question is, how to encode the handle, to be able to find the records with ft:query
.
Interestingly the viennese-repository can retrieve the records correctly.
See via the MDService,
clarin.at
:http://clarin.aac.ac.at/MDService2/record/xml/test-hdl%3A1839%252F00-0000-0000-0003-A670-8?repository=1
compared to
gu.se
:http://clarin.aac.ac.at/MDService2/record/xml/test-hdl%3A1839%252F00-0000-0000-0003-A670-8?repository=2
Or directly
clarin.at
withft:query()
:http://clarin.aac.ac.at/exist/rest/db/clarin/cmd-model.xql?operation=searchRetrieve&query=//MdSelfLink%5Bft:query%28.,%27test-hdl\:1839/00-0000-0000-0003-a670-8%27%29%5D
gu.se
withft:query()
:http://demo.spraakdata.gu.se/clarin/cmd/model/stats?operation=searchRetrieve&query=//MdSelfLink%5Bft:query%28.,%27test-hdl\:1839/00-0000-0000-0003-a670-8%27%29%5D
gu.se
witheq
:http://demo.spraakdata.gu.se/clarin/cmd/model/stats?operation=searchRetrieve&query=//MdSelfLink%5B.%20eq%20%27test-hdl:1839/00-0000-0000-0003-A670-8%27%5D