updated opensearch to adapter interface