I need some clarification as to how this works… According to the lab, I am modifying the Events Array to a key value pair. I am also accounting for the date the piece was acquired.
Where I am confused is the original schema has the event as a name and date pair. So… logically this would be kept in the key value pairing right?
The answer that validates is the following code
“events”: [
{ "k":"<string>", "v": "<date>"},
{ "k":"<string>", "v": "<date>"}
]
}
While I understand this, where I am confused is that I am also supposed to account for the acquisition date… Logically wouldn’t this be a different date than the event date? If so… Wouldn’t you need another key value pair to account for the acquisition date?
so it would be
“events”: [
{ “k”: “” , “v”: “”, “date_acquisition”: “”}
{ “k”: “” , “v”: “”, “date_acquisition”: “”}
This would allow for the event name to be searched, the date of the event, and the acquisition date like the lab asks for right? There should be two dates indexed… One for the event, and one for the date the item was acquisitioned.
Thoughts?
lab directions are written so you would think you need two dates for each event.
- use a single index on all event dates.
- transform the field that tracks the date when a piece was acquired, date_acquisition, so that it is also indexed with the values above.
Instead of the key “date_acquisitioned” you can also write is as just “a”: “”