Open andmor- opened 10 years ago
Fixed partially by making filtered search on links an exact search. also added the parameter "matchMode", so the search request may looks like one of the follows:
GET api/annotations?link=Sagrada&matchMode=contains GET api/annotations?link=http://nl.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia&matchMode=exact GET api/annotations?link=http://nl.wikipedia.org/wiki&matchMode=starts_with GET api/annotations?link=_Fam%C3%ADlia&matchMode=ends_with GET api/annotations?link=http://nl.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia
The default mode (the very last example) is exact.
fixing version deployed on lux16.
When searching for annotations referring to a certain target link, one uses a request in the format: https:////webannotator/api/annotations?access=read&link=59d08e6a-5cd9-4aed-8aa4-7074c270e635
Which performs a full text search on the value of the XPath node 'annotation/targets/targetInfo/link/text()'.
This creates some complications: