LD4P / qa_server

A rails engine with questioning authority gem installed to serve as an authority search server with normalized results.
Apache License 2.0
5 stars 2 forks source link

search doesn't always return the number of requested records #463

Closed elrayle closed 2 years ago

elrayle commented 2 years ago

Returns too few

(request 4, receive 3) https://lookup.ld4l.org/authorities/search/linked_data/agrovoc_ld4l_cache?q=melon%20seed&maxRecords=4&context=false

Same query with larger request (request 5, receive 4) https://lookup.ld4l.org/authorities/search/linked_data/agrovoc_ld4l_cache?q=melon%20seed&maxRecords=5&context=false

Returns too many

(request 4, receive 5) https://lookup.ld4l.org/authorities/search/linked_data/locnames_rwo3_ld4l_cache/organization?q=ACLU&maxRecords=4

Correct number

includes an exact match (request 4, receive 4) https://lookup.ld4l.org/authorities/search/linked_data/locnames_rwo3_ld4l_cache/organization?q=University%20of%20Pennsylvania&maxRecords=4

no exact match (request 4, receive 4) https://lookup.ld4l.org/authorities/search/linked_data/locgenres_ld4l_cache?q=animation&maxRecords=4&context=false

eichmann commented 2 years ago

D.A.V.E. now counts properly...

elrayle commented 2 years ago

Looks good! Thanks