Skip to content

Noref/process inner hits properties bug#755

Open
danamansana wants to merge 2 commits into
mainfrom
NOREF/processInnerHitsPropertiesBug
Open

Noref/process inner hits properties bug#755
danamansana wants to merge 2 commits into
mainfrom
NOREF/processInnerHitsPropertiesBug

Conversation

@danamansana

Copy link
Copy Markdown
Contributor

This addresses an error message we've seen in the logs where hit._source.items.sort is undefined, by adding a check of hit._source.items

Also, previously the sort was applied before adding the inner_hits, which seems wrong, so I've moved the sort to after adding inner_hits, but let me know if anyone knows a reason why it was done in the other order

@charmingduchess charmingduchess left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks alright, tho i'm not totally clear on the cause. Was this erroring on bibs with no items? or on results with no bibs?

@nonword nonword left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a logical move, but also seems like this means we weren't actually sorting previously, so let's look at item sort changes during QA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants