Don't search in _river index but in destination index, which is `mydocs` in your case.
-- David Pilato | Technical Advocate | Elasticsearch.com @dadoonet | @elasticsearchfr Le 5 mars 2014 à 11:50:47, Nitesh Earkara (enit...@gmail.com) a écrit: Hi, I am trying to index files in my system using fsriver and then search them. But I'm not able to search them. Below is the steps performed. 1. Create a local fs river PUT /_river/mynewriver/_meta { "type": "fs", "fs": { "url": "C:\\Users\\ner\\Downloads\\TCS Docs\\Compenstion Letters\\", "update_rate": 3600000, "includes": [ "*.doc" , "*.xls", "*.pdf" ] }, "index": { "index": "mydocs", "type": "doc", "bulk_size": 50 } } 2. Check if river created or not GET /_river/mynewriver/_search 3. Search file POST /_river/mynewriver/_search { "query" : { "term" : { "file.filename" : "AnniversayLetter_20112012.pdf" } } } The last query for search retrieves result { "took": 1, "timed_out": false, "_shards": { "total": 1, "successful": 1, "failed": 0 }, "hits": { "total": 0, "max_score": null, "hits": [] } } It doesn't return the file details although file is present in folder Anyone has any idea???? -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local. For more options, visit https://groups.google.com/groups/opt_out.