draft version of search functionality; only search for binary values is implemented.
fixed: cannot save new documents