Unable to search attachment type field in an ElasticSearch indexed document -


Search does not return any results, though I have a document that must match the query.

I have installed the Allyx Search Mapper-Attachment plug-in, I have also browsed the topic as well as the same questions in the browsed stack overflow, but they have not received any response .

It is that I have typed in Windows 7 command prompt:

  c: \ Java \ elasticsearch-1.3.4> curl -XDELETE localhost: 9200 / TC { "Approved C: \ Java \ elasticsearch-1.3.4> Curl -XPUT Local Host: 9200 / TCE / {\" Contact \ ": {\" my_attachment \ ": {\" type \ ": \" Attachment \ " }}} {"Approved": true} c: \ Java \ elasticsearch-1.3.4> curl -XPUT localhost: 9200 / trace / contact / 1-D {\ "my_atta chment \": \ "SGVsbG8 = \" } {"_index": "tce", "_ type": "contact", "_ id": "1", "_version": 1, "created": true} c: \ Java \ elasticsearch-1.3. 4> Curl Localhost: 9200 / TCE / Copper "Total": 5, "Successful": 5, "Failed": 0}, "Hit": {"Total", "Total", "Total": "Total": "Total" "," _score ": 1.0," _source ": 1," max_core ": 1.0," hit ": [{" _index ":" tce "," _type ":" contact "," _id ":" 1 "," _source " {"My_attachment": "SGVsbG8 ="}}]}} c: \ Java \ elasticsearch-1.3.4> curl localhost: 9 0000 / TCE / contact / _ search? Beautiful- d {\ "query \": {\ False, "_shard": {"," successful ": 5," failed ": 0}," successful ":" "" "" "taken: 1," timed_out " Total ": 5," Successful "" Hit ": {" Total ": 0," Max_score ": Blank," Hit ": []}}  

Note that" Hello " Base 64 encoded value is "SGVsbG8 =", h The value entered in the "my_attachment" field of the document I

I believe that mapper-attachments plugin has no error in executing me above mapping command as has been properly positioned.

Any help would be greatly appreciated. my_attachment field

What is the analyst running?

If it is a standard analyzer (no one can see the list) then the lowercase will be created in the Hello index in the text.

that means when searching the word (which does not have an analyzer) - Hello

  curl localhost: 9200 / TCE / contact / _ Try searching for search - beautiful -d '{"query": {"my_attachment": "hello"}}}'  

You can also see that What posts have been added in the index:

  curl http: // localhost: 9200 / tce / contact / _search? {"Match_all": {}}, "script_fields": {"word": {"script": "doctor [field] .values", "params": {" Field ":" my_attachment "}}}} ' 

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -