Example #1
0
        public TH CreateIndexByConnStr <T, TH>(string ConnStr, string coreIndex)
            where T : Entity
            where TH : IIndex <T>
        {
            var contextObj = BuildSolrServer <T> .CreateSolrServer(ConnStr, coreIndex, _SIndexSettings.Value.indexType);

            return(_createIndex.Get <TH>(new object[] { contextObj }));
        }
Example #2
0
        public TH CreateDefaultIndex <T, TH>(string coreIndex)
            where TH : IIndex <T>
            where T : Entity
        {
            var contextObj = BuildSolrServer <T> .CreateSolrServer(_SIndexSettings.Value.defaultConnectionString, coreIndex, _SIndexSettings.Value.indexType);

            return(_createIndex.Get <TH>(new object[] { contextObj }));
        }