temporary fix: only expand to the first 1023 terms to get around solr error "too many boolean clauses"