[flex] add search manager and fixed metadata code completion and imports.