Query::toJSON() adds both the term and searchstring to the json data
if both are set. As setSearchString always initialized the term from
the string, this was typically true.
The executed query contained the conditions twice, and the serialized
document was overspecified.