Hi
Im following this link to implement my first attachment script
After indexing if I run
http://localhost:9400/mytestatachment/person/1
I get
{"_index":"mytestatachment","_type":"person","_id":"1","_version":1,"found":true,"_source":{
"cv": "e1xydGYxXGFuc2kNCkxvcmVtIGlwc3VtIGRvbG9yIHNpdCBhbWV0DQpccGFyIH0="
}}
but with search Query
{
"query": {
"query_string": {
"query": "ipsum"
}}}
I'm not getting any result. Any configuration is missing with Base64?
dadoonet
(David Pilato)
January 8, 2016, 6:25am
4
Which versions are you using?
Elastisearch
{
"status" : 200,
"name" : "The Symbiote",
"cluster_name" : "elasticsearch",
"version" : {
"number" : "1.4.4",
"build_hash" : "c88f77ffc81301dfa9dfd81ca2232f09588bd512",
"build_timestamp" : "2015-02-19T13:05:36Z",
"build_snapshot" : false,
"lucene_version" : "4.10.3"
},
"tagline" : "You Know, for Search"
}
elasticsearch-mapper-attachments version --> 3.1.1
dadoonet
(David Pilato)
January 8, 2016, 9:08am
6
1 Like
Yes it works !! But the result is in base64, any option to show the actual text or should I have to read the file and show?
{
"took": 9,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 2,
"max_score": 0.095891505,
"hits": [
{
"_index": "mytestatachment",
"_type": "person",
"_id": "4",
"_score": 0.095891505,
"_source": {
"cv": "e1xydGYxXGFuc2kNCkxvcmVtIGlwc3VtIGRvbG9yIHNpdCBhbWV0DQpccGFyIH0="
}
},
{
"_index": "mytestatachment",
"_type": "person",
"_id": "2",
"_score": 0.095891505,
"_source": {
"cv": "e1xydGYxXGFuc2kNCkxvcmVtIGlwc3VtIGRvbG9yIHNpdCBhbWV0DQpccGFyIH0="
}
}
]
}
}
dadoonet
(David Pilato)
January 8, 2016, 10:37am
8
1 Like
Yes this works for me !! Thank you.