ucdavisdatalab / citationSearch

R package for citation resolution using Solr
https://ucdavisdatalab.github.io/citationSearch/
0 stars 2 forks source link

improve search_construct_query function #4

Closed avkoehl closed 3 years ago

avkoehl commented 3 years ago

if field is a list of 1 with NULL value it still fails in if (nchar(trimws(field)) > 0) { }. This is because trimws and nchar will return empty vectors which lead to argument is of length zero error.

Also need to better handle cases of multiple entries for each field better