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)
 };
 private IIndex CreateExternalIndex()
 {
     return(new ContentElasticSearchIndex(Constants.UmbracoIndexes.ExternalIndexName,
                                          ElasticSearchConfig.GetConfig(Constants.UmbracoIndexes.ExternalIndexName),
                                          ProfilingLogger,
                                          new UmbracoFieldDefinitionCollection(),
                                          "standard",
                                          UmbracoIndexConfig.GetPublishedContentValueSetValidator(), true));
 }
 private IIndex CreateMemberIndex()
 {
     return(new MemberElasticSearchIndex(Constants.UmbracoIndexes.MembersIndexName,
                                         ElasticSearchConfig.GetConfig(Constants.UmbracoIndexes.ExternalIndexName),
                                         ProfilingLogger,
                                         new UmbracoFieldDefinitionCollection(),
                                         "standard",
                                         UmbracoIndexConfig.GetMemberValueSetValidator()));
 }
 private IIndex CreateInternalIndex()
 {
     return(new ContentElasticSearchIndex(Constants.UmbracoIndexes.InternalIndexName,
                                          ElasticSearchConfig.GetConfig(Constants.UmbracoIndexes.InternalIndexName),
                                          ProfilingLogger,
                                          new UmbracoFieldDefinitionCollection(),
                                          "whitespace",
                                          UmbracoIndexConfig.GetContentValueSetValidator()));
 }
Exemplo n.º 5
0
 private IIndex CreateElasticRecordIndex() => (IIndex) new UmbracoFormsElasticIndex("UmbracoFormsRecordsIndex",
                                                                                    ElasticSearchConfig.GetConfig("FormsConfig"),
                                                                                    new FieldDefinitionCollection(Enumerable.Empty <FieldDefinition>()), "simple");