Last active
November 12, 2016 22:45
-
-
Save umeshdangat/43b10532dc52c5d92c1a2d7aaf8c0d8c to your computer and use it in GitHub Desktop.
Index docs with binary field type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s -XPUT "http://localhost:9200/testindex/" -d '{ | |
"settings": { | |
"index.number_of_shards": 1, | |
"index.number_of_replicas": 0 | |
}, | |
"mappings": { | |
"test":{"_all":{"enabled":false}, | |
"properties":{ | |
"qa_data":{"type":"binary", "doc_values": true} | |
} | |
} | |
} | |
}' | |
curl -s -XPUT 'http://localhost:9200/testindex/test/3' -d '{ | |
"qa_data" : "AAAAAgAAAAAAAAP1P/AAAAAAAABAAAAAAAAAAAAAAAAAAAMqQCIAAAAAAABAMQAAAAAAAA==" | |
}' | |
curl -s -XPUT 'http://localhost:9200/testindex/test/4' -d '{ | |
"qa_data" : "AAAABgAAAAAAAAAAQBgAAAAAAABAKgAAAAAAAAAAAAAAAAABQCgAAAAAAABAMQAAAAAAAAAAAAAAAAACQAAAAAAAAABAMAAAAAAAAAAAAAAAAAADP/AAAAAAAAA/8AAAAAAAAAAAAAAAAAAEAAAAAAAAAABAFAAAAAAAAAAAAAAAAAAFP/AAAAAAAABAFAAAAAAAAA=="}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment