0
an suche ich den Index in Elasticsearch alsWie ein Inhalt eines Dokuments in Elasticsearch Index
this.client.CreateIndex("documents", c => c.Mappings(mp => mp.Map<DocUpload>
(m => m.Properties(ps => ps.Attachment
(a => a.Name(o => o.Document)
.TitleField(t => t.Name(x => x.Title).TermVector(TermVectorOption.WithPositionsOffsets))
)))));
die Anlage erstellt haben, ist base64 vor der Indizierung codiert. Ich kann keinen Inhalt in einem Dokument durchsuchen. Ist die base64-Codierung ein Problem? Kann mir bitte jemand helfen?
Browser Antwort ist wie
{
"documents": {
"aliases": {},
"mappings": {
"indexdocument": {
"properties": {
"document": {
"type": "attachment",
"fields": {
"content": {
"type": "string"
},
"author": {
"type": "string"
},
"title": {
"type": "string",
"term_vector": "with_positions_offsets"
},
"name": {
"type": "string"
},
"date": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
},
"keywords": {
"type": "string"
},
"content_type": {
"type": "string"
},
"content_length": {
"type": "integer"
},
"language": {
"type": "string"
}
}
},
"documentType": {
"type": "string"
},
"id": {
"type": "long"
},
"lastModifiedDate": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
},
"location": {
"type": "string"
},
"title": {
"type": "string"
}
}
}
},
"settings": {
"index": {
"creation_date": "1465193502636",
"number_of_shards": "5",
"number_of_replicas": "1",
"uuid": "5kCRvhmsQAGyndkswLhLrg",
"version": {
"created": "2030399"
}
}
},
"warmers": {}
}
}
Ich denke, dass etwas mit der Inhaltszuordnung nicht stimmt. Für mich ist es etwas wie [this] (http://s31.postimg.org/kulzmxom3/content_Mapping.png). Möglicherweise stimmt etwas nicht mit Ihrer Definition der Anhangsklasse. – ASN