コード例 #1
0
 public virtual IEnumerable <IIndex> Create() => (IEnumerable <IIndex>) new PdfElasticIndex[1]
 {
     new PdfElasticIndex("PDFIndex", ElasticSearchConfig.GetConfig("PDFIndex"), new FieldDefinitionCollection(
                             new FieldDefinition[1]
     {
         new FieldDefinition("fileTextContent", "fulltext")
     }), "standard", new PdfValueSetValidator(new int?()), false)
 };
コード例 #2
0
 private IIndex CreateExternalIndex()
 {
     return(new ContentElasticSearchIndex(Constants.UmbracoIndexes.ExternalIndexName,
                                          ElasticSearchConfig.GetConfig(Constants.UmbracoIndexes.ExternalIndexName),
                                          ProfilingLogger,
                                          new UmbracoFieldDefinitionCollection(),
                                          "standard",
                                          UmbracoIndexConfig.GetPublishedContentValueSetValidator(), true));
 }
コード例 #3
0
 private IIndex CreateMemberIndex()
 {
     return(new MemberElasticSearchIndex(Constants.UmbracoIndexes.MembersIndexName,
                                         ElasticSearchConfig.GetConfig(Constants.UmbracoIndexes.ExternalIndexName),
                                         ProfilingLogger,
                                         new UmbracoFieldDefinitionCollection(),
                                         "standard",
                                         UmbracoIndexConfig.GetMemberValueSetValidator()));
 }
コード例 #4
0
 private IIndex CreateInternalIndex()
 {
     return(new ContentElasticSearchIndex(Constants.UmbracoIndexes.InternalIndexName,
                                          ElasticSearchConfig.GetConfig(Constants.UmbracoIndexes.InternalIndexName),
                                          ProfilingLogger,
                                          new UmbracoFieldDefinitionCollection(),
                                          "whitespace",
                                          UmbracoIndexConfig.GetContentValueSetValidator()));
 }
コード例 #5
0
 private IIndex CreateElasticRecordIndex() => (IIndex) new UmbracoFormsElasticIndex("UmbracoFormsRecordsIndex",
                                                                                    ElasticSearchConfig.GetConfig("FormsConfig"),
                                                                                    new FieldDefinitionCollection(Enumerable.Empty <FieldDefinition>()), "simple");