Closed RandyCupic closed 3 years ago
Fantastic 😄
Do you have time to add some tests? From my POV it would be OK to use existing fields as extra fields.
I just realized, we need to migrate CI from Travis to GitHub Actions to get the tests running again. If you are up for it, it was already migrated on Site API repo, otherwise I can take care of it, will probably have time tomorrow morning.
@pspanja Will do :)
@pspanja I've adjusted existing tests, wrote a new test for extra fields functionality and wrote some documentation for it.
Sorry for the delay on this, it was a bit busy period.. it looks great overall, I found just one minor bug and a language nitpick.
Sorry for the delay on this, it was a bit busy period.. it looks great overall, I found just one minor bug and a language nitpick.
No problem :) I've fixed the bug and the language nitpick.
Thanks @RandyCupic 👍
Currently it's not possible to fetch additional Solr fields during content search (eg. if we indexed some additional data with the document field mapper). With this PR, we can use our overridden query and provide the list of extra fields that we want to extract from Solr documents. Those fields, if exist, will appear in our overridden SearchHit.