gkunter / coquery

Coquery is a free corpus query tool for linguists, lexicographers, translators, and anybody who wishes to search and analyse a text corpus.
GNU General Public License v3.0
18 stars 4 forks source link

Context functions fail with multiple queries if one of them returns NULL #196

Closed gkunter closed 7 years ago

gkunter commented 7 years ago

If there are more than one query, and if one of them fails and returns a new data frame consisting only of NAs, the context functions fail to return the requested context columns. Because of this, the context columns are also dropped when this new data frame is appended to the existing data frames.

gkunter commented 7 years ago

Test case: Buckeye corpus with Word as selected feature, a context of L3, R3 and the query strings

apple*
orange*
ananas*

This query returns only a word column, but no contexts. If ananas* is removed, the contexts are retrieved.