Ejemplo n.º 1
0
 class Meta:
     index = 'accesspoc_collections'
     dynamic = MetaField('strict')
Ejemplo n.º 2
0
 class Meta:
     doc_type = 'doc'
     all = MetaField(enabled=False)
     dynamic = MetaField('strict')
Ejemplo n.º 3
0
 class Meta:
     dynamic = MetaField('strict')
Ejemplo n.º 4
0
 class Meta:
     index = settings.ES_INDICES['publications_legacy']['alias']
     doc_type = settings.ES_INDICES['publications_legacy']['documents'][0]['name']
     dynamic = MetaField('strict')
Ejemplo n.º 5
0
 class Meta:
     dynamic = MetaField(False)
Ejemplo n.º 6
0
 class Meta:
     index = settings.ES_INDICES['project_entities']['name']
     doc_type = settings.ES_INDICES['project_entities']['documents'][0][
         'name']
     dynamic = MetaField('strict')
Ejemplo n.º 7
0
 class Meta:
     index = settings.ES_INDICES['files']['alias']
     doc_type = settings.ES_INDICES['files']['documents'][0]['name']
     dynamic = MetaField('strict')
 class Meta:
     name = 'page'
     doc_type = 'page'
     parent = MetaField(type='domain')
Ejemplo n.º 9
0
 class Meta:
     index = settings.ES_INDICES['rapid']['name']
     doc_type = settings.ES_INDICES['rapid']['documents'][1]['name']
     dynamic = MetaField('strict')
Ejemplo n.º 10
0
 class Meta:
     # disable the _all field to save some space
     all = MetaField(enabled=False)
Ejemplo n.º 11
0
 class Meta:
     """
     Use explicit data schema.
     Additional fields are stored but not indexed.
     """
     dynamic = MetaField(False)
Ejemplo n.º 12
0
 class Meta:
     dynamic = MetaField('strict')
     index = constants.FIELDS_INDEX
     using = ElasticInstance.get()
Ejemplo n.º 13
0
 class Meta:
     all = MetaField(store=True, analyzer=lowercase_analyzer, search_analyzer=lowercase_analyzer)
     index = OYE_RELEASES_INDEX
Ejemplo n.º 14
0
 class Meta:
     using = es_connection
     dynamic_templates = MetaField([
         # Can't get this to work
         # https://stackoverflow.com/questions/49740033/elasticsearch-6-copy-to-with-dynamic-index-mappings
         # {
         #     "strings":
         #         {
         #             "match_mapping_type": "string",
         #             "mapping": {
         #                 "type": "text",
         #                 "copy_all": "anytext"
         #             }
         #         }
         # },
         {
             "metadata_json":
                 {
                     "path_match": "metadata_json.identifier.identifier",
                     "match_mapping_type": "string",
                     "mapping": Keyword("not_analyzed")
                 }
         },
         {
             "metadata_json":
                 {
                     "path_match": "metadata_json.titles.title",
                     "match_mapping_type": "string",
                     "mapping": Text(fields={'raw': Keyword()}),
                 }
         },
         {
             "metadata_json":
                 {
                     "path_match": "metadata_json.subjects.subject",
                     "match_mapping_type": "string",
                     "mapping": Text(fields={'raw': Keyword()}),
                 }
         },
         {
             "metadata_json":
                 {
                     "path_match": "metadata_json.creators.creatorName",
                     "match_mapping_type": "string",
                     "mapping": Text(fields={'raw': Keyword()}),
                 }
         },
         {
             "metadata_json":
                 {
                     "path_match": "metadata_json.publicationYear",
                     "match_mapping_type": "string",
                     "mapping": Integer()
                 }
         },
         {
             "metadata_json":
                 {
                     "path_match": "metadata_json.publisher",
                     "match_mapping_type": "string",
                     "mapping": Text(fields={'raw': Keyword()}),
                 }
         },
         {
             "metadata_json":
                 {
                     "path_match": "metadata_json.dates.date",
                     "match_mapping_type": "string",
                     "mapping": DateRange()
                 }
         },
         {
             "metadata_json":
                 {
                     "path_match": "metadata_json.geoLocations.geoLocationBox",
                     "match_mapping_type": "string",
                     "mapping": GeoShape()
                 }
         },
         {
             "metadata_json":
                 {
                     "path_match": "metadata_json.geoLocations.geoLocationPoint",
                     "match_mapping_type": "string",
                     "mapping": GeoPoint()
                 }
         }
     ])
Ejemplo n.º 15
0
 class Meta:
     index = 'accesspoc_dips'
     dynamic = MetaField('strict')
Ejemplo n.º 16
0
 class Meta:
     timestamp = MetaField(enabled=True)
Ejemplo n.º 17
0
 class Meta:
     index = 'accesspoc_digital_files'
     dynamic = MetaField('strict')
Ejemplo n.º 18
0
 class Meta:
     model = Trackdb
     all = MetaField(enabled=False)
     dynamic = MetaField('false')
Ejemplo n.º 19
0
 class Meta:
     dynamic = MetaField('false')
Ejemplo n.º 20
0
 class Meta:
     doc_type = 'commits'
     index = 'git'
     parent = MetaField(type='repos')
Ejemplo n.º 21
0
 class Meta:
     index = settings.ES_INDICES['web_content']['name']
     doc_type = settings.ES_INDICES['web_content']['documents'][0]['name']
     dynamic = MetaField('strict')
Ejemplo n.º 22
0
 class Meta:
     dynamic_templates = MetaField(DYNAMIC_TEMPLATES)
Ejemplo n.º 23
0
 class Meta:
     # ignore fields if they don't exist in the mapping
     dynamic = MetaField("false")
Ejemplo n.º 24
0
 class Meta:
     date_detection = MetaField('false')
Ejemplo n.º 25
0
 class Meta:
     all = MetaField(enabled=False)
     doc_type = 'doc'
Ejemplo n.º 26
0
 class Meta:
     # 索引名称
     index = 'bodao'
     # type名称
     doc_type = 'es'
     all = MetaField(enabled=True)