Open tfmorris opened 5 years ago
Yes, timing is a definite factor. After creating the new work and author records, further works cannot be linked to that author record until it has been indexed, which may take many minutes. A new contributor unfamiliar with the behavior will think that the author record was never created, often resulting in duplication.
Here's an older example. Two records that ImportBot created within 7 seconds back in 2008 for an author who already had a record:
{"name": "Grieg Marshall Spankie", "last_modified": {"type": "/type/datetime", "value": "
2008-04-30 09:38:13.731961
"}, "key": "/authors/OL3374795A", "type": {"key": "/type/author"}, "id": 13517871, "revision": 1}
{"name": "Grieg M. Spankie", "personal_name": "Grieg M. Spankie", "last_modified": {"type": "/type/datetime", "value": "
2008-09-16 18:45:08.660598
"}, "key": "/authors/OL4754134A", "type": {"key": "/type/author"}, "id": 20497658, "revision": 1}
{"name": "Grieg M. Spankie", "personal_name": "Grieg M. Spankie", "last_modified": {"type": "/type/datetime", "value": "
2008-09-16 18:45:15.392316
"}, "key": "/authors/OL4754143A", "type": {"key": "/type/author"}, "id": 20497692, "revision": 1}
Making this a sub-task of #789. Assigning @cdrini per slack discussions.
Description
It's a relatively common occurrence to come across OpenLibrary search listings which contain authors which have 0 works listed even though they have at least one work listed when you click through to their author record.
It occurred to me today that this is likely because the author entries are created by searching the Solr index, which likely hasn't yet been populated if both the work and author are getting added at the same time (as is likely with a new author's first book).
Relevant url?
https://openlibrary.org/search/authors.json?q=Brandon+Hobson&mode=everything http://openlibrary.org/authors/OL7444218A.json
Expectation
All authors, including newly added authors, are indexed correctly.
Proposal
We can do one of two things:
I think I prefer the first approach.