[#92] Integrate smart search & clean unused code
This PR integrates the smart search API and drastically simplifies the search logic. It also removes unused code.
Please note that semantic search based on documents has been temporarily disabled until #91 (closed) is implemented.
