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
6 stars 3 forks source link

Getting results in type ahead without requiring a space after a search term #131

Open sfolsom opened 5 years ago

sfolsom commented 5 years ago

For tracking purposes, please create a separate issue for each indexing improvement request.

We see this not just in AAT, but the test above should account for AAT, where we noticed it first.

elrayle commented 5 years ago

@sfolsom When I perform a search using the test in #130, I see the expected result as the first result.

-
    query: precious
    position: 5
    subject_uri: "http://vocab.getty.edu/aat/300011054"
    replacements:
      maxRecords: '10'

This translates to API request...

https://lookup.ld4l.org/authorities/search/linked_data/getty_aat_ld4l_cache?q=precious&maxRecords=4

with results...

[
  {"uri":"http://vocab.getty.edu/aat/300011054","id":"300011054","label":"precious metal"},
  {"uri":"http://vocab.getty.edu/aat/300133732","id":"300133732","label":"precious stone (material)"},
  {"uri":"http://vocab.getty.edu/aat/300266077","id":"300266077","label":"mitrae pretiosae"},
  {"uri":"http://vocab.getty.edu/aat/300011175","id":"300011175","label":"[semi-precious stone, semiprecious stone]"}
]

Did you run the accuracy test and it reported different results?

sfolsom commented 5 years ago

weird, control-F for 'precious' in the following doc to see the Sinopia screenshot: https://docs.google.com/document/d/1UxSeZ9xWpIZ__UxzMAtJGlXUrRzY-yZ3OukZNw2FDrg/edit?usp=sharing

sfolsom commented 5 years ago

for the needed extra space issue check out the screenshots for the Geonames searches in https://docs.google.com/document/d/1UxSeZ9xWpIZ__UxzMAtJGlXUrRzY-yZ3OukZNw2FDrg/edit?usp=sharing

elrayle commented 4 years ago

@sfolsom Can you review this issue and determine if it is still a problem? I believe this was an issue in Sinopia and not at QA or the cache.