IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Hello, world
editHello, world
editCreate a property mapping using the new type attachment
:
POST /trying-out-mapper-attachments { "mappings": { "person": { "properties": { "cv": { "type": "attachment" } }}}}
Index a new document populated with a base64
-encoded attachment:
POST /trying-out-mapper-attachments/person/1 { "cv": "e1xydGYxXGFuc2kNCkxvcmVtIGlwc3VtIGRvbG9yIHNpdCBhbWV0DQpccGFyIH0=" }
Search for the document using words in the attachment:
POST /trying-out-mapper-attachments/person/_search { "query": { "query_string": { "query": "ipsum" }}}
If you get a hit for your indexed document, the plugin should be installed and working.