public QnAController() { ElasticSearchEnvInfo envInfo = new ElasticSearchEnvInfo() { SearchUrl = "http://hynamick-qa.chinacloudapp.cn/api/search", SearchSource = "hwfaq" }; this.qnaProvider = new QnAProviderElasticSearchImpl(envInfo); this.answerFormatter = new SimpleAnswerFormatter(); }
public QnAProviderElasticSearchImpl(ElasticSearchEnvInfo envInfo) { this.envInfo = envInfo; }