EG/TJ: use primaryQuery instead of luceneQuery
EG/TJ: executeJoinQuery -> search, matches Lucene interface.