ONEMercury 'Author' filter not working on single names.
In production and stage, using an 'author' filter that is just a single name - 'Higgins', 'Kruger' - will not return any results. However the presence of these values in the filter control indicates there should be. Does not seem to effect complex names, for example on on-stage the author filter value 'CDEC California Data Exchange Center' works with no issues.
Unclear if the filter value itself is erroneous or if its the filter query at issue.
To reproduce, search on *. Find an author filter value with single word value like 'SANSPark' and click it. No results.
#3 Updated by Skye Roseboom almost 9 years ago
Single name author fields have a hardcoded " " (space) character present - to separate surname(space)givenName. However this space is present even when only a surname is provided.
Tested by searching on 'Higgins ' or 'Gibler ' and get results where searching on 'Higgins' does not return results.
Since the facet is building properly from the author value - we are losing the space in the query building.
Other possible solution is to trim the extra space from the author field when only a surname is present.
#5 Updated by Skye Roseboom almost 9 years ago
- File redmine2976.patch added
attaching file that fixes issue where simple xpath concat expression breaks when a 'creator' is defined with only a 'surname' (no firstName). XPath happily just finds the first element found and concats it with the first found regardless if they are different root elements.
Replaced with usage of the CommonRootSolrField which respects the concept of a common parent/root element (creator).