moved $where search update before DB quering
(cherry picked from commit b155a77bcf9551e28a8a4035801c141bd97aca23)
moved $count after DB and file results merge
(cherry picked from commit 7fa6b7b8971602640610c222942c52d64584079c)
Fix lexicon getList processor

changelog entry
Fix lexicon getList processor

Fixes #791 for 2.2.x branch

Merge branch 'pr/791' into release-2.2

* pr/791:
  Fix lexicon getList processor
  moved $count after DB and file results merge (cherry picked from commit 7fa6b7b8971602640610c222942c52d64584079c)
  moved $where search update before DB quering (cherry picked from commit b155a77bcf9551e28a8a4035801c141bd97aca23)

Conflicts:
	core/docs/changelog.txt