# Index files using FsRiver

**URL:** <https://discuss.elastic.co/t/index-files-using-fsriver/16169>\
**Category:** Elasticsearch\
**Created:** [March 5, 2014, 10:50am UTC](https://discuss.elastic.co/t/index-files-using-fsriver/16169 "2014-03-05T10:50:42Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nitesh\_Earkara](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@Nitesh\_Earkara](https://discuss.elastic.co/u/Nitesh_Earkara)\
**Post date:** [March 5, 2014, 10:50am UTC](https://discuss.elastic.co/t/index-files-using-fsriver/16169/1 "2014-03-05T10:50:42Z")

</div>

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  
}  
}

1. Check if river created or not

GET /\_river/mynewriver/\_search

1. 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com](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](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 5, 2014, 4:50pm UTC](https://discuss.elastic.co/t/index-files-using-fsriver/16169/2 "2014-03-05T16:50:11Z")

</div>

Don't search in \_river index but in destination index, which is `mydocs` in your case.

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 5 mars 2014 à 11:50:47, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@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  
}  
}

1. Check if river created or not

GET /\_river/mynewriver/\_search

1. 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com](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](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@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](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](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Nitesh\_Earkara](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@Nitesh\_Earkara](https://discuss.elastic.co/u/Nitesh_Earkara)\
**Post date:** [March 5, 2014, 4:58pm UTC](https://discuss.elastic.co/t/index-files-using-fsriver/16169/3 "2014-03-05T16:58:45Z")

</div>

Even that gave me same results

Thanks & Regards,  
Nithesh Erakkara  
Phone :- +91-9833-742-684  
Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)

> On 5 Mar 2014, at 22:20, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> Don't search in \_river index but in destination index, which is `mydocs` in your case.
> 
> --  
> David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> @dadoonet | @elasticsearchfr
> 
> > Le 5 mars 2014 à 11:50:47, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@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  
> > }  
> > }
> > 
> > 1. Check if river created or not
> > 
> > GET /\_river/mynewriver/\_search
> > 
> > 1. 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com](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](https://groups.google.com/groups/opt_out).  
> > --  
> > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@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](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](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 5, 2014, 5:40pm UTC](https://discuss.elastic.co/t/index-files-using-fsriver/16169/4 "2014-03-05T17:40:28Z")

</div>

Are U using an old version of fsriver?

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 5 mars 2014 à 17:58:54, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:

Even that gave me same results

Thanks & Regards,  
Nithesh Erakkara  
Phone :- +91-9833-742-684  
Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)

On 5 Mar 2014, at 22:20, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

Don't search in \_river index but in destination index, which is `mydocs` in your case.

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 5 mars 2014 à 11:50:47, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@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  
}  
}

1. Check if river created or not

GET /\_river/mynewriver/\_search

1. 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com). To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com](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](https://groups.google.com/groups/opt_out).

## You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group. To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe). To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@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](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](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Nitesh\_Earkara](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@Nitesh\_Earkara](https://discuss.elastic.co/u/Nitesh_Earkara)\
**Post date:** [March 6, 2014, 4:59am UTC](https://discuss.elastic.co/t/index-files-using-fsriver/16169/5 "2014-03-06T04:59:33Z")

</div>

Hi David,

I am using version 0.4.0

On 5 March 2014 23:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Are U using an old version of fsriver?
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> 
> Le 5 mars 2014 à 17:58:54, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:
> 
> Even that gave me same results
> 
> Thanks & Regards,
> 
> _Nithesh Erakkara_
> 
> Phone :- +91-9833-742-684
> 
> Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)
> 
> On 5 Mar 2014, at 22:20, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> Don't search in \_river index but in destination index, which is  
> `mydocs` in your case.
> 
> ```
> --
> 
> ```
> 
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> [http://Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> 
> Le 5 mars 2014 à 11:50:47, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@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  
> }  
> }
> 
> 1. Check if river created or not
> 
> GET /\_river/mynewriver/\_search
> 
> 1. 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@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](https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com)[https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Thanks & Regards,  
Nithesh Erakkara  
[enitesh@gmail.com](mailto:enitesh@gmail.com)  
+919833742684

--  
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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nbpowuAZ7Qha-on59zy1qyc553Ar%3D9h%3DNu8CKdBLRDUzA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nbpowuAZ7Qha-on59zy1qyc553Ar%3D9h%3DNu8CKdBLRDUzA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Nitesh\_Earkara](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@Nitesh\_Earkara](https://discuss.elastic.co/u/Nitesh_Earkara)\
**Post date:** [March 6, 2014, 5:02am UTC](https://discuss.elastic.co/t/index-files-using-fsriver/16169/6 "2014-03-06T05:02:09Z")

</div>

And if I run query

GET /\_river/mydocs/\_meta

I get result

{  
"\_index": "\_river",  
"\_type": "mydocs",  
"\_id": "\_meta",  
"found": false  
}

On 6 March 2014 10:29, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:

> Hi David,
> 
> I am using version 0.4.0
> 
> On 5 March 2014 23:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > Are U using an old version of fsriver?
> > 
> > --  
> > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> > 
> > Le 5 mars 2014 à 17:58:54, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:
> > 
> > Even that gave me same results
> > 
> > Thanks & Regards,
> > 
> > _Nithesh Erakkara_
> > 
> > Phone :- +91-9833-742-684
> > 
> > Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)
> > 
> > On 5 Mar 2014, at 22:20, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > 
> > Don't search in \_river index but in destination index, which is  
> > `mydocs` in your case.
> > 
> > ```
> > --
> > 
> > ```
> > 
> > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> > [http://Elasticsearch.com](http://Elasticsearch.com)_  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> > 
> > Le 5 mars 2014 à 11:50:47, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@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  
> > }  
> > }
> > 
> > 1. Check if river created or not
> > 
> > GET /\_river/mynewriver/\_search
> > 
> > 1. 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@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](https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com)[https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> Thanks & Regards,  
> Nithesh Erakkara  
> [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> +919833742684

--  
Thanks & Regards,  
Nithesh Erakkara  
[enitesh@gmail.com](mailto:enitesh@gmail.com)  
+919833742684

--  
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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY75TBb0oxXiHU92wsfPzdvUDBEnwzA76MV9T-6Bq1utw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY75TBb0oxXiHU92wsfPzdvUDBEnwzA76MV9T-6Bq1utw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Nitesh\_Earkara](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@Nitesh\_Earkara](https://discuss.elastic.co/u/Nitesh_Earkara)\
**Post date:** [March 6, 2014, 5:31am UTC](https://discuss.elastic.co/t/index-files-using-fsriver/16169/7 "2014-03-06T05:31:47Z")

</div>

My Elasticsearch server window shows below things displayed

[2014-03-05 17:21:22,782][INFO][node] [Frank Payne]  
versio  
n[1.0.1], pid[4896], build[5c03844/2014-02-25T15:52:53Z]  
[2014-03-05 17:21:22,784][INFO][node] [Frank Payne]  
initia  
lizing ...  
[2014-03-05 17:21:23,697][INFO][plugins] [Frank Payne]  
loaded  
[jdbc-river, river-fs], sites   
[2014-03-05 17:21:31,848][INFO][node] [Frank Payne]  
initia  
lized  
[2014-03-05 17:21:31,848][INFO][node] [Frank Payne]  
starti  
ng ...  
[2014-03-05 17:21:32,308][INFO][transport] [Frank Payne]  
bound\_  
address {inet[/0:0:0:0:0:0:0:0:9301]}, publish\_address {inet[/  
192.9.205.37:9301]  
}  
[2014-03-05 17:21:35,669][INFO][cluster.service] [Frank Payne]  
detect  
ed\_master [Mad Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/  
192.9.205.37:  
9300]], added {[Mad  
Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.20  
5.37:9300]],}, reason: zen-disco-receive(from master [[Mad  
Thinker][5SmeADN9SYex  
_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.205.37:9300]]])  
[2014-03-05 17:21:35,725][INFO][discovery] [Frank Payne]  
elasti  
csearch/A8mG-X4\_S3KPLnQj9gPLfg  
[2014-03-05 17:21:35,822][INFO][http] [Frank Payne]  
bound_  
address {inet[/0:0:0:0:0:0:0:0:9201]}, publish\_address {inet[/  
192.9.205.37:9201]  
}  
[2014-03-05 17:21:35,826][INFO][node] [Frank Payne]  
starte  
d  
[2014-03-05 17:22:07,045][INFO  
][fr.pilato.elasticsearch.river.fs.river.FsRiver]  
[Frank Payne] [fs][mynewriver] Starting fs river scanning  
[2014-03-05 17:22:07,062][WARN][river] [Frank Payne]  
failed  
to get \_meta from [fs]/[mynewriver]  
java.lang.NoSuchMethodError:  
org.elasticsearch.action.admin.cluster.state.Cluste  
rStateRequestBuilder.setFilterIndices([Ljava/lang/String;)Lorg/elasticsearch/act  
ion/admin/cluster/state/ClusterStateRequestBuilder;  
at  
fr.pilato.elasticsearch.river.fs.river.FsRiver.isMappingExist(FsRiver  
.java:300)  
at  
fr.pilato.elasticsearch.river.fs.river.FsRiver.pushMapping(FsRiver.ja  
va:315)  
at  
fr.pilato.elasticsearch.river.fs.river.FsRiver.start(FsRiver.java:229  
)  
at  
org.elasticsearch.river.RiversService.createRiver(RiversService.java:  
148)  
at  
org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
Service.java:275)  
at  
org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
Service.java:269)  
at  
org.elasticsearch.action.support.TransportAction$ThreadedActionListen  
er$1.run(TransportAction.java:93)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown  
Source)  
at java.lang.Thread.run(Unknown Source)

On 6 March 2014 10:32, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:

> And if I run query
> 
> GET /\_river/mydocs/\_meta
> 
> I get result
> 
> {  
> "\_index": "\_river",  
> "\_type": "mydocs",  
> "\_id": "\_meta",  
> "found": false  
> }
> 
> On 6 March 2014 10:29, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:
> 
> > Hi David,
> > 
> > I am using version 0.4.0
> > 
> > On 5 March 2014 23:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > 
> > > Are U using an old version of fsriver?
> > > 
> > > --  
> > > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> > > 
> > > Le 5 mars 2014 à 17:58:54, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:
> > > 
> > > Even that gave me same results
> > > 
> > > Thanks & Regards,
> > > 
> > > _Nithesh Erakkara_
> > > 
> > > Phone :- +91-9833-742-684
> > > 
> > > Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)
> > > 
> > > On 5 Mar 2014, at 22:20, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > 
> > > Don't search in \_river index but in destination index, which is  
> > > `mydocs` in your case.
> > > 
> > > ```
> > > --
> > > 
> > > ```
> > > 
> > > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> > > [http://Elasticsearch.com](http://Elasticsearch.com)_  
> > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> > > 
> > > Le 5 mars 2014 à 11:50:47, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@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  
> > > }  
> > > }
> > > 
> > > 1. Check if river created or not
> > > 
> > > GET /\_river/mynewriver/\_search
> > > 
> > > 1. 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > You received this message because you are subscribed to a topic in the  
> > > Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit  
> > > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> > > To unsubscribe from this group and all its topics, send an email to  
> > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@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](https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com)[https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com?utm_medium=email&utm_source=footer)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > You received this message because you are subscribed to a topic in the  
> > > Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit  
> > > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> > > To unsubscribe from this group and all its topics, send an email to  
> > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > Thanks & Regards,  
> > Nithesh Erakkara  
> > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > +919833742684
> 
> --  
> Thanks & Regards,  
> Nithesh Erakkara  
> [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> +919833742684

--  
Thanks & Regards,  
Nithesh Erakkara  
[enitesh@gmail.com](mailto:enitesh@gmail.com)  
+919833742684

--  
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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O\_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 6, 2014, 6:38am UTC](https://discuss.elastic.co/t/index-files-using-fsriver/16169/8 "2014-03-06T06:38:26Z")

</div>

Fsriver has not been released yet for es 1.0.

I will do it soonish.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 6 mars 2014 à 06:31, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) a écrit :

My Elasticsearch server window shows below things displayed

[2014-03-05 17:21:22,782][INFO][node] [Frank Payne] versio  
n[1.0.1], pid[4896], build[5c03844/2014-02-25T15:52:53Z]  
[2014-03-05 17:21:22,784][INFO][node] [Frank Payne] initia  
lizing ...  
[2014-03-05 17:21:23,697][INFO][plugins] [Frank Payne] loaded  
[jdbc-river, river-fs], sites   
[2014-03-05 17:21:31,848][INFO][node] [Frank Payne] initia  
lized  
[2014-03-05 17:21:31,848][INFO][node] [Frank Payne] starti  
ng ...  
[2014-03-05 17:21:32,308][INFO][transport] [Frank Payne] bound\_  
address {inet[/0:0:0:0:0:0:0:0:9301]}, publish\_address {inet[/192.9.205.37:9301]  
}  
[2014-03-05 17:21:35,669][INFO][cluster.service] [Frank Payne] detect  
ed\_master [Mad Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.205.37:  
9300]], added {[Mad Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.20  
5.37:9300]],}, reason: zen-disco-receive(from master [[Mad Thinker][5SmeADN9SYex  
_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.205.37:9300]]])  
[2014-03-05 17:21:35,725][INFO][discovery] [Frank Payne] elasti  
csearch/A8mG-X4\_S3KPLnQj9gPLfg  
[2014-03-05 17:21:35,822][INFO][http] [Frank Payne] bound_  
address {inet[/0:0:0:0:0:0:0:0:9201]}, publish\_address {inet[/192.9.205.37:9201]  
}  
[2014-03-05 17:21:35,826][INFO][node] [Frank Payne] starte  
d  
[2014-03-05 17:22:07,045][INFO][fr.pilato.elasticsearch.river.fs.river.FsRiver]  
[Frank Payne] [fs][mynewriver] Starting fs river scanning  
[2014-03-05 17:22:07,062][WARN][river] [Frank Payne] failed  
to get \_meta from [fs]/[mynewriver]  
java.lang.NoSuchMethodError: org.elasticsearch.action.admin.cluster.state.Cluste  
rStateRequestBuilder.setFilterIndices([Ljava/lang/String;)Lorg/elasticsearch/act  
ion/admin/cluster/state/ClusterStateRequestBuilder;  
at fr.pilato.elasticsearch.river.fs.river.FsRiver.isMappingExist(FsRiver  
.java:300)  
at fr.pilato.elasticsearch.river.fs.river.FsRiver.pushMapping(FsRiver.ja  
va:315)  
at fr.pilato.elasticsearch.river.fs.river.FsRiver.start(FsRiver.java:229  
)  
at org.elasticsearch.river.RiversService.createRiver(RiversService.java:  
148)  
at org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
Service.java:275)  
at org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
Service.java:269)  
at org.elasticsearch.action.support.TransportAction$ThreadedActionListen  
er$1.run(TransportAction.java:93)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
at java.lang.Thread.run(Unknown Source)

> On 6 March 2014 10:32, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:  
> And if I run query
> 
> GET /\_river/mydocs/\_meta
> 
> I get result
> 
> {  
> "\_index": "\_river",  
> "\_type": "mydocs",  
> "\_id": "\_meta",  
> "found": false  
> }
> 
> > On 6 March 2014 10:29, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:  
> > Hi David,
> > 
> > I am using version 0.4.0
> > 
> > > On 5 March 2014 23:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
> > > Are U using an old version of fsriver?
> > > 
> > > --  
> > > David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> > > @dadoonet | @elasticsearchfr
> > > 
> > > > Le 5 mars 2014 à 17:58:54, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:
> > > > 
> > > > Even that gave me same results
> > > > 
> > > > Thanks & Regards,  
> > > > Nithesh Erakkara  
> > > > Phone :- +91-9833-742-684  
> > > > Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)
> > > > 
> > > > On 5 Mar 2014, at 22:20, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > > 
> > > > > Don't search in \_river index but in destination index, which is `mydocs` in your case.
> > > > > 
> > > > > --  
> > > > > David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> > > > > @dadoonet | @elasticsearchfr
> > > > > 
> > > > > > Le 5 mars 2014 à 11:50:47, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@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  
> > > > > > }  
> > > > > > }
> > > > > > 
> > > > > > 1. Check if river created or not
> > > > > > 
> > > > > > GET /\_river/mynewriver/\_search
> > > > > > 
> > > > > > 1. 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com](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](https://groups.google.com/groups/opt_out).  
> > > > > > --  
> > > > > > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > > > > > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> > > > > > To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@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](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](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com).
> > > > 
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> > > To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local).
> > > 
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > Thanks & Regards,  
> > Nithesh Erakkara  
> > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > +919833742684
> 
> --  
> Thanks & Regards,  
> Nithesh Erakkara  
> [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> +919833742684

## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684

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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O\_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Nitesh\_Earkara](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@Nitesh\_Earkara](https://discuss.elastic.co/u/Nitesh_Earkara)\
**Post date:** [March 6, 2014, 6:42am UTC](https://discuss.elastic.co/t/index-files-using-fsriver/16169/9 "2014-03-06T06:42:51Z")

</div>

Hi David,

Thanks. So is there a bug in existing fsriver or is it not compatible with  
es 1.0.

If its compatible with any previous version of es, let me know. I would  
like to try it out.

Also if there are any other rivers i can use , do let me know.

On 6 March 2014 12:08, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Fsriver has not been released yet for es 1.0.
> 
> I will do it soonish.
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 6 mars 2014 à 06:31, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) a écrit :
> 
> My Elasticsearch server window shows below things displayed
> 
> [2014-03-05 17:21:22,782][INFO][node] [Frank Payne]  
> versio  
> n[1.0.1], pid[4896], build[5c03844/2014-02-25T15:52:53Z]  
> [2014-03-05 17:21:22,784][INFO][node] [Frank Payne]  
> initia  
> lizing ...  
> [2014-03-05 17:21:23,697][INFO][plugins] [Frank Payne]  
> loaded  
> [jdbc-river, river-fs], sites   
> [2014-03-05 17:21:31,848][INFO][node] [Frank Payne]  
> initia  
> lized  
> [2014-03-05 17:21:31,848][INFO][node] [Frank Payne]  
> starti  
> ng ...  
> [2014-03-05 17:21:32,308][INFO][transport] [Frank Payne]  
> bound\_  
> address {inet[/0:0:0:0:0:0:0:0:9301]}, publish\_address {inet[/  
> 192.9.205.37:9301]  
> }  
> [2014-03-05 17:21:35,669][INFO][cluster.service] [Frank Payne]  
> detect  
> ed\_master [Mad Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/  
> 192.9.205.37:  
> 9300]], added {[Mad  
> Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.20  
> 5.37:9300]],}, reason: zen-disco-receive(from master [[Mad  
> Thinker][5SmeADN9SYex  
> _owrQ9CLHA][JLTIVMDEV10][inet[/192.9.205.37:9300]]])  
> [2014-03-05 17:21:35,725][INFO][discovery] [Frank Payne]  
> elasti  
> csearch/A8mG-X4\_S3KPLnQj9gPLfg  
> [2014-03-05 17:21:35,822][INFO][http] [Frank Payne]  
> bound_  
> address {inet[/0:0:0:0:0:0:0:0:9201]}, publish\_address {inet[/  
> 192.9.205.37:9201]  
> }  
> [2014-03-05 17:21:35,826][INFO][node] [Frank Payne]  
> starte  
> d  
> [2014-03-05 17:22:07,045][INFO  
> ][fr.pilato.elasticsearch.river.fs.river.FsRiver]  
> [Frank Payne] [fs][mynewriver] Starting fs river scanning  
> [2014-03-05 17:22:07,062][WARN][river] [Frank Payne]  
> failed  
> to get \_meta from [fs]/[mynewriver]  
> java.lang.NoSuchMethodError:  
> org.elasticsearch.action.admin.cluster.state.Cluste
> 
> rStateRequestBuilder.setFilterIndices([Ljava/lang/String;)Lorg/elasticsearch/act  
> ion/admin/cluster/state/ClusterStateRequestBuilder;  
> at  
> fr.pilato.elasticsearch.river.fs.river.FsRiver.isMappingExist(FsRiver  
> .java:300)  
> at  
> fr.pilato.elasticsearch.river.fs.river.FsRiver.pushMapping(FsRiver.ja  
> va:315)  
> at  
> fr.pilato.elasticsearch.river.fs.river.FsRiver.start(FsRiver.java:229  
> )  
> at  
> org.elasticsearch.river.RiversService.createRiver(RiversService.java:  
> 148)  
> at  
> org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
> Service.java:275)  
> at  
> org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
> Service.java:269)  
> at  
> org.elasticsearch.action.support.TransportAction$ThreadedActionListen  
> er$1.run(TransportAction.java:93)  
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown  
> Source)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown  
> Source)  
> at java.lang.Thread.run(Unknown Source)
> 
> On 6 March 2014 10:32, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:
> 
> > And if I run query
> > 
> > GET /\_river/mydocs/\_meta
> > 
> > I get result
> > 
> > {  
> > "\_index": "\_river",  
> > "\_type": "mydocs",  
> > "\_id": "\_meta",  
> > "found": false  
> > }
> > 
> > On 6 March 2014 10:29, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:
> > 
> > > Hi David,
> > > 
> > > I am using version 0.4.0
> > > 
> > > On 5 March 2014 23:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > 
> > > > Are U using an old version of fsriver?
> > > > 
> > > > --  
> > > > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> > > > [http://Elasticsearch.com](http://Elasticsearch.com)_  
> > > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> > > > 
> > > > Le 5 mars 2014 à 17:58:54, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:
> > > > 
> > > > Even that gave me same results
> > > > 
> > > > Thanks & Regards,
> > > > 
> > > > _Nithesh Erakkara_
> > > > 
> > > > Phone :- +91-9833-742-684
> > > > 
> > > > Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)
> > > > 
> > > > On 5 Mar 2014, at 22:20, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > > 
> > > > Don't search in \_river index but in destination index, which is  
> > > > `mydocs` in your case.
> > > > 
> > > > ```
> > > > --
> > > > 
> > > > ```
> > > > 
> > > > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> > > > [http://Elasticsearch.com](http://Elasticsearch.com)_  
> > > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> > > > 
> > > > Le 5 mars 2014 à 11:50:47, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@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  
> > > > }  
> > > > }
> > > > 
> > > > 1. Check if river created or not
> > > > 
> > > > GET /\_river/mynewriver/\_search
> > > > 
> > > > 1. 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to a topic in the  
> > > > Google Groups "elasticsearch" group.  
> > > > To unsubscribe from this topic, visit  
> > > > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe)  
> > > > .  
> > > > To unsubscribe from this group and all its topics, send an email to  
> > > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@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](https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com)[https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com?utm_medium=email&utm_source=footer)  
> > > > .
> > > > 
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to a topic in the  
> > > > Google Groups "elasticsearch" group.  
> > > > To unsubscribe from this topic, visit  
> > > > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe)  
> > > > .  
> > > > To unsubscribe from this group and all its topics, send an email to  
> > > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer)  
> > > > .
> > > > 
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > Thanks & Regards,  
> > > Nithesh Erakkara  
> > > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > > +919833742684
> > 
> > --  
> > Thanks & Regards,  
> > Nithesh Erakkara  
> > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > +919833742684
> 
> --  
> Thanks & Regards,  
> Nithesh Erakkara  
> [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> +919833742684
> 
> --  
> 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O\_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O\_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Thanks & Regards,  
Nithesh Erakkara  
[enitesh@gmail.com](mailto:enitesh@gmail.com)  
+919833742684

--  
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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nZ%3DF0pQx6-LGCC%2BahTSBvifFMcqDoSPA54RsDwfc9N0SA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nZ%3DF0pQx6-LGCC%2BahTSBvifFMcqDoSPA54RsDwfc9N0SA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Nitesh\_Earkara](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@Nitesh\_Earkara](https://discuss.elastic.co/u/Nitesh_Earkara)\
**Post date:** [March 6, 2014, 7:25am UTC](https://discuss.elastic.co/t/index-files-using-fsriver/16169/10 "2014-03-06T07:25:55Z")

</div>

Hi David,

Thanks a lot for your help

I did install 0.90.12 version of es and installed plugin fsriver 0.4.0.

Now the query

GET /mydocs/\_search

is retrieving me results of all the document present in the folder as per  
index

but when I run query

GET /mydocs/doc/\_search  
{  
"query" : {  
"match" : {  
"file.filename" : "mydocument.pdf"  
}  
}  
}

it retrieves all results and not just the document that has file name  
mydocument.pdf.

Please let me know if I am querying properly or do let me know the proper  
syntax for the same.

On 6 March 2014 12:12, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:

> Hi David,
> 
> Thanks. So is there a bug in existing fsriver or is it not compatible with  
> es 1.0.
> 
> If its compatible with any previous version of es, let me know. I would  
> like to try it out.
> 
> Also if there are any other rivers i can use , do let me know.
> 
> On 6 March 2014 12:08, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > Fsriver has not been released yet for es 1.0.
> > 
> > I will do it soonish.
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 6 mars 2014 à 06:31, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) a écrit :
> > 
> > My Elasticsearch server window shows below things displayed
> > 
> > [2014-03-05 17:21:22,782][INFO][node] [Frank Payne]  
> > versio  
> > n[1.0.1], pid[4896], build[5c03844/2014-02-25T15:52:53Z]  
> > [2014-03-05 17:21:22,784][INFO][node] [Frank Payne]  
> > initia  
> > lizing ...  
> > [2014-03-05 17:21:23,697][INFO][plugins] [Frank Payne]  
> > loaded  
> > [jdbc-river, river-fs], sites   
> > [2014-03-05 17:21:31,848][INFO][node] [Frank Payne]  
> > initia  
> > lized  
> > [2014-03-05 17:21:31,848][INFO][node] [Frank Payne]  
> > starti  
> > ng ...  
> > [2014-03-05 17:21:32,308][INFO][transport] [Frank Payne]  
> > bound\_  
> > address {inet[/0:0:0:0:0:0:0:0:9301]}, publish\_address {inet[/  
> > 192.9.205.37:9301]  
> > }  
> > [2014-03-05 17:21:35,669][INFO][cluster.service] [Frank Payne]  
> > detect  
> > ed\_master [Mad Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/  
> > 192.9.205.37:  
> > 9300]], added {[Mad  
> > Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.20  
> > 5.37:9300]],}, reason: zen-disco-receive(from master [[Mad  
> > Thinker][5SmeADN9SYex  
> > _owrQ9CLHA][JLTIVMDEV10][inet[/192.9.205.37:9300]]])  
> > [2014-03-05 17:21:35,725][INFO][discovery] [Frank Payne]  
> > elasti  
> > csearch/A8mG-X4\_S3KPLnQj9gPLfg  
> > [2014-03-05 17:21:35,822][INFO][http] [Frank Payne]  
> > bound_  
> > address {inet[/0:0:0:0:0:0:0:0:9201]}, publish\_address {inet[/  
> > 192.9.205.37:9201]  
> > }  
> > [2014-03-05 17:21:35,826][INFO][node] [Frank Payne]  
> > starte  
> > d  
> > [2014-03-05 17:22:07,045][INFO  
> > ][fr.pilato.elasticsearch.river.fs.river.FsRiver]  
> > [Frank Payne] [fs][mynewriver] Starting fs river scanning  
> > [2014-03-05 17:22:07,062][WARN][river] [Frank Payne]  
> > failed  
> > to get \_meta from [fs]/[mynewriver]  
> > java.lang.NoSuchMethodError:  
> > org.elasticsearch.action.admin.cluster.state.Cluste
> > 
> > rStateRequestBuilder.setFilterIndices([Ljava/lang/String;)Lorg/elasticsearch/act  
> > ion/admin/cluster/state/ClusterStateRequestBuilder;  
> > at  
> > fr.pilato.elasticsearch.river.fs.river.FsRiver.isMappingExist(FsRiver  
> > .java:300)  
> > at  
> > fr.pilato.elasticsearch.river.fs.river.FsRiver.pushMapping(FsRiver.ja  
> > va:315)  
> > at  
> > fr.pilato.elasticsearch.river.fs.river.FsRiver.start(FsRiver.java:229  
> > )  
> > at  
> > org.elasticsearch.river.RiversService.createRiver(RiversService.java:  
> > 148)  
> > at  
> > org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
> > Service.java:275)  
> > at  
> > org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
> > Service.java:269)  
> > at  
> > org.elasticsearch.action.support.TransportAction$ThreadedActionListen  
> > er$1.run(TransportAction.java:93)  
> > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown  
> > Source)  
> > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown  
> > Source)  
> > at java.lang.Thread.run(Unknown Source)
> > 
> > On 6 March 2014 10:32, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:
> > 
> > > And if I run query
> > > 
> > > GET /\_river/mydocs/\_meta
> > > 
> > > I get result
> > > 
> > > {  
> > > "\_index": "\_river",  
> > > "\_type": "mydocs",  
> > > "\_id": "\_meta",  
> > > "found": false  
> > > }
> > > 
> > > On 6 March 2014 10:29, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:
> > > 
> > > > Hi David,
> > > > 
> > > > I am using version 0.4.0
> > > > 
> > > > On 5 March 2014 23:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > > 
> > > > > Are U using an old version of fsriver?
> > > > > 
> > > > > --  
> > > > > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> > > > > [http://Elasticsearch.com](http://Elasticsearch.com)_  
> > > > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> > > > > 
> > > > > Le 5 mars 2014 à 17:58:54, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:
> > > > > 
> > > > > Even that gave me same results
> > > > > 
> > > > > Thanks & Regards,
> > > > > 
> > > > > _Nithesh Erakkara_
> > > > > 
> > > > > Phone :- +91-9833-742-684
> > > > > 
> > > > > Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)
> > > > > 
> > > > > On 5 Mar 2014, at 22:20, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > > > 
> > > > > Don't search in \_river index but in destination index, which is  
> > > > > `mydocs` in your case.
> > > > > 
> > > > > ```
> > > > > --
> > > > > 
> > > > > ```
> > > > > 
> > > > > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> > > > > [http://Elasticsearch.com](http://Elasticsearch.com)_  
> > > > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> > > > > 
> > > > > Le 5 mars 2014 à 11:50:47, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@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  
> > > > > }  
> > > > > }
> > > > > 
> > > > > 1. Check if river created or not
> > > > > 
> > > > > GET /\_river/mynewriver/\_search
> > > > > 
> > > > > 1. 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > To view this discussion on the web visit  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > .  
> > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to a topic in the  
> > > > > Google Groups "elasticsearch" group.  
> > > > > To unsubscribe from this topic, visit  
> > > > > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe)  
> > > > > .  
> > > > > To unsubscribe from this group and all its topics, send an email to  
> > > > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@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](https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer)  
> > > > > .  
> > > > > For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > To view this discussion on the web visit  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com)[https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com?utm_medium=email&utm_source=footer)  
> > > > > .
> > > > > 
> > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to a topic in the  
> > > > > Google Groups "elasticsearch" group.  
> > > > > To unsubscribe from this topic, visit  
> > > > > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe)  
> > > > > .  
> > > > > To unsubscribe from this group and all its topics, send an email to  
> > > > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > To view this discussion on the web visit  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer)  
> > > > > .
> > > > > 
> > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --  
> > > > Thanks & Regards,  
> > > > Nithesh Erakkara  
> > > > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > > > +919833742684
> > > 
> > > --  
> > > Thanks & Regards,  
> > > Nithesh Erakkara  
> > > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > > +919833742684
> > 
> > --  
> > Thanks & Regards,  
> > Nithesh Erakkara  
> > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > +919833742684
> > 
> > --  
> > 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O\_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O\_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> Thanks & Regards,  
> Nithesh Erakkara  
> [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> +919833742684

--  
Thanks & Regards,  
Nithesh Erakkara  
[enitesh@gmail.com](mailto:enitesh@gmail.com)  
+919833742684

--  
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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 6, 2014, 7:40am UTC](https://discuss.elastic.co/t/index-files-using-fsriver/16169/11 "2014-03-06T07:40:20Z")

</div>

Probably because file.filename is analyzed.  
Using a match query will basically search here for "mydocument" or "pdf".

Default mapping and field names will change with coming FSriver 1.0.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 6 mars 2014 à 08:25, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) a écrit :

Hi David,

Thanks a lot for your help

I did install 0.90.12 version of es and installed plugin fsriver 0.4.0.

Now the query

GET /mydocs/\_search

is retrieving me results of all the document present in the folder as per index

but when I run query

GET /mydocs/doc/\_search  
{  
"query" : {  
"match" : {  
"file.filename" : "mydocument.pdf"  
}  
}  
}

it retrieves all results and not just the document that has file name mydocument.pdf.

Please let me know if I am querying properly or do let me know the proper syntax for the same.

> On 6 March 2014 12:12, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:  
> Hi David,
> 
> Thanks. So is there a bug in existing fsriver or is it not compatible with es 1.0.
> 
> If its compatible with any previous version of es, let me know. I would like to try it out.
> 
> Also if there are any other rivers i can use , do let me know.
> 
> > On 6 March 2014 12:08, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
> > Fsriver has not been released yet for es 1.0.
> > 
> > I will do it soonish.
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 6 mars 2014 à 06:31, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) a écrit :
> > 
> > My Elasticsearch server window shows below things displayed
> > 
> > [2014-03-05 17:21:22,782][INFO][node] [Frank Payne] versio  
> > n[1.0.1], pid[4896], build[5c03844/2014-02-25T15:52:53Z]  
> > [2014-03-05 17:21:22,784][INFO][node] [Frank Payne] initia  
> > lizing ...  
> > [2014-03-05 17:21:23,697][INFO][plugins] [Frank Payne] loaded  
> > [jdbc-river, river-fs], sites   
> > [2014-03-05 17:21:31,848][INFO][node] [Frank Payne] initia  
> > lized  
> > [2014-03-05 17:21:31,848][INFO][node] [Frank Payne] starti  
> > ng ...  
> > [2014-03-05 17:21:32,308][INFO][transport] [Frank Payne] bound\_  
> > address {inet[/0:0:0:0:0:0:0:0:9301]}, publish\_address {inet[/192.9.205.37:9301]  
> > }  
> > [2014-03-05 17:21:35,669][INFO][cluster.service] [Frank Payne] detect  
> > ed\_master [Mad Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.205.37:  
> > 9300]], added {[Mad Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.20  
> > 5.37:9300]],}, reason: zen-disco-receive(from master [[Mad Thinker][5SmeADN9SYex  
> > _owrQ9CLHA][JLTIVMDEV10][inet[/192.9.205.37:9300]]])  
> > [2014-03-05 17:21:35,725][INFO][discovery] [Frank Payne] elasti  
> > csearch/A8mG-X4\_S3KPLnQj9gPLfg  
> > [2014-03-05 17:21:35,822][INFO][http] [Frank Payne] bound_  
> > address {inet[/0:0:0:0:0:0:0:0:9201]}, publish\_address {inet[/192.9.205.37:9201]  
> > }  
> > [2014-03-05 17:21:35,826][INFO][node] [Frank Payne] starte  
> > d  
> > [2014-03-05 17:22:07,045][INFO][fr.pilato.elasticsearch.river.fs.river.FsRiver]  
> > [Frank Payne] [fs][mynewriver] Starting fs river scanning  
> > [2014-03-05 17:22:07,062][WARN][river] [Frank Payne] failed  
> > to get \_meta from [fs]/[mynewriver]  
> > java.lang.NoSuchMethodError: org.elasticsearch.action.admin.cluster.state.Cluste  
> > rStateRequestBuilder.setFilterIndices([Ljava/lang/String;)Lorg/elasticsearch/act  
> > ion/admin/cluster/state/ClusterStateRequestBuilder;  
> > at fr.pilato.elasticsearch.river.fs.river.FsRiver.isMappingExist(FsRiver  
> > .java:300)  
> > at fr.pilato.elasticsearch.river.fs.river.FsRiver.pushMapping(FsRiver.ja  
> > va:315)  
> > at fr.pilato.elasticsearch.river.fs.river.FsRiver.start(FsRiver.java:229  
> > )  
> > at org.elasticsearch.river.RiversService.createRiver(RiversService.java:  
> > 148)  
> > at org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
> > Service.java:275)  
> > at org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
> > Service.java:269)  
> > at org.elasticsearch.action.support.TransportAction$ThreadedActionListen  
> > er$1.run(TransportAction.java:93)  
> > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
> > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
> > at java.lang.Thread.run(Unknown Source)
> > 
> > > On 6 March 2014 10:32, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:  
> > > And if I run query
> > > 
> > > GET /\_river/mydocs/\_meta
> > > 
> > > I get result
> > > 
> > > {  
> > > "\_index": "\_river",  
> > > "\_type": "mydocs",  
> > > "\_id": "\_meta",  
> > > "found": false  
> > > }
> > > 
> > > > On 6 March 2014 10:29, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:  
> > > > Hi David,
> > > > 
> > > > I am using version 0.4.0
> > > > 
> > > > > On 5 March 2014 23:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
> > > > > Are U using an old version of fsriver?
> > > > > 
> > > > > --  
> > > > > David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> > > > > @dadoonet | @elasticsearchfr
> > > > > 
> > > > > > Le 5 mars 2014 à 17:58:54, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:
> > > > > > 
> > > > > > Even that gave me same results
> > > > > > 
> > > > > > Thanks & Regards,  
> > > > > > Nithesh Erakkara  
> > > > > > Phone :- +91-9833-742-684  
> > > > > > Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)
> > > > > > 
> > > > > > On 5 Mar 2014, at 22:20, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > > > > 
> > > > > > > Don't search in \_river index but in destination index, which is `mydocs` in your case.
> > > > > > > 
> > > > > > > --  
> > > > > > > David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> > > > > > > @dadoonet | @elasticsearchfr
> > > > > > > 
> > > > > > > > Le 5 mars 2014 à 11:50:47, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@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  
> > > > > > > > }  
> > > > > > > > }
> > > > > > > > 
> > > > > > > > 1. Check if river created or not
> > > > > > > > 
> > > > > > > > GET /\_river/mynewriver/\_search
> > > > > > > > 
> > > > > > > > 1. 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com](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](https://groups.google.com/groups/opt_out).  
> > > > > > > > --  
> > > > > > > > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > > > > > > > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> > > > > > > > To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@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](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](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com).
> > > > > > 
> > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > > > > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> > > > > To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local).
> > > > > 
> > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --  
> > > > Thanks & Regards,  
> > > > Nithesh Erakkara  
> > > > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > > > +919833742684
> > > 
> > > --  
> > > Thanks & Regards,  
> > > Nithesh Erakkara  
> > > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > > +919833742684
> > 
> > ## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684
> > 
> > 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O\_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com).
> > 
> > ## For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr).
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> Thanks & Regards,  
> Nithesh Erakkara  
> [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> +919833742684

## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684

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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Nitesh\_Earkara](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@Nitesh\_Earkara](https://discuss.elastic.co/u/Nitesh_Earkara)\
**Post date:** [March 6, 2014, 8:17am UTC](https://discuss.elastic.co/t/index-files-using-fsriver/16169/12 "2014-03-06T08:17:02Z")

</div>

Thanks David.

Can you suggest which query should I use for exact match?

Thanks & Regards,  
Nithesh Erakkara  
Phone :- +91-9833-742-684  
Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)

> On 6 Mar 2014, at 13:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> Probably because file.filename is analyzed.  
> Using a match query will basically search here for "mydocument" or "pdf".
> 
> Default mapping and field names will change with coming FSriver 1.0.
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 6 mars 2014 à 08:25, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) a écrit :
> 
> Hi David,
> 
> Thanks a lot for your help
> 
> I did install 0.90.12 version of es and installed plugin fsriver 0.4.0.
> 
> Now the query
> 
> GET /mydocs/\_search
> 
> is retrieving me results of all the document present in the folder as per index
> 
> but when I run query
> 
> GET /mydocs/doc/\_search  
> {  
> "query" : {  
> "match" : {  
> "file.filename" : "mydocument.pdf"  
> }  
> }  
> }
> 
> it retrieves all results and not just the document that has file name mydocument.pdf.
> 
> Please let me know if I am querying properly or do let me know the proper syntax for the same.
> 
> > On 6 March 2014 12:12, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:  
> > Hi David,
> > 
> > Thanks. So is there a bug in existing fsriver or is it not compatible with es 1.0.
> > 
> > If its compatible with any previous version of es, let me know. I would like to try it out.
> > 
> > Also if there are any other rivers i can use , do let me know.
> > 
> > > On 6 March 2014 12:08, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
> > > Fsriver has not been released yet for es 1.0.
> > > 
> > > I will do it soonish.
> > > 
> > > --  
> > > David 😉  
> > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > 
> > > Le 6 mars 2014 à 06:31, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) a écrit :
> > > 
> > > My Elasticsearch server window shows below things displayed
> > > 
> > > [2014-03-05 17:21:22,782][INFO][node] [Frank Payne] versio  
> > > n[1.0.1], pid[4896], build[5c03844/2014-02-25T15:52:53Z]  
> > > [2014-03-05 17:21:22,784][INFO][node] [Frank Payne] initia  
> > > lizing ...  
> > > [2014-03-05 17:21:23,697][INFO][plugins] [Frank Payne] loaded  
> > > [jdbc-river, river-fs], sites   
> > > [2014-03-05 17:21:31,848][INFO][node] [Frank Payne] initia  
> > > lized  
> > > [2014-03-05 17:21:31,848][INFO][node] [Frank Payne] starti  
> > > ng ...  
> > > [2014-03-05 17:21:32,308][INFO][transport] [Frank Payne] bound\_  
> > > address {inet[/0:0:0:0:0:0:0:0:9301]}, publish\_address {inet[/192.9.205.37:9301]  
> > > }  
> > > [2014-03-05 17:21:35,669][INFO][cluster.service] [Frank Payne] detect  
> > > ed\_master [Mad Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.205.37:  
> > > 9300]], added {[Mad Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.20  
> > > 5.37:9300]],}, reason: zen-disco-receive(from master [[Mad Thinker][5SmeADN9SYex  
> > > _owrQ9CLHA][JLTIVMDEV10][inet[/192.9.205.37:9300]]])  
> > > [2014-03-05 17:21:35,725][INFO][discovery] [Frank Payne] elasti  
> > > csearch/A8mG-X4\_S3KPLnQj9gPLfg  
> > > [2014-03-05 17:21:35,822][INFO][http] [Frank Payne] bound_  
> > > address {inet[/0:0:0:0:0:0:0:0:9201]}, publish\_address {inet[/192.9.205.37:9201]  
> > > }  
> > > [2014-03-05 17:21:35,826][INFO][node] [Frank Payne] starte  
> > > d  
> > > [2014-03-05 17:22:07,045][INFO][fr.pilato.elasticsearch.river.fs.river.FsRiver]  
> > > [Frank Payne] [fs][mynewriver] Starting fs river scanning  
> > > [2014-03-05 17:22:07,062][WARN][river] [Frank Payne] failed  
> > > to get \_meta from [fs]/[mynewriver]  
> > > java.lang.NoSuchMethodError: org.elasticsearch.action.admin.cluster.state.Cluste  
> > > rStateRequestBuilder.setFilterIndices([Ljava/lang/String;)Lorg/elasticsearch/act  
> > > ion/admin/cluster/state/ClusterStateRequestBuilder;  
> > > at fr.pilato.elasticsearch.river.fs.river.FsRiver.isMappingExist(FsRiver  
> > > .java:300)  
> > > at fr.pilato.elasticsearch.river.fs.river.FsRiver.pushMapping(FsRiver.ja  
> > > va:315)  
> > > at fr.pilato.elasticsearch.river.fs.river.FsRiver.start(FsRiver.java:229  
> > > )  
> > > at org.elasticsearch.river.RiversService.createRiver(RiversService.java:  
> > > 148)  
> > > at org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
> > > Service.java:275)  
> > > at org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
> > > Service.java:269)  
> > > at org.elasticsearch.action.support.TransportAction$ThreadedActionListen  
> > > er$1.run(TransportAction.java:93)  
> > > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
> > > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
> > > at java.lang.Thread.run(Unknown Source)
> > > 
> > > > On 6 March 2014 10:32, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:  
> > > > And if I run query
> > > > 
> > > > GET /\_river/mydocs/\_meta
> > > > 
> > > > I get result
> > > > 
> > > > {  
> > > > "\_index": "\_river",  
> > > > "\_type": "mydocs",  
> > > > "\_id": "\_meta",  
> > > > "found": false  
> > > > }
> > > > 
> > > > > On 6 March 2014 10:29, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:  
> > > > > Hi David,
> > > > > 
> > > > > I am using version 0.4.0
> > > > > 
> > > > > > On 5 March 2014 23:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
> > > > > > Are U using an old version of fsriver?
> > > > > > 
> > > > > > --  
> > > > > > David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> > > > > > @dadoonet | @elasticsearchfr
> > > > > > 
> > > > > > > Le 5 mars 2014 à 17:58:54, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:
> > > > > > > 
> > > > > > > Even that gave me same results
> > > > > > > 
> > > > > > > Thanks & Regards,  
> > > > > > > Nithesh Erakkara  
> > > > > > > Phone :- +91-9833-742-684  
> > > > > > > Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)
> > > > > > > 
> > > > > > > On 5 Mar 2014, at 22:20, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > > > > > 
> > > > > > > > Don't search in \_river index but in destination index, which is `mydocs` in your case.
> > > > > > > > 
> > > > > > > > --  
> > > > > > > > David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> > > > > > > > @dadoonet | @elasticsearchfr
> > > > > > > > 
> > > > > > > > > Le 5 mars 2014 à 11:50:47, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@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  
> > > > > > > > > }  
> > > > > > > > > }
> > > > > > > > > 
> > > > > > > > > 1. Check if river created or not
> > > > > > > > > 
> > > > > > > > > GET /\_river/mynewriver/\_search
> > > > > > > > > 
> > > > > > > > > 1. 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > > > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com](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](https://groups.google.com/groups/opt_out).  
> > > > > > > > > --  
> > > > > > > > > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > > > > > > > > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> > > > > > > > > To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@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](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](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > > > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com).
> > > > > > > 
> > > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > > 
> > > > > > --  
> > > > > > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > > > > > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> > > > > > To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local).
> > > > > > 
> > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > 
> > > > > --  
> > > > > Thanks & Regards,  
> > > > > Nithesh Erakkara  
> > > > > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > > > > +919833742684
> > > > 
> > > > --  
> > > > Thanks & Regards,  
> > > > Nithesh Erakkara  
> > > > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > > > +919833742684
> > > 
> > > ## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684
> > > 
> > > 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O\_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com).
> > > 
> > > ## For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> > > To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr).
> > > 
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > Thanks & Regards,  
> > Nithesh Erakkara  
> > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > +919833742684
> 
> ## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684
> 
> ## 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com). To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com). For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr).  
> For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 6, 2014, 8:25am UTC](https://discuss.elastic.co/t/index-files-using-fsriver/16169/13 "2014-03-06T08:25:34Z")

</div>

Hmm…  
I looked at the code of fsriver 0.4.0 and it sounds like I use by default simple analyzer on file.filename field.

> <https://github.com/dadoonet/fscrawler/blob/fsriver-0.4.0/src/main/java/fr/pilato/elasticsearch/river/fs/util/FsRiverUtil.java>

So your query should work…

Just to check, could you try with a TermQuery instead a MatchQuery?

Could you also gist the mapping?

GET /mydocs/doc/\_mapping?pretty

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 6 mars 2014 à 09:17:20, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:

Thanks David.

Can you suggest which query should I use for exact match?

Thanks & Regards,  
Nithesh Erakkara  
Phone :- +91-9833-742-684  
Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)

On 6 Mar 2014, at 13:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

Probably because file.filename is analyzed.  
Using a match query will basically search here for "mydocument" or "pdf".

Default mapping and field names will change with coming FSriver 1.0.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 6 mars 2014 à 08:25, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) a écrit :

Hi David,

Thanks a lot for your help

I did install 0.90.12 version of es and installed plugin fsriver 0.4.0.

Now the query

GET /mydocs/\_search

is retrieving me results of all the document present in the folder as per index

but when I run query

GET /mydocs/doc/\_search  
{  
"query" : {  
"match" : {  
"file.filename" : "mydocument.pdf"  
}  
}  
}

it retrieves all results and not just the document that has file name mydocument.pdf.

Please let me know if I am querying properly or do let me know the proper syntax for the same.

On 6 March 2014 12:12, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:  
Hi David,

Thanks. So is there a bug in existing fsriver or is it not compatible with es 1.0.

If its compatible with any previous version of es, let me know. I would like to try it out.

Also if there are any other rivers i can use , do let me know.

On 6 March 2014 12:08, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
Fsriver has not been released yet for es 1.0.

I will do it soonish.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 6 mars 2014 à 06:31, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) a écrit :

My ElasticSearch server window shows below things displayed

[2014-03-05 17:21:22,782][INFO][node] [Frank Payne] versio  
n[1.0.1], pid[4896], build[5c03844/2014-02-25T15:52:53Z]  
[2014-03-05 17:21:22,784][INFO][node] [Frank Payne] initia  
lizing ...  
[2014-03-05 17:21:23,697][INFO][plugins] [Frank Payne] loaded  
[jdbc-river, river-fs], sites []  
[2014-03-05 17:21:31,848][INFO][node] [Frank Payne] initia  
lized  
[2014-03-05 17:21:31,848][INFO][node] [Frank Payne] starti  
ng ...  
[2014-03-05 17:21:32,308][INFO][transport] [Frank Payne] bound\_  
address {inet[/0:0:0:0:0:0:0:0:9301]}, publish\_address {inet[/192.9.205.37:9301]  
}  
[2014-03-05 17:21:35,669][INFO][cluster.service] [Frank Payne] detect  
ed\_master [Mad Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.205.37:  
9300]], added {[Mad Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.20  
5.37:9300]],}, reason: zen-disco-receive(from master [[Mad Thinker][5SmeADN9SYex  
_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.205.37:9300]]])  
[2014-03-05 17:21:35,725][INFO][discovery] [Frank Payne] elasti  
csearch/A8mG-X4\_S3KPLnQj9gPLfg  
[2014-03-05 17:21:35,822][INFO][http] [Frank Payne] bound_  
address {inet[/0:0:0:0:0:0:0:0:9201]}, publish\_address {inet[/192.9.205.37:9201]  
}  
[2014-03-05 17:21:35,826][INFO][node] [Frank Payne] starte  
d  
[2014-03-05 17:22:07,045][INFO][fr.pilato.elasticsearch.river.fs.river.FsRiver]  
[Frank Payne] [fs][mynewriver] Starting fs river scanning  
[2014-03-05 17:22:07,062][WARN][river] [Frank Payne] failed  
to get \_meta from [fs]/[mynewriver]  
java.lang.NoSuchMethodError: org.elasticsearch.action.admin.cluster.state.Cluste  
rStateRequestBuilder.setFilterIndices([Ljava/lang/String;)Lorg/elasticsearch/act  
ion/admin/cluster/state/ClusterStateRequestBuilder;  
at fr.pilato.elasticsearch.river.fs.river.FsRiver.isMappingExist(FsRiver  
.java:300)  
at fr.pilato.elasticsearch.river.fs.river.FsRiver.pushMapping(FsRiver.ja  
va:315)  
at fr.pilato.elasticsearch.river.fs.river.FsRiver.start(FsRiver.java:229  
)  
at org.elasticsearch.river.RiversService.createRiver(RiversService.java:  
148)  
at org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
Service.java:275)  
at org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
Service.java:269)  
at org.elasticsearch.action.support.TransportAction$ThreadedActionListen  
er$1.run(TransportAction.java:93)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
at java.lang.Thread.run(Unknown Source)

On 6 March 2014 10:32, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:  
And if I run query

GET /\_river/mydocs/\_meta

I get result

{  
"\_index": "\_river",  
"\_type": "mydocs",  
"\_id": "\_meta",  
"found": false  
}

On 6 March 2014 10:29, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:  
Hi David,

I am using version 0.4.0

On 5 March 2014 23:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
Are U using an old version of fsriver?

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 5 mars 2014 à 17:58:54, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:

Even that gave me same results

Thanks & Regards,  
Nithesh Erakkara  
Phone :- +91-9833-742-684  
Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)

On 5 Mar 2014, at 22:20, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

Don't search in \_river index but in destination index, which is `mydocs` in your case.

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 5 mars 2014 à 11:50:47, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@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  
}  
}

1. Check if river created or not

GET /\_river/mynewriver/\_search

1. 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com). To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com](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](https://groups.google.com/groups/opt_out).

## You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group. To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe). To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@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](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](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com).

## For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local).

For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Thanks & Regards,  
Nithesh Erakkara  
[enitesh@gmail.com](mailto:enitesh@gmail.com)  
+919833742684

--  
Thanks & Regards,  
Nithesh Erakkara  
[enitesh@gmail.com](mailto:enitesh@gmail.com)  
+919833742684

## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684

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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O\_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com).

## For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr).

For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Thanks & Regards,  
Nithesh Erakkara  
[enitesh@gmail.com](mailto:enitesh@gmail.com)  
+919833742684

## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684

## 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com). To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com). For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

## You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group. To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe). To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com). To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr). For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Nitesh\_Earkara](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@Nitesh\_Earkara](https://discuss.elastic.co/u/Nitesh_Earkara)\
**Post date:** [March 6, 2014, 8:51am UTC](https://discuss.elastic.co/t/index-files-using-fsriver/16169/14 "2014-03-06T08:51:07Z")

</div>

Thanks David.

GET /mydocs/doc/\_mapping?pretty

This query returns below result

"doc": {  
"properties": {  
"content": {  
"type": "string",  
"store": true  
},  
"file": {  
"properties": {  
"content\_type": {  
"type": "string",  
"store": true,  
"analyzer": "simple"  
},  
"filename": {  
"type": "string",  
"store": true,  
"analyzer": "simple"

I am not pasting complete result.

If i use term query, then i don't get any result

GET /mydocs/doc/\_search  
{  
"query" : {  
"term" : {  
"file.filename" : "AnnualCompensation\_20132014.pdf"  
}  
}  
}

Result is

_{_

- "took": 2,\*
- "timed\_out": false,\*
- "\_shards": {\*
- 

```
 "total": 5,*

```

- 

```
 "successful": 5,*

```

- 

```
 "failed": 0*

```

- },\*
- "hits": {\*
- 

```
 "total": 0,*

```

- 

```
 "max_score": null,*

```

- 

```
 "hits": []*

```

- }\*  
_}_

On 6 March 2014 13:55, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Hmm...  
> I looked at the code of fsriver 0.4.0 and it sounds like I use by default  
> simple analyzer on file.filename field.
> 
> [https://github.com/dadoonet/fsriver/blob/fsriver-0.4.0/src/main/java/fr/pilato/elasticsearch/river/fs/util/FsRiverUtil.java#L132](https://github.com/dadoonet/fsriver/blob/fsriver-0.4.0/src/main/java/fr/pilato/elasticsearch/river/fs/util/FsRiverUtil.java#L132)
> 
> So your query should work...
> 
> Just to check, could you try with a TermQuery instead a MatchQuery?
> 
> Could you also gist the mapping?
> 
> GET /mydocs/doc/\_mapping?pretty
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> 
> Le 6 mars 2014 à 09:17:20, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:
> 
> Thanks David.
> 
> Can you suggest which query should I use for exact match?
> 
> Thanks & Regards,
> 
> _Nithesh Erakkara_
> 
> Phone :- +91-9833-742-684
> 
> Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)
> 
> On 6 Mar 2014, at 13:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> Probably because file.filename is analyzed.  
> Using a match query will basically search here for "mydocument" or "pdf".
> 
> Default mapping and field names will change with coming FSriver 1.0.
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 6 mars 2014 à 08:25, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) a écrit :
> 
> Hi David,
> 
> Thanks a lot for your help
> 
> I did install 0.90.12 version of es and installed plugin fsriver 0.4.0.
> 
> Now the query
> 
> GET /mydocs/\_search
> 
> is retrieving me results of all the document present in the folder as per  
> index
> 
> but when I run query
> 
> GET /mydocs/doc/\_search  
> {  
> "query" : {  
> "match" : {  
> "file.filename" : "mydocument.pdf"  
> }  
> }  
> }
> 
> it retrieves all results and not just the document that has file name  
> mydocument.pdf.
> 
> Please let me know if I am querying properly or do let me know the proper  
> syntax for the same.
> 
> On 6 March 2014 12:12, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:
> 
> > Hi David,
> > 
> > Thanks. So is there a bug in existing fsriver or is it not compatible  
> > with es 1.0.
> > 
> > If its compatible with any previous version of es, let me know. I would  
> > like to try it out.
> > 
> > Also if there are any other rivers i can use , do let me know.
> > 
> > On 6 March 2014 12:08, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > 
> > > Fsriver has not been released yet for es 1.0.
> > > 
> > > I will do it soonish.
> > > 
> > > --  
> > > David 😉  
> > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > 
> > > Le 6 mars 2014 à 06:31, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) a écrit :
> > > 
> > > My Elasticsearch server window shows below things displayed
> > > 
> > > [2014-03-05 17:21:22,782][INFO][node] [Frank  
> > > Payne] versio  
> > > n[1.0.1], pid[4896], build[5c03844/2014-02-25T15:52:53Z]  
> > > [2014-03-05 17:21:22,784][INFO][node] [Frank  
> > > Payne] initia  
> > > lizing ...  
> > > [2014-03-05 17:21:23,697][INFO][plugins] [Frank  
> > > Payne] loaded  
> > > [jdbc-river, river-fs], sites   
> > > [2014-03-05 17:21:31,848][INFO][node] [Frank  
> > > Payne] initia  
> > > lized  
> > > [2014-03-05 17:21:31,848][INFO][node] [Frank  
> > > Payne] starti  
> > > ng ...  
> > > [2014-03-05 17:21:32,308][INFO][transport] [Frank  
> > > Payne] bound\_  
> > > address {inet[/0:0:0:0:0:0:0:0:9301]}, publish\_address {inet[/  
> > > 192.9.205.37:9301]  
> > > }  
> > > [2014-03-05 17:21:35,669][INFO][cluster.service] [Frank  
> > > Payne] detect  
> > > ed\_master [Mad Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/  
> > > 192.9.205.37:  
> > > 9300]], added {[Mad  
> > > Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.20  
> > > 5.37:9300]],}, reason: zen-disco-receive(from master [[Mad  
> > > Thinker][5SmeADN9SYex  
> > > _owrQ9CLHA][JLTIVMDEV10][inet[/192.9.205.37:9300]]])  
> > > [2014-03-05 17:21:35,725][INFO][discovery] [Frank  
> > > Payne] elasti  
> > > csearch/A8mG-X4\_S3KPLnQj9gPLfg  
> > > [2014-03-05 17:21:35,822][INFO][http] [Frank  
> > > Payne] bound_  
> > > address {inet[/0:0:0:0:0:0:0:0:9201]}, publish\_address {inet[/  
> > > 192.9.205.37:9201]  
> > > }  
> > > [2014-03-05 17:21:35,826][INFO][node] [Frank  
> > > Payne] starte  
> > > d  
> > > [2014-03-05 17:22:07,045][INFO  
> > > ][fr.pilato.elasticsearch.river.fs.river.FsRiver]  
> > > [Frank Payne] [fs][mynewriver] Starting fs river scanning  
> > > [2014-03-05 17:22:07,062][WARN][river] [Frank  
> > > Payne] failed  
> > > to get \_meta from [fs]/[mynewriver]  
> > > java.lang.NoSuchMethodError:  
> > > org.elasticsearch.action.admin.cluster.state.Cluste  
> > > rStateRequestBuilder.setFilterIndices([Ljava/lang/String;)Lorg/elasticsearch/act  
> > > ion/admin/cluster/state/ClusterStateRequestBuilder;  
> > > at  
> > > fr.pilato.elasticsearch.river.fs.river.FsRiver.isMappingExist(FsRiver  
> > > .java:300)  
> > > at  
> > > fr.pilato.elasticsearch.river.fs.river.FsRiver.pushMapping(FsRiver.ja  
> > > va:315)  
> > > at  
> > > fr.pilato.elasticsearch.river.fs.river.FsRiver.start(FsRiver.java:229  
> > > )  
> > > at  
> > > org.elasticsearch.river.RiversService.createRiver(RiversService.java:  
> > > 148)  
> > > at  
> > > org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
> > > Service.java:275)  
> > > at  
> > > org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
> > > Service.java:269)  
> > > at  
> > > org.elasticsearch.action.support.TransportAction$ThreadedActionListen  
> > > er$1.run(TransportAction.java:93)  
> > > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown  
> > > Source)  
> > > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown  
> > > Source)  
> > > at java.lang.Thread.run(Unknown Source)
> > > 
> > > On 6 March 2014 10:32, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:
> > > 
> > > > And if I run query
> > > > 
> > > > GET /\_river/mydocs/\_meta
> > > > 
> > > > I get result
> > > > 
> > > > {  
> > > > "\_index": "\_river",  
> > > > "\_type": "mydocs",  
> > > > "\_id": "\_meta",  
> > > > "found": false  
> > > > }
> > > > 
> > > > On 6 March 2014 10:29, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:
> > > > 
> > > > > Hi David,
> > > > > 
> > > > > I am using version 0.4.0
> > > > > 
> > > > > On 5 March 2014 23:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > > > 
> > > > > > Are U using an old version of fsriver?
> > > > > > 
> > > > > > ```
> > > > > > --
> > > > > > 
> > > > > > ```
> > > > > > 
> > > > > > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> > > > > > [http://Elasticsearch.com](http://Elasticsearch.com)_  
> > > > > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> > > > > > 
> > > > > > Le 5 mars 2014 à 17:58:54, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a  
> > > > > > écrit:
> > > > > > 
> > > > > > Even that gave me same results
> > > > > > 
> > > > > > Thanks & Regards,
> > > > > > 
> > > > > > _Nithesh Erakkara_
> > > > > > 
> > > > > > Phone :- +91-9833-742-684
> > > > > > 
> > > > > > Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)
> > > > > > 
> > > > > > On 5 Mar 2014, at 22:20, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > > > > 
> > > > > > Don't search in \_river index but in destination index, which is  
> > > > > > `mydocs` in your case.
> > > > > > 
> > > > > > ```
> > > > > > --
> > > > > > 
> > > > > > ```
> > > > > > 
> > > > > > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> > > > > > [http://Elasticsearch.com](http://Elasticsearch.com)_  
> > > > > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> > > > > > 
> > > > > > Le 5 mars 2014 à 11:50:47, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@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  
> > > > > > }  
> > > > > > }
> > > > > > 
> > > > > > 1. Check if river created or not
> > > > > > 
> > > > > > GET /\_river/mynewriver/\_search
> > > > > > 
> > > > > > 1. 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > To view this discussion on the web visit  
> > > > > > [https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > .  
> > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > > 
> > > > > > --  
> > > > > > You received this message because you are subscribed to a topic in  
> > > > > > the Google Groups "elasticsearch" group.  
> > > > > > To unsubscribe from this topic, visit  
> > > > > > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe)  
> > > > > > .  
> > > > > > To unsubscribe from this group and all its topics, send an email to  
> > > > > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@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](https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer)  
> > > > > > .  
> > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > To view this discussion on the web visit  
> > > > > > [https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com)[https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com?utm_medium=email&utm_source=footer).
> > > > > > 
> > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > > 
> > > > > > --  
> > > > > > You received this message because you are subscribed to a topic in  
> > > > > > the Google Groups "elasticsearch" group.  
> > > > > > To unsubscribe from this topic, visit  
> > > > > > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe)  
> > > > > > .  
> > > > > > To unsubscribe from this group and all its topics, send an email to  
> > > > > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > To view this discussion on the web visit  
> > > > > > [https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer).
> > > > > > 
> > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > 
> > > > > --  
> > > > > Thanks & Regards,  
> > > > > Nithesh Erakkara  
> > > > > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > > > > +919833742684
> > > > 
> > > > --  
> > > > Thanks & Regards,  
> > > > Nithesh Erakkara  
> > > > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > > > +919833742684
> > > 
> > > ## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684
> > > 
> > > 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O\_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O\_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com?utm_medium=email&utm_source=footer).
> > > 
> > > ## For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > You received this message because you are subscribed to a topic in the  
> > > Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit  
> > > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> > > To unsubscribe from this group and all its topics, send an email to  
> > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr?utm_medium=email&utm_source=footer).
> > > 
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > Thanks & Regards,  
> > Nithesh Erakkara  
> > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > +919833742684
> 
> ## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684
> 
> ## 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com). To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com?utm_medium=email&utm_source=footer) . For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com)[https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Thanks & Regards,  
Nithesh Erakkara  
[enitesh@gmail.com](mailto:enitesh@gmail.com)  
+919833742684

--  
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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-naqpjY5rm4Doq-31hnLg03EhTahtOb\_UgkhnWVqLkvKGw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-naqpjY5rm4Doq-31hnLg03EhTahtOb_UgkhnWVqLkvKGw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 6, 2014, 8:53am UTC](https://discuss.elastic.co/t/index-files-using-fsriver/16169/15 "2014-03-06T08:53:27Z")

</div>

Probably because you need to lowercase it in that case:

GET /mydocs/doc/\_search  
{  
"query" : {  
"term" : {  
"file.filename" : "annualcompensation\_20132014.pdf"  
}  
}  
}

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 6 mars 2014 à 09:51:13, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:

Thanks David.

GET /mydocs/doc/\_mapping?pretty

This query returns below result

"doc": {  
"properties": {  
"content": {  
"type": "string",  
"store": true  
},  
"file": {  
"properties": {  
"content\_type": {  
"type": "string",  
"store": true,  
"analyzer": "simple"  
},  
"filename": {  
"type": "string",  
"store": true,  
"analyzer": "simple"

I am not pasting complete result.

If i use term query, then i don't get any result

GET /mydocs/doc/\_search  
{  
"query" : {  
"term" : {  
"file.filename" : "AnnualCompensation\_20132014.pdf"  
}  
}  
}

Result is

{  
"took": 2,  
"timed\_out": false,  
"\_shards": {  
"total": 5,  
"successful": 5,  
"failed": 0  
},  
"hits": {  
"total": 0,  
"max\_score": null,  
"hits": []  
}  
}

On 6 March 2014 13:55, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
Hmm…  
I looked at the code of fsriver 0.4.0 and it sounds like I use by default simple analyzer on file.filename field.

> <https://github.com/dadoonet/fscrawler/blob/fsriver-0.4.0/src/main/java/fr/pilato/elasticsearch/river/fs/util/FsRiverUtil.java>

So your query should work…

Just to check, could you try with a TermQuery instead a MatchQuery?

Could you also gist the mapping?

GET /mydocs/doc/\_mapping?pretty

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 6 mars 2014 à 09:17:20, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:

Thanks David.

Can you suggest which query should I use for exact match?

Thanks & Regards,  
Nithesh Erakkara  
Phone :- +91-9833-742-684  
Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)

On 6 Mar 2014, at 13:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

Probably because file.filename is analyzed.  
Using a match query will basically search here for "mydocument" or "pdf".

Default mapping and field names will change with coming FSriver 1.0.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 6 mars 2014 à 08:25, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) a écrit :

Hi David,

Thanks a lot for your help

I did install 0.90.12 version of es and installed plugin fsriver 0.4.0.

Now the query

GET /mydocs/\_search

is retrieving me results of all the document present in the folder as per index

but when I run query

GET /mydocs/doc/\_search  
{  
"query" : {  
"match" : {  
"file.filename" : "mydocument.pdf"  
}  
}  
}

it retrieves all results and not just the document that has file name mydocument.pdf.

Please let me know if I am querying properly or do let me know the proper syntax for the same.

On 6 March 2014 12:12, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:  
Hi David,

Thanks. So is there a bug in existing fsriver or is it not compatible with es 1.0.

If its compatible with any previous version of es, let me know. I would like to try it out.

Also if there are any other rivers i can use , do let me know.

On 6 March 2014 12:08, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
Fsriver has not been released yet for es 1.0.

I will do it soonish.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 6 mars 2014 à 06:31, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) a écrit :

My ElasticSearch server window shows below things displayed

[2014-03-05 17:21:22,782][INFO][node] [Frank Payne] versio  
n[1.0.1], pid[4896], build[5c03844/2014-02-25T15:52:53Z]  
[2014-03-05 17:21:22,784][INFO][node] [Frank Payne] initia  
lizing ...  
[2014-03-05 17:21:23,697][INFO][plugins] [Frank Payne] loaded  
[jdbc-river, river-fs], sites []  
[2014-03-05 17:21:31,848][INFO][node] [Frank Payne] initia  
lized  
[2014-03-05 17:21:31,848][INFO][node] [Frank Payne] starti  
ng ...  
[2014-03-05 17:21:32,308][INFO][transport] [Frank Payne] bound\_  
address {inet[/0:0:0:0:0:0:0:0:9301]}, publish\_address {inet[/192.9.205.37:9301]  
}  
[2014-03-05 17:21:35,669][INFO][cluster.service] [Frank Payne] detect  
ed\_master [Mad Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.205.37:  
9300]], added {[Mad Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.20  
5.37:9300]],}, reason: zen-disco-receive(from master [[Mad Thinker][5SmeADN9SYex  
_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.205.37:9300]]])  
[2014-03-05 17:21:35,725][INFO][discovery] [Frank Payne] elasti  
csearch/A8mG-X4\_S3KPLnQj9gPLfg  
[2014-03-05 17:21:35,822][INFO][http] [Frank Payne] bound_  
address {inet[/0:0:0:0:0:0:0:0:9201]}, publish\_address {inet[/192.9.205.37:9201]  
}  
[2014-03-05 17:21:35,826][INFO][node] [Frank Payne] starte  
d  
[2014-03-05 17:22:07,045][INFO][fr.pilato.elasticsearch.river.fs.river.FsRiver]  
[Frank Payne] [fs][mynewriver] Starting fs river scanning  
[2014-03-05 17:22:07,062][WARN][river] [Frank Payne] failed  
to get \_meta from [fs]/[mynewriver]  
java.lang.NoSuchMethodError: org.elasticsearch.action.admin.cluster.state.Cluste  
rStateRequestBuilder.setFilterIndices([Ljava/lang/String;)Lorg/elasticsearch/act  
ion/admin/cluster/state/ClusterStateRequestBuilder;  
at fr.pilato.elasticsearch.river.fs.river.FsRiver.isMappingExist(FsRiver  
.java:300)  
at fr.pilato.elasticsearch.river.fs.river.FsRiver.pushMapping(FsRiver.ja  
va:315)  
at fr.pilato.elasticsearch.river.fs.river.FsRiver.start(FsRiver.java:229  
)  
at org.elasticsearch.river.RiversService.createRiver(RiversService.java:  
148)  
at org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
Service.java:275)  
at org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
Service.java:269)  
at org.elasticsearch.action.support.TransportAction$ThreadedActionListen  
er$1.run(TransportAction.java:93)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
at java.lang.Thread.run(Unknown Source)

On 6 March 2014 10:32, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:  
And if I run query

GET /\_river/mydocs/\_meta

I get result

{  
"\_index": "\_river",  
"\_type": "mydocs",  
"\_id": "\_meta",  
"found": false  
}

On 6 March 2014 10:29, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:  
Hi David,

I am using version 0.4.0

On 5 March 2014 23:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
Are U using an old version of fsriver?

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 5 mars 2014 à 17:58:54, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:

Even that gave me same results

Thanks & Regards,  
Nithesh Erakkara  
Phone :- +91-9833-742-684  
Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)

On 5 Mar 2014, at 22:20, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

Don't search in \_river index but in destination index, which is `mydocs` in your case.

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 5 mars 2014 à 11:50:47, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@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  
}  
}

1. Check if river created or not

GET /\_river/mynewriver/\_search

1. 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com). To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com](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](https://groups.google.com/groups/opt_out).

## You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group. To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe). To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@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](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](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com).

## For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local).

For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Thanks & Regards,  
Nithesh Erakkara  
[enitesh@gmail.com](mailto:enitesh@gmail.com)  
+919833742684

--  
Thanks & Regards,  
Nithesh Erakkara  
[enitesh@gmail.com](mailto:enitesh@gmail.com)  
+919833742684

## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684

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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O\_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com).

## For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr).

For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Thanks & Regards,  
Nithesh Erakkara  
[enitesh@gmail.com](mailto:enitesh@gmail.com)  
+919833742684

## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684

## 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com). To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com). For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

## You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group. To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe). To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com). To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr). For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com).

## For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local).

For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684

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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-naqpjY5rm4Doq-31hnLg03EhTahtOb\_UgkhnWVqLkvKGw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-naqpjY5rm4Doq-31hnLg03EhTahtOb_UgkhnWVqLkvKGw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.53183787.1e7ff521.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.53183787.1e7ff521.7bfa%40MacBook-Air-de-David.local).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Nitesh\_Earkara](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@Nitesh\_Earkara](https://discuss.elastic.co/u/Nitesh_Earkara)\
**Post date:** [March 6, 2014, 8:54am UTC](https://discuss.elastic.co/t/index-files-using-fsriver/16169/16 "2014-03-06T08:54:13Z")

</div>

When I use match\_phrase query on file content, it returns proper result

POST /mydocs/doc/\_search?pretty=true  
{"query": {"match\_phrase": {"content": "some text goes here"}}}

But if i use the same query on file name, property, it returns all possible  
combinations

POST /mydocs/doc/\_search?pretty=true  
{"query": {"match\_phrase": {"file.filename":  
"AnnualCompensation\_20122013.pdf"}}}

For e.g in above query, it returns two seperates filename string by \_ and  
returns all documents which have file name starting with AnnualCompensation

On 6 March 2014 14:21, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:

> Thanks David.
> 
> GET /mydocs/doc/\_mapping?pretty
> 
> This query returns below result
> 
> "doc": {  
> "properties": {  
> "content": {  
> "type": "string",  
> "store": true  
> },  
> "file": {  
> "properties": {  
> "content\_type": {  
> "type": "string",  
> "store": true,  
> "analyzer": "simple"  
> },  
> "filename": {  
> "type": "string",  
> "store": true,  
> "analyzer": "simple"
> 
> I am not pasting complete result.
> 
> If i use term query, then i don't get any result
> 
> GET /mydocs/doc/\_search  
> {  
> "query" : {  
> "term" : {  
> "file.filename" : "AnnualCompensation\_20132014.pdf"  
> }  
> }  
> }
> 
> Result is
> 
> _{_
> 
> - "took": 2,\*
> - "timed\_out": false,\*
> - "\_shards": {\*
> - 
> 
> ```
> "total": 5,*
> 
> ```
> 
> - 
> 
> ```
> "successful": 5,*
> 
> ```
> 
> - 
> 
> ```
> "failed": 0*
> 
> ```
> 
> - },\*
> - "hits": {\*
> - 
> 
> ```
> "total": 0,*
> 
> ```
> 
> - 
> 
> ```
> "max_score": null,*
> 
> ```
> 
> - 
> 
> ```
> "hits": []*
> 
> ```
> 
> - }\*  
> _}_
> 
> On 6 March 2014 13:55, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > Hmm...  
> > I looked at the code of fsriver 0.4.0 and it sounds like I use by default  
> > simple analyzer on file.filename field.
> > 
> > [https://github.com/dadoonet/fsriver/blob/fsriver-0.4.0/src/main/java/fr/pilato/elasticsearch/river/fs/util/FsRiverUtil.java#L132](https://github.com/dadoonet/fsriver/blob/fsriver-0.4.0/src/main/java/fr/pilato/elasticsearch/river/fs/util/FsRiverUtil.java#L132)
> > 
> > So your query should work...
> > 
> > Just to check, could you try with a TermQuery instead a MatchQuery?
> > 
> > Could you also gist the mapping?
> > 
> > GET /mydocs/doc/\_mapping?pretty
> > 
> > --  
> > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> > 
> > Le 6 mars 2014 à 09:17:20, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:
> > 
> > Thanks David.
> > 
> > Can you suggest which query should I use for exact match?
> > 
> > Thanks & Regards,
> > 
> > _Nithesh Erakkara_
> > 
> > Phone :- +91-9833-742-684
> > 
> > Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)
> > 
> > On 6 Mar 2014, at 13:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > 
> > Probably because file.filename is analyzed.  
> > Using a match query will basically search here for "mydocument" or "pdf".
> > 
> > Default mapping and field names will change with coming FSriver 1.0.
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 6 mars 2014 à 08:25, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) a écrit :
> > 
> > Hi David,
> > 
> > Thanks a lot for your help
> > 
> > I did install 0.90.12 version of es and installed plugin fsriver 0.4.0.
> > 
> > Now the query
> > 
> > GET /mydocs/\_search
> > 
> > is retrieving me results of all the document present in the folder as per  
> > index
> > 
> > but when I run query
> > 
> > GET /mydocs/doc/\_search  
> > {  
> > "query" : {  
> > "match" : {  
> > "file.filename" : "mydocument.pdf"  
> > }  
> > }  
> > }
> > 
> > it retrieves all results and not just the document that has file name  
> > mydocument.pdf.
> > 
> > Please let me know if I am querying properly or do let me know the proper  
> > syntax for the same.
> > 
> > On 6 March 2014 12:12, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:
> > 
> > > Hi David,
> > > 
> > > Thanks. So is there a bug in existing fsriver or is it not compatible  
> > > with es 1.0.
> > > 
> > > If its compatible with any previous version of es, let me know. I would  
> > > like to try it out.
> > > 
> > > Also if there are any other rivers i can use , do let me know.
> > > 
> > > On 6 March 2014 12:08, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > 
> > > > Fsriver has not been released yet for es 1.0.
> > > > 
> > > > I will do it soonish.
> > > > 
> > > > --  
> > > > David 😉  
> > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > 
> > > > Le 6 mars 2014 à 06:31, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) a écrit :
> > > > 
> > > > My Elasticsearch server window shows below things displayed
> > > > 
> > > > [2014-03-05 17:21:22,782][INFO][node] [Frank  
> > > > Payne] versio  
> > > > n[1.0.1], pid[4896], build[5c03844/2014-02-25T15:52:53Z]  
> > > > [2014-03-05 17:21:22,784][INFO][node] [Frank  
> > > > Payne] initia  
> > > > lizing ...  
> > > > [2014-03-05 17:21:23,697][INFO][plugins] [Frank  
> > > > Payne] loaded  
> > > > [jdbc-river, river-fs], sites   
> > > > [2014-03-05 17:21:31,848][INFO][node] [Frank  
> > > > Payne] initia  
> > > > lized  
> > > > [2014-03-05 17:21:31,848][INFO][node] [Frank  
> > > > Payne] starti  
> > > > ng ...  
> > > > [2014-03-05 17:21:32,308][INFO][transport] [Frank  
> > > > Payne] bound\_  
> > > > address {inet[/0:0:0:0:0:0:0:0:9301]}, publish\_address {inet[/  
> > > > 192.9.205.37:9301]  
> > > > }  
> > > > [2014-03-05 17:21:35,669][INFO][cluster.service] [Frank  
> > > > Payne] detect  
> > > > ed\_master [Mad Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/  
> > > > 192.9.205.37:  
> > > > 9300]], added {[Mad  
> > > > Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.20  
> > > > 5.37:9300]],}, reason: zen-disco-receive(from master [[Mad  
> > > > Thinker][5SmeADN9SYex  
> > > > _owrQ9CLHA][JLTIVMDEV10][inet[/192.9.205.37:9300]]])  
> > > > [2014-03-05 17:21:35,725][INFO][discovery] [Frank  
> > > > Payne] elasti  
> > > > csearch/A8mG-X4\_S3KPLnQj9gPLfg  
> > > > [2014-03-05 17:21:35,822][INFO][http] [Frank  
> > > > Payne] bound_  
> > > > address {inet[/0:0:0:0:0:0:0:0:9201]}, publish\_address {inet[/  
> > > > 192.9.205.37:9201]  
> > > > }  
> > > > [2014-03-05 17:21:35,826][INFO][node] [Frank  
> > > > Payne] starte  
> > > > d  
> > > > [2014-03-05 17:22:07,045][INFO  
> > > > ][fr.pilato.elasticsearch.river.fs.river.FsRiver]  
> > > > [Frank Payne] [fs][mynewriver] Starting fs river scanning  
> > > > [2014-03-05 17:22:07,062][WARN][river] [Frank  
> > > > Payne] failed  
> > > > to get \_meta from [fs]/[mynewriver]  
> > > > java.lang.NoSuchMethodError:  
> > > > org.elasticsearch.action.admin.cluster.state.Cluste  
> > > > rStateRequestBuilder.setFilterIndices([Ljava/lang/String;)Lorg/elasticsearch/act  
> > > > ion/admin/cluster/state/ClusterStateRequestBuilder;  
> > > > at  
> > > > fr.pilato.elasticsearch.river.fs.river.FsRiver.isMappingExist(FsRiver  
> > > > .java:300)  
> > > > at  
> > > > fr.pilato.elasticsearch.river.fs.river.FsRiver.pushMapping(FsRiver.ja  
> > > > va:315)  
> > > > at  
> > > > fr.pilato.elasticsearch.river.fs.river.FsRiver.start(FsRiver.java:229  
> > > > )  
> > > > at  
> > > > org.elasticsearch.river.RiversService.createRiver(RiversService.java:  
> > > > 148)  
> > > > at  
> > > > org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
> > > > Service.java:275)  
> > > > at  
> > > > org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
> > > > Service.java:269)  
> > > > at  
> > > > org.elasticsearch.action.support.TransportAction$ThreadedActionListen  
> > > > er$1.run(TransportAction.java:93)  
> > > > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown  
> > > > Source)  
> > > > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown  
> > > > Source)  
> > > > at java.lang.Thread.run(Unknown Source)
> > > > 
> > > > On 6 March 2014 10:32, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:
> > > > 
> > > > > And if I run query
> > > > > 
> > > > > GET /\_river/mydocs/\_meta
> > > > > 
> > > > > I get result
> > > > > 
> > > > > {  
> > > > > "\_index": "\_river",  
> > > > > "\_type": "mydocs",  
> > > > > "\_id": "\_meta",  
> > > > > "found": false  
> > > > > }
> > > > > 
> > > > > On 6 March 2014 10:29, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:
> > > > > 
> > > > > > Hi David,
> > > > > > 
> > > > > > I am using version 0.4.0
> > > > > > 
> > > > > > On 5 March 2014 23:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > > > > 
> > > > > > > Are U using an old version of fsriver?
> > > > > > > 
> > > > > > > ```
> > > > > > > --
> > > > > > > 
> > > > > > > ```
> > > > > > > 
> > > > > > > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> > > > > > > [http://Elasticsearch.com](http://Elasticsearch.com)_  
> > > > > > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> > > > > > > 
> > > > > > > Le 5 mars 2014 à 17:58:54, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a  
> > > > > > > écrit:
> > > > > > > 
> > > > > > > Even that gave me same results
> > > > > > > 
> > > > > > > Thanks & Regards,
> > > > > > > 
> > > > > > > _Nithesh Erakkara_
> > > > > > > 
> > > > > > > Phone :- +91-9833-742-684
> > > > > > > 
> > > > > > > Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)
> > > > > > > 
> > > > > > > On 5 Mar 2014, at 22:20, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > > > > > 
> > > > > > > Don't search in \_river index but in destination index, which is  
> > > > > > > `mydocs` in your case.
> > > > > > > 
> > > > > > > ```
> > > > > > > --
> > > > > > > 
> > > > > > > ```
> > > > > > > 
> > > > > > > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> > > > > > > [http://Elasticsearch.com](http://Elasticsearch.com)_  
> > > > > > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> > > > > > > 
> > > > > > > Le 5 mars 2014 à 11:50:47, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@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  
> > > > > > > }  
> > > > > > > }
> > > > > > > 
> > > > > > > 1. Check if river created or not
> > > > > > > 
> > > > > > > GET /\_river/mynewriver/\_search
> > > > > > > 
> > > > > > > 1. 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > > To view this discussion on the web visit  
> > > > > > > [https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > > .  
> > > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > > > 
> > > > > > > --  
> > > > > > > You received this message because you are subscribed to a topic in  
> > > > > > > the Google Groups "elasticsearch" group.  
> > > > > > > To unsubscribe from this topic, visit  
> > > > > > > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe)  
> > > > > > > .  
> > > > > > > To unsubscribe from this group and all its topics, send an email to  
> > > > > > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@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](https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer)  
> > > > > > > .  
> > > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > > To view this discussion on the web visit  
> > > > > > > [https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com)[https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com?utm_medium=email&utm_source=footer).
> > > > > > > 
> > > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > > > 
> > > > > > > --  
> > > > > > > You received this message because you are subscribed to a topic in  
> > > > > > > the Google Groups "elasticsearch" group.  
> > > > > > > To unsubscribe from this topic, visit  
> > > > > > > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe)  
> > > > > > > .  
> > > > > > > To unsubscribe from this group and all its topics, send an email to  
> > > > > > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > > To view this discussion on the web visit  
> > > > > > > [https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer).
> > > > > > > 
> > > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > > 
> > > > > > --  
> > > > > > Thanks & Regards,  
> > > > > > Nithesh Erakkara  
> > > > > > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > > > > > +919833742684
> > > > > 
> > > > > --  
> > > > > Thanks & Regards,  
> > > > > Nithesh Erakkara  
> > > > > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > > > > +919833742684
> > > > 
> > > > ## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684
> > > > 
> > > > 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O\_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O\_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com?utm_medium=email&utm_source=footer).
> > > > 
> > > > ## For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > You received this message because you are subscribed to a topic in the  
> > > > Google Groups "elasticsearch" group.  
> > > > To unsubscribe from this topic, visit  
> > > > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe)  
> > > > .  
> > > > To unsubscribe from this group and all its topics, send an email to  
> > > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr?utm_medium=email&utm_source=footer).
> > > > 
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > Thanks & Regards,  
> > > Nithesh Erakkara  
> > > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > > +919833742684
> > 
> > ## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684
> > 
> > ## 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com). To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com?utm_medium=email&utm_source=footer) . For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com)[https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> Thanks & Regards,  
> Nithesh Erakkara  
> [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> +919833742684

--  
Thanks & Regards,  
Nithesh Erakkara  
[enitesh@gmail.com](mailto:enitesh@gmail.com)  
+919833742684

--  
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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb7psKyD8NSv19EPPCQhoJbPh5X1Nauj7q3Y2cAgs35Fg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb7psKyD8NSv19EPPCQhoJbPh5X1Nauj7q3Y2cAgs35Fg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Nitesh\_Earkara](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@Nitesh\_Earkara](https://discuss.elastic.co/u/Nitesh_Earkara)\
**Post date:** [March 6, 2014, 8:55am UTC](https://discuss.elastic.co/t/index-files-using-fsriver/16169/17 "2014-03-06T08:55:09Z")

</div>

Even the lowercase didn't work.

On 6 March 2014 14:23, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Probably because you need to lowercase it in that case:
> 
> GET /mydocs/doc/\_search  
> {  
> "query" : {  
> "term" : {  
> "file.filename" : "annualcompensation\_20132014.pdf"  
> }  
> }  
> }
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> 
> Le 6 mars 2014 à 09:51:13, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:
> 
> Thanks David.
> 
> GET /mydocs/doc/\_mapping?pretty
> 
> This query returns below result
> 
> "doc": {  
> "properties": {  
> "content": {  
> "type": "string",  
> "store": true  
> },  
> "file": {  
> "properties": {  
> "content\_type": {  
> "type": "string",  
> "store": true,  
> "analyzer": "simple"  
> },  
> "filename": {  
> "type": "string",  
> "store": true,  
> "analyzer": "simple"
> 
> I am not pasting complete result.
> 
> If i use term query, then i don't get any result
> 
> GET /mydocs/doc/\_search  
> {  
> "query" : {  
> "term" : {  
> "file.filename" : "AnnualCompensation\_20132014.pdf"  
> }  
> }  
> }
> 
> Result is
> 
> _{_
> 
> - "took": 2,\*
> - "timed\_out": false,\*
> - "\_shards": {\*
> - 
> 
> ```
> "total": 5,*
> 
> ```
> 
> - 
> 
> ```
> "successful": 5,*
> 
> ```
> 
> - 
> 
> ```
> "failed": 0*
> 
> ```
> 
> - },\*
> - "hits": {\*
> - 
> 
> ```
> "total": 0,*
> 
> ```
> 
> - 
> 
> ```
> "max_score": null,*
> 
> ```
> 
> - 
> 
> ```
> "hits": []*
> 
> ```
> 
> - }\*  
> _}_
> 
> On 6 March 2014 13:55, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > Hmm...  
> > I looked at the code of fsriver 0.4.0 and it sounds like I use by  
> > default simple analyzer on file.filename field.
> > 
> > [https://github.com/dadoonet/fsriver/blob/fsriver-0.4.0/src/main/java/fr/pilato/elasticsearch/river/fs/util/FsRiverUtil.java#L132](https://github.com/dadoonet/fsriver/blob/fsriver-0.4.0/src/main/java/fr/pilato/elasticsearch/river/fs/util/FsRiverUtil.java#L132)
> > 
> > So your query should work...
> > 
> > Just to check, could you try with a TermQuery instead a MatchQuery?
> > 
> > Could you also gist the mapping?
> > 
> > GET /mydocs/doc/\_mapping?pretty
> > 
> > ```
> > --
> > 
> > ```
> > 
> > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> > 
> > Le 6 mars 2014 à 09:17:20, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:
> > 
> > Thanks David.
> > 
> > Can you suggest which query should I use for exact match?
> > 
> > Thanks & Regards,
> > 
> > _Nithesh Erakkara_
> > 
> > Phone :- +91-9833-742-684
> > 
> > Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)
> > 
> > On 6 Mar 2014, at 13:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > 
> > Probably because file.filename is analyzed.  
> > Using a match query will basically search here for "mydocument" or "pdf".
> > 
> > Default mapping and field names will change with coming FSriver 1.0.
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 6 mars 2014 à 08:25, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) a écrit :
> > 
> > Hi David,
> > 
> > Thanks a lot for your help
> > 
> > I did install 0.90.12 version of es and installed plugin fsriver 0.4.0.
> > 
> > Now the query
> > 
> > GET /mydocs/\_search
> > 
> > is retrieving me results of all the document present in the folder as per  
> > index
> > 
> > but when I run query
> > 
> > GET /mydocs/doc/\_search  
> > {  
> > "query" : {  
> > "match" : {  
> > "file.filename" : "mydocument.pdf"  
> > }  
> > }  
> > }
> > 
> > it retrieves all results and not just the document that has file name  
> > mydocument.pdf.
> > 
> > Please let me know if I am querying properly or do let me know the proper  
> > syntax for the same.
> > 
> > On 6 March 2014 12:12, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:
> > 
> > > Hi David,
> > > 
> > > Thanks. So is there a bug in existing fsriver or is it not compatible  
> > > with es 1.0.
> > > 
> > > If its compatible with any previous version of es, let me know. I would  
> > > like to try it out.
> > > 
> > > Also if there are any other rivers i can use , do let me know.
> > > 
> > > On 6 March 2014 12:08, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > 
> > > > Fsriver has not been released yet for es 1.0.
> > > > 
> > > > I will do it soonish.
> > > > 
> > > > --  
> > > > David 😉  
> > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > 
> > > > Le 6 mars 2014 à 06:31, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) a écrit :
> > > > 
> > > > My Elasticsearch server window shows below things displayed
> > > > 
> > > > [2014-03-05 17:21:22,782][INFO][node] [Frank  
> > > > Payne] versio  
> > > > n[1.0.1], pid[4896], build[5c03844/2014-02-25T15:52:53Z]  
> > > > [2014-03-05 17:21:22,784][INFO][node] [Frank  
> > > > Payne] initia  
> > > > lizing ...  
> > > > [2014-03-05 17:21:23,697][INFO][plugins] [Frank  
> > > > Payne] loaded  
> > > > [jdbc-river, river-fs], sites   
> > > > [2014-03-05 17:21:31,848][INFO][node] [Frank  
> > > > Payne] initia  
> > > > lized  
> > > > [2014-03-05 17:21:31,848][INFO][node] [Frank  
> > > > Payne] starti  
> > > > ng ...  
> > > > [2014-03-05 17:21:32,308][INFO][transport] [Frank  
> > > > Payne] bound\_  
> > > > address {inet[/0:0:0:0:0:0:0:0:9301]}, publish\_address {inet[/  
> > > > 192.9.205.37:9301]  
> > > > }  
> > > > [2014-03-05 17:21:35,669][INFO][cluster.service] [Frank  
> > > > Payne] detect  
> > > > ed\_master [Mad Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/  
> > > > 192.9.205.37:  
> > > > 9300]], added {[Mad  
> > > > Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.20  
> > > > 5.37:9300]],}, reason: zen-disco-receive(from master [[Mad  
> > > > Thinker][5SmeADN9SYex  
> > > > _owrQ9CLHA][JLTIVMDEV10][inet[/192.9.205.37:9300]]])  
> > > > [2014-03-05 17:21:35,725][INFO][discovery] [Frank  
> > > > Payne] elasti  
> > > > csearch/A8mG-X4\_S3KPLnQj9gPLfg  
> > > > [2014-03-05 17:21:35,822][INFO][http] [Frank  
> > > > Payne] bound_  
> > > > address {inet[/0:0:0:0:0:0:0:0:9201]}, publish\_address {inet[/  
> > > > 192.9.205.37:9201]  
> > > > }  
> > > > [2014-03-05 17:21:35,826][INFO][node] [Frank  
> > > > Payne] starte  
> > > > d  
> > > > [2014-03-05 17:22:07,045][INFO  
> > > > ][fr.pilato.elasticsearch.river.fs.river.FsRiver]  
> > > > [Frank Payne] [fs][mynewriver] Starting fs river scanning  
> > > > [2014-03-05 17:22:07,062][WARN][river] [Frank  
> > > > Payne] failed  
> > > > to get \_meta from [fs]/[mynewriver]  
> > > > java.lang.NoSuchMethodError:  
> > > > org.elasticsearch.action.admin.cluster.state.Cluste  
> > > > rStateRequestBuilder.setFilterIndices([Ljava/lang/String;)Lorg/elasticsearch/act  
> > > > ion/admin/cluster/state/ClusterStateRequestBuilder;  
> > > > at  
> > > > fr.pilato.elasticsearch.river.fs.river.FsRiver.isMappingExist(FsRiver  
> > > > .java:300)  
> > > > at  
> > > > fr.pilato.elasticsearch.river.fs.river.FsRiver.pushMapping(FsRiver.ja  
> > > > va:315)  
> > > > at  
> > > > fr.pilato.elasticsearch.river.fs.river.FsRiver.start(FsRiver.java:229  
> > > > )  
> > > > at  
> > > > org.elasticsearch.river.RiversService.createRiver(RiversService.java:  
> > > > 148)  
> > > > at  
> > > > org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
> > > > Service.java:275)  
> > > > at  
> > > > org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
> > > > Service.java:269)  
> > > > at  
> > > > org.elasticsearch.action.support.TransportAction$ThreadedActionListen  
> > > > er$1.run(TransportAction.java:93)  
> > > > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown  
> > > > Source)  
> > > > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown  
> > > > Source)  
> > > > at java.lang.Thread.run(Unknown Source)
> > > > 
> > > > On 6 March 2014 10:32, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:
> > > > 
> > > > > And if I run query
> > > > > 
> > > > > GET /\_river/mydocs/\_meta
> > > > > 
> > > > > I get result
> > > > > 
> > > > > {  
> > > > > "\_index": "\_river",  
> > > > > "\_type": "mydocs",  
> > > > > "\_id": "\_meta",  
> > > > > "found": false  
> > > > > }
> > > > > 
> > > > > On 6 March 2014 10:29, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:
> > > > > 
> > > > > > Hi David,
> > > > > > 
> > > > > > I am using version 0.4.0
> > > > > > 
> > > > > > On 5 March 2014 23:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > > > > 
> > > > > > > Are U using an old version of fsriver?
> > > > > > > 
> > > > > > > ```
> > > > > > > --
> > > > > > > 
> > > > > > > ```
> > > > > > > 
> > > > > > > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> > > > > > > [http://Elasticsearch.com](http://Elasticsearch.com)_  
> > > > > > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> > > > > > > 
> > > > > > > Le 5 mars 2014 à 17:58:54, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a  
> > > > > > > écrit:
> > > > > > > 
> > > > > > > Even that gave me same results
> > > > > > > 
> > > > > > > Thanks & Regards,
> > > > > > > 
> > > > > > > _Nithesh Erakkara_
> > > > > > > 
> > > > > > > Phone :- +91-9833-742-684
> > > > > > > 
> > > > > > > Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)
> > > > > > > 
> > > > > > > On 5 Mar 2014, at 22:20, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > > > > > 
> > > > > > > Don't search in \_river index but in destination index, which is  
> > > > > > > `mydocs` in your case.
> > > > > > > 
> > > > > > > ```
> > > > > > > --
> > > > > > > 
> > > > > > > ```
> > > > > > > 
> > > > > > > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> > > > > > > [http://Elasticsearch.com](http://Elasticsearch.com)_  
> > > > > > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> > > > > > > 
> > > > > > > Le 5 mars 2014 à 11:50:47, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@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  
> > > > > > > }  
> > > > > > > }
> > > > > > > 
> > > > > > > 1. Check if river created or not
> > > > > > > 
> > > > > > > GET /\_river/mynewriver/\_search
> > > > > > > 
> > > > > > > 1. 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > > To view this discussion on the web visit  
> > > > > > > [https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > > .  
> > > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > > > 
> > > > > > > --  
> > > > > > > You received this message because you are subscribed to a topic in  
> > > > > > > the Google Groups "elasticsearch" group.  
> > > > > > > To unsubscribe from this topic, visit  
> > > > > > > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe)  
> > > > > > > .  
> > > > > > > To unsubscribe from this group and all its topics, send an email to  
> > > > > > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@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](https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer)  
> > > > > > > .  
> > > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > > To view this discussion on the web visit  
> > > > > > > [https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com)[https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com?utm_medium=email&utm_source=footer).
> > > > > > > 
> > > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > > > 
> > > > > > > --  
> > > > > > > You received this message because you are subscribed to a topic in  
> > > > > > > the Google Groups "elasticsearch" group.  
> > > > > > > To unsubscribe from this topic, visit  
> > > > > > > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe)  
> > > > > > > .  
> > > > > > > To unsubscribe from this group and all its topics, send an email to  
> > > > > > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > > To view this discussion on the web visit  
> > > > > > > [https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer).
> > > > > > > 
> > > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > > 
> > > > > > --  
> > > > > > Thanks & Regards,  
> > > > > > Nithesh Erakkara  
> > > > > > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > > > > > +919833742684
> > > > > 
> > > > > --  
> > > > > Thanks & Regards,  
> > > > > Nithesh Erakkara  
> > > > > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > > > > +919833742684
> > > > 
> > > > ## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684
> > > > 
> > > > 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O\_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O\_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com?utm_medium=email&utm_source=footer).
> > > > 
> > > > ## For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > You received this message because you are subscribed to a topic in the  
> > > > Google Groups "elasticsearch" group.  
> > > > To unsubscribe from this topic, visit  
> > > > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe)  
> > > > .  
> > > > To unsubscribe from this group and all its topics, send an email to  
> > > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr?utm_medium=email&utm_source=footer).
> > > > 
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > Thanks & Regards,  
> > > Nithesh Erakkara  
> > > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > > +919833742684
> > 
> > ## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684
> > 
> > ## 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com). To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com?utm_medium=email&utm_source=footer) . For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com)[https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com?utm_medium=email&utm_source=footer).
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer).
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> ## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684
> 
> 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAOkk-naqpjY5rm4Doq-31hnLg03EhTahtOb\_UgkhnWVqLkvKGw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-naqpjY5rm4Doq-31hnLg03EhTahtOb_UgkhnWVqLkvKGw%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAOkk-naqpjY5rm4Doq-31hnLg03EhTahtOb\_UgkhnWVqLkvKGw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAOkk-naqpjY5rm4Doq-31hnLg03EhTahtOb_UgkhnWVqLkvKGw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/etPan.53183787.1e7ff521.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.53183787.1e7ff521.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.53183787.1e7ff521.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.53183787.1e7ff521.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Thanks & Regards,  
Nithesh Erakkara  
[enitesh@gmail.com](mailto:enitesh@gmail.com)  
+919833742684

--  
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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nayyA%3DNsvnxumoUg6wHMqWdDTaQ-eKBxq4Gv9uQE%2B5pTw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nayyA%3DNsvnxumoUg6wHMqWdDTaQ-eKBxq4Gv9uQE%2B5pTw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 6, 2014, 9:13am UTC](https://discuss.elastic.co/t/index-files-using-fsriver/16169/18 "2014-03-06T09:13:30Z")

</div>

Ha! I see.

curl "localhost:9200/\_analyze?analyzer=simple&pretty" -d 'AnnualCompensation\_20122013.pdf'

{  
"tokens" : [ {  
"token" : "annualcompensation",  
"start\_offset" : 0,  
"end\_offset" : 18,  
"type" : "word",  
"position" : 1  
}, {  
"token" : "pdf",  
"start\_offset" : 28,  
"end\_offset" : 31,  
"type" : "word",  
"position" : 2  
} ]  
}

Simple Analyzer does not simply lowercase the content but also break tokens which is not what I was expecting when reading: [http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-simple-analyzer.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-simple-analyzer.html)  
I should have read all details (one click later):  
A tokenizer of type lowercase that performs the function of Letter Tokenizer and Lower Case Token Filter together. It divides text at non-letters and converts them to lower case. While it is functionally equivalent to the combination of Letter Tokenizer and Lower Case Token Filter, there is a performance advantage to doing the two tasks at once, hence this (redundant) implementation.

Could you open an issue in FSRiver project so I can fix that?

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 6 mars 2014 à 09:55:12, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:

Even the lowercase didn't work.

On 6 March 2014 14:23, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
Probably because you need to lowercase it in that case:

GET /mydocs/doc/\_search  
{  
"query" : {  
"term" : {  
"file.filename" : "annualcompensation\_20132014.pdf"  
}  
}  
}

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 6 mars 2014 à 09:51:13, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:

Thanks David.

GET /mydocs/doc/\_mapping?pretty

This query returns below result

"doc": {  
"properties": {  
"content": {  
"type": "string",  
"store": true  
},  
"file": {  
"properties": {  
"content\_type": {  
"type": "string",  
"store": true,  
"analyzer": "simple"  
},  
"filename": {  
"type": "string",  
"store": true,  
"analyzer": "simple"

I am not pasting complete result.

If i use term query, then i don't get any result

GET /mydocs/doc/\_search  
{  
"query" : {  
"term" : {  
"file.filename" : "AnnualCompensation\_20132014.pdf"  
}  
}  
}

Result is

{  
"took": 2,  
"timed\_out": false,  
"\_shards": {  
"total": 5,  
"successful": 5,  
"failed": 0  
},  
"hits": {  
"total": 0,  
"max\_score": null,  
"hits": []  
}  
}

On 6 March 2014 13:55, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
Hmm…  
I looked at the code of fsriver 0.4.0 and it sounds like I use by default simple analyzer on file.filename field.

> <https://github.com/dadoonet/fscrawler/blob/fsriver-0.4.0/src/main/java/fr/pilato/elasticsearch/river/fs/util/FsRiverUtil.java>

So your query should work…

Just to check, could you try with a TermQuery instead a MatchQuery?

Could you also gist the mapping?

GET /mydocs/doc/\_mapping?pretty

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 6 mars 2014 à 09:17:20, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:

Thanks David.

Can you suggest which query should I use for exact match?

Thanks & Regards,  
Nithesh Erakkara  
Phone :- +91-9833-742-684  
Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)

On 6 Mar 2014, at 13:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

Probably because file.filename is analyzed.  
Using a match query will basically search here for "mydocument" or "pdf".

Default mapping and field names will change with coming FSriver 1.0.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 6 mars 2014 à 08:25, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) a écrit :

Hi David,

Thanks a lot for your help

I did install 0.90.12 version of es and installed plugin fsriver 0.4.0.

Now the query

GET /mydocs/\_search

is retrieving me results of all the document present in the folder as per index

but when I run query

GET /mydocs/doc/\_search  
{  
"query" : {  
"match" : {  
"file.filename" : "mydocument.pdf"  
}  
}  
}

it retrieves all results and not just the document that has file name mydocument.pdf.

Please let me know if I am querying properly or do let me know the proper syntax for the same.

On 6 March 2014 12:12, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:  
Hi David,

Thanks. So is there a bug in existing fsriver or is it not compatible with es 1.0.

If its compatible with any previous version of es, let me know. I would like to try it out.

Also if there are any other rivers i can use , do let me know.

On 6 March 2014 12:08, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
Fsriver has not been released yet for es 1.0.

I will do it soonish.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 6 mars 2014 à 06:31, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) a écrit :

My ElasticSearch server window shows below things displayed

[2014-03-05 17:21:22,782][INFO][node] [Frank Payne] versio  
n[1.0.1], pid[4896], build[5c03844/2014-02-25T15:52:53Z]  
[2014-03-05 17:21:22,784][INFO][node] [Frank Payne] initia  
lizing ...  
[2014-03-05 17:21:23,697][INFO][plugins] [Frank Payne] loaded  
[jdbc-river, river-fs], sites []  
[2014-03-05 17:21:31,848][INFO][node] [Frank Payne] initia  
lized  
[2014-03-05 17:21:31,848][INFO][node] [Frank Payne] starti  
ng ...  
[2014-03-05 17:21:32,308][INFO][transport] [Frank Payne] bound\_  
address {inet[/0:0:0:0:0:0:0:0:9301]}, publish\_address {inet[/192.9.205.37:9301]  
}  
[2014-03-05 17:21:35,669][INFO][cluster.service] [Frank Payne] detect  
ed\_master [Mad Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.205.37:  
9300]], added {[Mad Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.20  
5.37:9300]],}, reason: zen-disco-receive(from master [[Mad Thinker][5SmeADN9SYex  
_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.205.37:9300]]])  
[2014-03-05 17:21:35,725][INFO][discovery] [Frank Payne] elasti  
csearch/A8mG-X4\_S3KPLnQj9gPLfg  
[2014-03-05 17:21:35,822][INFO][http] [Frank Payne] bound_  
address {inet[/0:0:0:0:0:0:0:0:9201]}, publish\_address {inet[/192.9.205.37:9201]  
}  
[2014-03-05 17:21:35,826][INFO][node] [Frank Payne] starte  
d  
[2014-03-05 17:22:07,045][INFO][fr.pilato.elasticsearch.river.fs.river.FsRiver]  
[Frank Payne] [fs][mynewriver] Starting fs river scanning  
[2014-03-05 17:22:07,062][WARN][river] [Frank Payne] failed  
to get \_meta from [fs]/[mynewriver]  
java.lang.NoSuchMethodError: org.elasticsearch.action.admin.cluster.state.Cluste  
rStateRequestBuilder.setFilterIndices([Ljava/lang/String;)Lorg/elasticsearch/act  
ion/admin/cluster/state/ClusterStateRequestBuilder;  
at fr.pilato.elasticsearch.river.fs.river.FsRiver.isMappingExist(FsRiver  
.java:300)  
at fr.pilato.elasticsearch.river.fs.river.FsRiver.pushMapping(FsRiver.ja  
va:315)  
at fr.pilato.elasticsearch.river.fs.river.FsRiver.start(FsRiver.java:229  
)  
at org.elasticsearch.river.RiversService.createRiver(RiversService.java:  
148)  
at org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
Service.java:275)  
at org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
Service.java:269)  
at org.elasticsearch.action.support.TransportAction$ThreadedActionListen  
er$1.run(TransportAction.java:93)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
at java.lang.Thread.run(Unknown Source)

On 6 March 2014 10:32, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:  
And if I run query

GET /\_river/mydocs/\_meta

I get result

{  
"\_index": "\_river",  
"\_type": "mydocs",  
"\_id": "\_meta",  
"found": false  
}

On 6 March 2014 10:29, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:  
Hi David,

I am using version 0.4.0

On 5 March 2014 23:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
Are U using an old version of fsriver?

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 5 mars 2014 à 17:58:54, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:

Even that gave me same results

Thanks & Regards,  
Nithesh Erakkara  
Phone :- +91-9833-742-684  
Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)

On 5 Mar 2014, at 22:20, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

Don't search in \_river index but in destination index, which is `mydocs` in your case.

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 5 mars 2014 à 11:50:47, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@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  
}  
}

1. Check if river created or not

GET /\_river/mynewriver/\_search

1. 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com). To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com](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](https://groups.google.com/groups/opt_out).

## You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group. To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe). To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@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](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](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com).

## For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local).

For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Thanks & Regards,  
Nithesh Erakkara  
[enitesh@gmail.com](mailto:enitesh@gmail.com)  
+919833742684

--  
Thanks & Regards,  
Nithesh Erakkara  
[enitesh@gmail.com](mailto:enitesh@gmail.com)  
+919833742684

## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684

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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O\_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com).

## For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr).

For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Thanks & Regards,  
Nithesh Erakkara  
[enitesh@gmail.com](mailto:enitesh@gmail.com)  
+919833742684

## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684

## 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com). To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com). For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

## You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group. To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe). To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com). To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr). For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com).

## For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local).

For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684

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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-naqpjY5rm4Doq-31hnLg03EhTahtOb\_UgkhnWVqLkvKGw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-naqpjY5rm4Doq-31hnLg03EhTahtOb_UgkhnWVqLkvKGw%40mail.gmail.com).

## For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.53183787.1e7ff521.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.53183787.1e7ff521.7bfa%40MacBook-Air-de-David.local).

For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684

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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nayyA%3DNsvnxumoUg6wHMqWdDTaQ-eKBxq4Gv9uQE%2B5pTw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nayyA%3DNsvnxumoUg6wHMqWdDTaQ-eKBxq4Gv9uQE%2B5pTw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.53183c3a.5c482a97.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.53183c3a.5c482a97.7bfa%40MacBook-Air-de-David.local).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Nitesh\_Earkara](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@Nitesh\_Earkara](https://discuss.elastic.co/u/Nitesh_Earkara)\
**Post date:** [March 6, 2014, 10:50am UTC](https://discuss.elastic.co/t/index-files-using-fsriver/16169/19 "2014-03-06T10:50:40Z")

</div>

Hi David,

Thanks a lot for your help through out.

I have raised issue for the same.

Url - [file.filename should be not\_analyzed · Issue #53 · dadoonet/fscrawler · GitHub](https://github.com/dadoonet/fsriver/issues/53)

Please let me know once fix is available

Also I am not able to do a wildcard search

POST /mydocs/doc/\_search  
{"query": {"wildcard": {"content": "D\*"}}}

Above query returns no result eventhough there's a text Dear in the file  
contents  
Also

On 6 March 2014 14:43, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Ha! I see.
> 
> curl "localhost:9200/\_analyze?analyzer=simple&pretty" -d  
> 'AnnualCompensation\_20122013.pdf'
> 
> {
> 
> "tokens" : [ {
> 
> ```
> "token" : "annualcompensation",
> 
> "start_offset" : 0,
> 
> "end_offset" : 18,
> 
> "type" : "word",
> 
> "position" : 1
> 
> ```
> 
> }, {
> 
> ```
> "token" : "pdf",
> 
> "start_offset" : 28,
> 
> "end_offset" : 31,
> 
> "type" : "word",
> 
> "position" : 2
> 
> ```
> 
> } ]
> 
> }
> 
> Simple Analyzer does not simply lowercase the content but also break  
> tokens which is not what I was expecting when reading:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-simple-analyzer.html)  
> I should have read all details (one click later):  
> A tokenizer of type lowercase that performs the function of Letter  
> Tokenizer[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-letter-tokenizer.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-letter-tokenizer.html)  
> and Lower Case Token Filter[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-lowercase-tokenfilter.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-lowercase-tokenfilter.html) together.  
> It divides text at non-letters and converts them to lower case. While it is  
> functionally equivalent to the combination of Letter Tokenizer[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-letter-tokenizer.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-letter-tokenizer.html)  
> and Lower Case Token Filter[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-lowercase-tokenfilter.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-lowercase-tokenfilter.html),  
> there is a performance advantage to doing the two tasks at once, hence this  
> (redundant) implementation.
> 
> Could you open an issue in FSRiver project so I can fix that?
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> 
> Le 6 mars 2014 à 09:55:12, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:
> 
> Even the lowercase didn't work.
> 
> On 6 March 2014 14:23, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > Probably because you need to lowercase it in that case:
> > 
> > GET /mydocs/doc/\_search  
> > {  
> > "query" : {  
> > "term" : {  
> > "file.filename" : "annualcompensation\_20132014.pdf"  
> > }  
> > }  
> > }
> > 
> > ```
> > --
> > 
> > ```
> > 
> > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> > 
> > Le 6 mars 2014 à 09:51:13, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:
> > 
> > Thanks David.
> > 
> > GET /mydocs/doc/\_mapping?pretty
> > 
> > This query returns below result
> > 
> > "doc": {  
> > "properties": {  
> > "content": {  
> > "type": "string",  
> > "store": true  
> > },  
> > "file": {  
> > "properties": {  
> > "content\_type": {  
> > "type": "string",  
> > "store": true,  
> > "analyzer": "simple"  
> > },  
> > "filename": {  
> > "type": "string",  
> > "store": true,  
> > "analyzer": "simple"
> > 
> > I am not pasting complete result.
> > 
> > If i use term query, then i don't get any result
> > 
> > GET /mydocs/doc/\_search  
> > {  
> > "query" : {  
> > "term" : {  
> > "file.filename" : "AnnualCompensation\_20132014.pdf"  
> > }  
> > }  
> > }
> > 
> > Result is
> > 
> > _{_
> > 
> > - "took": 2,\*
> > - "timed\_out": false,\*
> > - "\_shards": {\*
> > - 
> > 
> > ```
> > "total": 5,*
> > 
> > ```
> > 
> > - 
> > 
> > ```
> > "successful": 5,*
> > 
> > ```
> > 
> > - 
> > 
> > ```
> > "failed": 0*
> > 
> > ```
> > 
> > - },\*
> > - "hits": {\*
> > - 
> > 
> > ```
> > "total": 0,*
> > 
> > ```
> > 
> > - 
> > 
> > ```
> > "max_score": null,*
> > 
> > ```
> > 
> > - 
> > 
> > ```
> > "hits": []*
> > 
> > ```
> > 
> > - }\*  
> > _}_
> > 
> > On 6 March 2014 13:55, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > 
> > > Hmm...  
> > > I looked at the code of fsriver 0.4.0 and it sounds like I use by  
> > > default simple analyzer on file.filename field.
> > > 
> > > [https://github.com/dadoonet/fsriver/blob/fsriver-0.4.0/src/main/java/fr/pilato/elasticsearch/river/fs/util/FsRiverUtil.java#L132](https://github.com/dadoonet/fsriver/blob/fsriver-0.4.0/src/main/java/fr/pilato/elasticsearch/river/fs/util/FsRiverUtil.java#L132)
> > > 
> > > So your query should work...
> > > 
> > > Just to check, could you try with a TermQuery instead a MatchQuery?
> > > 
> > > Could you also gist the mapping?
> > > 
> > > GET /mydocs/doc/\_mapping?pretty
> > > 
> > > ```
> > > --
> > > 
> > > ```
> > > 
> > > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> > > 
> > > Le 6 mars 2014 à 09:17:20, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:
> > > 
> > > Thanks David.
> > > 
> > > Can you suggest which query should I use for exact match?
> > > 
> > > Thanks & Regards,
> > > 
> > > _Nithesh Erakkara_
> > > 
> > > Phone :- +91-9833-742-684
> > > 
> > > Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)
> > > 
> > > On 6 Mar 2014, at 13:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > 
> > > Probably because file.filename is analyzed.  
> > > Using a match query will basically search here for "mydocument" or "pdf".
> > > 
> > > Default mapping and field names will change with coming FSriver 1.0.
> > > 
> > > --  
> > > David 😉  
> > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > 
> > > Le 6 mars 2014 à 08:25, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) a écrit :
> > > 
> > > Hi David,
> > > 
> > > Thanks a lot for your help
> > > 
> > > I did install 0.90.12 version of es and installed plugin fsriver 0.4.0.
> > > 
> > > Now the query
> > > 
> > > GET /mydocs/\_search
> > > 
> > > is retrieving me results of all the document present in the folder as  
> > > per index
> > > 
> > > but when I run query
> > > 
> > > GET /mydocs/doc/\_search  
> > > {  
> > > "query" : {  
> > > "match" : {  
> > > "file.filename" : "mydocument.pdf"  
> > > }  
> > > }  
> > > }
> > > 
> > > it retrieves all results and not just the document that has file name  
> > > mydocument.pdf.
> > > 
> > > Please let me know if I am querying properly or do let me know the  
> > > proper syntax for the same.
> > > 
> > > On 6 March 2014 12:12, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:
> > > 
> > > > Hi David,
> > > > 
> > > > Thanks. So is there a bug in existing fsriver or is it not compatible  
> > > > with es 1.0.
> > > > 
> > > > If its compatible with any previous version of es, let me know. I would  
> > > > like to try it out.
> > > > 
> > > > Also if there are any other rivers i can use , do let me know.
> > > > 
> > > > On 6 March 2014 12:08, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > > 
> > > > > Fsriver has not been released yet for es 1.0.
> > > > > 
> > > > > I will do it soonish.
> > > > > 
> > > > > --  
> > > > > David 😉  
> > > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > > 
> > > > > Le 6 mars 2014 à 06:31, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) a écrit :
> > > > > 
> > > > > My Elasticsearch server window shows below things displayed
> > > > > 
> > > > > [2014-03-05 17:21:22,782][INFO][node] [Frank  
> > > > > Payne] versio  
> > > > > n[1.0.1], pid[4896], build[5c03844/2014-02-25T15:52:53Z]  
> > > > > [2014-03-05 17:21:22,784][INFO][node] [Frank  
> > > > > Payne] initia  
> > > > > lizing ...  
> > > > > [2014-03-05 17:21:23,697][INFO][plugins] [Frank  
> > > > > Payne] loaded  
> > > > > [jdbc-river, river-fs], sites   
> > > > > [2014-03-05 17:21:31,848][INFO][node] [Frank  
> > > > > Payne] initia  
> > > > > lized  
> > > > > [2014-03-05 17:21:31,848][INFO][node] [Frank  
> > > > > Payne] starti  
> > > > > ng ...  
> > > > > [2014-03-05 17:21:32,308][INFO][transport] [Frank  
> > > > > Payne] bound\_  
> > > > > address {inet[/0:0:0:0:0:0:0:0:9301]}, publish\_address {inet[/  
> > > > > 192.9.205.37:9301]  
> > > > > }  
> > > > > [2014-03-05 17:21:35,669][INFO][cluster.service] [Frank  
> > > > > Payne] detect  
> > > > > ed\_master [Mad Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/  
> > > > > 192.9.205.37:  
> > > > > 9300]], added {[Mad  
> > > > > Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.20  
> > > > > 5.37:9300]],}, reason: zen-disco-receive(from master [[Mad  
> > > > > Thinker][5SmeADN9SYex  
> > > > > _owrQ9CLHA][JLTIVMDEV10][inet[/192.9.205.37:9300]]])  
> > > > > [2014-03-05 17:21:35,725][INFO][discovery] [Frank  
> > > > > Payne] elasti  
> > > > > csearch/A8mG-X4\_S3KPLnQj9gPLfg  
> > > > > [2014-03-05 17:21:35,822][INFO][http] [Frank  
> > > > > Payne] bound_  
> > > > > address {inet[/0:0:0:0:0:0:0:0:9201]}, publish\_address {inet[/  
> > > > > 192.9.205.37:9201]  
> > > > > }  
> > > > > [2014-03-05 17:21:35,826][INFO][node] [Frank  
> > > > > Payne] starte  
> > > > > d  
> > > > > [2014-03-05 17:22:07,045][INFO  
> > > > > ][fr.pilato.elasticsearch.river.fs.river.FsRiver]  
> > > > > [Frank Payne] [fs][mynewriver] Starting fs river scanning  
> > > > > [2014-03-05 17:22:07,062][WARN][river] [Frank  
> > > > > Payne] failed  
> > > > > to get \_meta from [fs]/[mynewriver]  
> > > > > java.lang.NoSuchMethodError:  
> > > > > org.elasticsearch.action.admin.cluster.state.Cluste  
> > > > > rStateRequestBuilder.setFilterIndices([Ljava/lang/String;)Lorg/elasticsearch/act  
> > > > > ion/admin/cluster/state/ClusterStateRequestBuilder;  
> > > > > at  
> > > > > fr.pilato.elasticsearch.river.fs.river.FsRiver.isMappingExist(FsRiver  
> > > > > .java:300)  
> > > > > at  
> > > > > fr.pilato.elasticsearch.river.fs.river.FsRiver.pushMapping(FsRiver.ja  
> > > > > va:315)  
> > > > > at  
> > > > > fr.pilato.elasticsearch.river.fs.river.FsRiver.start(FsRiver.java:229  
> > > > > )  
> > > > > at  
> > > > > org.elasticsearch.river.RiversService.createRiver(RiversService.java:  
> > > > > 148)  
> > > > > at  
> > > > > org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
> > > > > Service.java:275)  
> > > > > at  
> > > > > org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
> > > > > Service.java:269)  
> > > > > at  
> > > > > org.elasticsearch.action.support.TransportAction$ThreadedActionListen  
> > > > > er$1.run(TransportAction.java:93)  
> > > > > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown  
> > > > > Source)  
> > > > > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown  
> > > > > Source)  
> > > > > at java.lang.Thread.run(Unknown Source)
> > > > > 
> > > > > On 6 March 2014 10:32, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:
> > > > > 
> > > > > > And if I run query
> > > > > > 
> > > > > > GET /\_river/mydocs/\_meta
> > > > > > 
> > > > > > I get result
> > > > > > 
> > > > > > {  
> > > > > > "\_index": "\_river",  
> > > > > > "\_type": "mydocs",  
> > > > > > "\_id": "\_meta",  
> > > > > > "found": false  
> > > > > > }
> > > > > > 
> > > > > > On 6 March 2014 10:29, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:
> > > > > > 
> > > > > > > Hi David,
> > > > > > > 
> > > > > > > I am using version 0.4.0
> > > > > > > 
> > > > > > > On 5 March 2014 23:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > > > > > 
> > > > > > > > Are U using an old version of fsriver?
> > > > > > > > 
> > > > > > > > ```
> > > > > > > > --
> > > > > > > > 
> > > > > > > > ```
> > > > > > > > 
> > > > > > > > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> > > > > > > > [http://Elasticsearch.com](http://Elasticsearch.com)_  
> > > > > > > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> > > > > > > > 
> > > > > > > > Le 5 mars 2014 à 17:58:54, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a  
> > > > > > > > écrit:
> > > > > > > > 
> > > > > > > > Even that gave me same results
> > > > > > > > 
> > > > > > > > Thanks & Regards,
> > > > > > > > 
> > > > > > > > _Nithesh Erakkara_
> > > > > > > > 
> > > > > > > > Phone :- +91-9833-742-684
> > > > > > > > 
> > > > > > > > Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)
> > > > > > > > 
> > > > > > > > On 5 Mar 2014, at 22:20, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > > > > > > 
> > > > > > > > Don't search in \_river index but in destination index, which is  
> > > > > > > > `mydocs` in your case.
> > > > > > > > 
> > > > > > > > ```
> > > > > > > > --
> > > > > > > > 
> > > > > > > > ```
> > > > > > > > 
> > > > > > > > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> > > > > > > > [http://Elasticsearch.com](http://Elasticsearch.com)_  
> > > > > > > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> > > > > > > > 
> > > > > > > > Le 5 mars 2014 à 11:50:47, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@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  
> > > > > > > > }  
> > > > > > > > }
> > > > > > > > 
> > > > > > > > 1. Check if river created or not
> > > > > > > > 
> > > > > > > > GET /\_river/mynewriver/\_search
> > > > > > > > 
> > > > > > > > 1. 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > > > To view this discussion on the web visit  
> > > > > > > > [https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > > > > .  
> > > > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > > > > 
> > > > > > > > --  
> > > > > > > > You received this message because you are subscribed to a topic in  
> > > > > > > > the Google Groups "elasticsearch" group.  
> > > > > > > > To unsubscribe from this topic, visit  
> > > > > > > > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe)  
> > > > > > > > .  
> > > > > > > > To unsubscribe from this group and all its topics, send an email to  
> > > > > > > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@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](https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.531755c3.1f16e9e8.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer)  
> > > > > > > > .  
> > > > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > > > To view this discussion on the web visit  
> > > > > > > > [https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com)[https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com?utm_medium=email&utm_source=footer).
> > > > > > > > 
> > > > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > > > > 
> > > > > > > > --  
> > > > > > > > You received this message because you are subscribed to a topic in  
> > > > > > > > the Google Groups "elasticsearch" group.  
> > > > > > > > To unsubscribe from this topic, visit  
> > > > > > > > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe)  
> > > > > > > > .  
> > > > > > > > To unsubscribe from this group and all its topics, send an email to  
> > > > > > > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > > > To view this discussion on the web visit  
> > > > > > > > [https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer).
> > > > > > > > 
> > > > > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > > > 
> > > > > > > --  
> > > > > > > Thanks & Regards,  
> > > > > > > Nithesh Erakkara  
> > > > > > > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > > > > > > +919833742684
> > > > > > 
> > > > > > --  
> > > > > > Thanks & Regards,  
> > > > > > Nithesh Erakkara  
> > > > > > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > > > > > +919833742684
> > > > > 
> > > > > ## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684
> > > > > 
> > > > > 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > To view this discussion on the web visit  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O\_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O\_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com?utm_medium=email&utm_source=footer).
> > > > > 
> > > > > ## For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > 
> > > > > You received this message because you are subscribed to a topic in the  
> > > > > Google Groups "elasticsearch" group.  
> > > > > To unsubscribe from this topic, visit  
> > > > > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe)  
> > > > > .  
> > > > > To unsubscribe from this group and all its topics, send an email to  
> > > > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > To view this discussion on the web visit  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr?utm_medium=email&utm_source=footer).
> > > > > 
> > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --  
> > > > Thanks & Regards,  
> > > > Nithesh Erakkara  
> > > > [enitesh@gmail.com](mailto:enitesh@gmail.com)  
> > > > +919833742684
> > > 
> > > ## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684
> > > 
> > > ## 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com). To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com?utm_medium=email&utm_source=footer) . For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > You received this message because you are subscribed to a topic in the  
> > > Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit  
> > > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> > > To unsubscribe from this group and all its topics, send an email to  
> > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr)[https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com)[https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com?utm_medium=email&utm_source=footer).
> > > 
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > You received this message because you are subscribed to a topic in the  
> > > Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit  
> > > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> > > To unsubscribe from this group and all its topics, send an email to  
> > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer).
> > > 
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > ## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684
> > 
> > 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CAOkk-naqpjY5rm4Doq-31hnLg03EhTahtOb\_UgkhnWVqLkvKGw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-naqpjY5rm4Doq-31hnLg03EhTahtOb_UgkhnWVqLkvKGw%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAOkk-naqpjY5rm4Doq-31hnLg03EhTahtOb\_UgkhnWVqLkvKGw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAOkk-naqpjY5rm4Doq-31hnLg03EhTahtOb_UgkhnWVqLkvKGw%40mail.gmail.com?utm_medium=email&utm_source=footer).
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/etPan.53183787.1e7ff521.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.53183787.1e7ff521.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.53183787.1e7ff521.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.53183787.1e7ff521.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer).
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> ## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684
> 
> 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nayyA%3DNsvnxumoUg6wHMqWdDTaQ-eKBxq4Gv9uQE%2B5pTw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nayyA%3DNsvnxumoUg6wHMqWdDTaQ-eKBxq4Gv9uQE%2B5pTw%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAOkk-nayyA%3DNsvnxumoUg6wHMqWdDTaQ-eKBxq4Gv9uQE%2B5pTw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nayyA%3DNsvnxumoUg6wHMqWdDTaQ-eKBxq4Gv9uQE%2B5pTw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/etPan.53183c3a.5c482a97.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.53183c3a.5c482a97.7bfa%40MacBook-Air-de-David.local)[https://groups.google.com/d/msgid/elasticsearch/etPan.53183c3a.5c482a97.7bfa%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.53183c3a.5c482a97.7bfa%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Thanks & Regards,  
Nithesh Erakkara  
[enitesh@gmail.com](mailto:enitesh@gmail.com)  
+919833742684

--  
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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-napc%3Dj7fTSJL9a\_tCM14uqMamEuqVUeFr3ELxjVxORBdA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-napc%3Dj7fTSJL9a_tCM14uqMamEuqVUeFr3ELxjVxORBdA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 6, 2014, 11:26am UTC](https://discuss.elastic.co/t/index-files-using-fsriver/16169/20 "2014-03-06T11:26:24Z")

</div>

wildcard queries are not analyzed.  
may be d\* will work in your case.

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 6 mars 2014 à 11:50:46, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:

Hi David,

Thanks a lot for your help through out.

I have raised issue for the same.

Url - [https://github.com/dadoonet/fsriver/issues/53](https://github.com/dadoonet/fsriver/issues/53)

Please let me know once fix is available

Also I am not able to do a wildcard search

POST /mydocs/doc/\_search  
{"query": {"wildcard": {"content": "D\*"}}}

Above query returns no result eventhough there's a text Dear in the file contents  
Also

On 6 March 2014 14:43, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
Ha! I see.

curl "localhost:9200/\_analyze?analyzer=simple&pretty" -d 'AnnualCompensation\_20122013.pdf'

{  
"tokens" : [ {  
"token" : "annualcompensation",  
"start\_offset" : 0,  
"end\_offset" : 18,  
"type" : "word",  
"position" : 1  
}, {  
"token" : "pdf",  
"start\_offset" : 28,  
"end\_offset" : 31,  
"type" : "word",  
"position" : 2  
} ]  
}

Simple Analyzer does not simply lowercase the content but also break tokens which is not what I was expecting when reading: [http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-simple-analyzer.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-simple-analyzer.html)  
I should have read all details (one click later):  
A tokenizer of type lowercase that performs the function of Letter Tokenizer and Lower Case Token Filter together. It divides text at non-letters and converts them to lower case. While it is functionally equivalent to the combination of Letter Tokenizer and Lower Case Token Filter, there is a performance advantage to doing the two tasks at once, hence this (redundant) implementation.

Could you open an issue in FSRiver project so I can fix that?

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 6 mars 2014 à 09:55:12, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:

Even the lowercase didn't work.

On 6 March 2014 14:23, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
Probably because you need to lowercase it in that case:

GET /mydocs/doc/\_search  
{  
"query" : {  
"term" : {  
"file.filename" : "annualcompensation\_20132014.pdf"  
}  
}  
}

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 6 mars 2014 à 09:51:13, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:

Thanks David.

GET /mydocs/doc/\_mapping?pretty

This query returns below result

"doc": {  
"properties": {  
"content": {  
"type": "string",  
"store": true  
},  
"file": {  
"properties": {  
"content\_type": {  
"type": "string",  
"store": true,  
"analyzer": "simple"  
},  
"filename": {  
"type": "string",  
"store": true,  
"analyzer": "simple"

I am not pasting complete result.

If i use term query, then i don't get any result

GET /mydocs/doc/\_search  
{  
"query" : {  
"term" : {  
"file.filename" : "AnnualCompensation\_20132014.pdf"  
}  
}  
}

Result is

{  
"took": 2,  
"timed\_out": false,  
"\_shards": {  
"total": 5,  
"successful": 5,  
"failed": 0  
},  
"hits": {  
"total": 0,  
"max\_score": null,  
"hits": []  
}  
}

On 6 March 2014 13:55, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
Hmm…  
I looked at the code of fsriver 0.4.0 and it sounds like I use by default simple analyzer on file.filename field.

> <https://github.com/dadoonet/fscrawler/blob/fsriver-0.4.0/src/main/java/fr/pilato/elasticsearch/river/fs/util/FsRiverUtil.java>

So your query should work…

Just to check, could you try with a TermQuery instead a MatchQuery?

Could you also gist the mapping?

GET /mydocs/doc/\_mapping?pretty

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 6 mars 2014 à 09:17:20, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:

Thanks David.

Can you suggest which query should I use for exact match?

Thanks & Regards,  
Nithesh Erakkara  
Phone :- +91-9833-742-684  
Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)

On 6 Mar 2014, at 13:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

Probably because file.filename is analyzed.  
Using a match query will basically search here for "mydocument" or "pdf".

Default mapping and field names will change with coming FSriver 1.0.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 6 mars 2014 à 08:25, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) a écrit :

Hi David,

Thanks a lot for your help

I did install 0.90.12 version of es and installed plugin fsriver 0.4.0.

Now the query

GET /mydocs/\_search

is retrieving me results of all the document present in the folder as per index

but when I run query

GET /mydocs/doc/\_search  
{  
"query" : {  
"match" : {  
"file.filename" : "mydocument.pdf"  
}  
}  
}

it retrieves all results and not just the document that has file name mydocument.pdf.

Please let me know if I am querying properly or do let me know the proper syntax for the same.

On 6 March 2014 12:12, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:  
Hi David,

Thanks. So is there a bug in existing fsriver or is it not compatible with es 1.0.

If its compatible with any previous version of es, let me know. I would like to try it out.

Also if there are any other rivers i can use , do let me know.

On 6 March 2014 12:08, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
Fsriver has not been released yet for es 1.0.

I will do it soonish.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 6 mars 2014 à 06:31, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) a écrit :

My ElasticSearch server window shows below things displayed

[2014-03-05 17:21:22,782][INFO][node] [Frank Payne] versio  
n[1.0.1], pid[4896], build[5c03844/2014-02-25T15:52:53Z]  
[2014-03-05 17:21:22,784][INFO][node] [Frank Payne] initia  
lizing ...  
[2014-03-05 17:21:23,697][INFO][plugins] [Frank Payne] loaded  
[jdbc-river, river-fs], sites []  
[2014-03-05 17:21:31,848][INFO][node] [Frank Payne] initia  
lized  
[2014-03-05 17:21:31,848][INFO][node] [Frank Payne] starti  
ng ...  
[2014-03-05 17:21:32,308][INFO][transport] [Frank Payne] bound\_  
address {inet[/0:0:0:0:0:0:0:0:9301]}, publish\_address {inet[/192.9.205.37:9301]  
}  
[2014-03-05 17:21:35,669][INFO][cluster.service] [Frank Payne] detect  
ed\_master [Mad Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.205.37:  
9300]], added {[Mad Thinker][5SmeADN9SYex\_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.20  
5.37:9300]],}, reason: zen-disco-receive(from master [[Mad Thinker][5SmeADN9SYex  
_owrQ9CLHA][JLTIVMDEV10][inet[/192.9.205.37:9300]]])  
[2014-03-05 17:21:35,725][INFO][discovery] [Frank Payne] elasti  
csearch/A8mG-X4\_S3KPLnQj9gPLfg  
[2014-03-05 17:21:35,822][INFO][http] [Frank Payne] bound_  
address {inet[/0:0:0:0:0:0:0:0:9201]}, publish\_address {inet[/192.9.205.37:9201]  
}  
[2014-03-05 17:21:35,826][INFO][node] [Frank Payne] starte  
d  
[2014-03-05 17:22:07,045][INFO][fr.pilato.elasticsearch.river.fs.river.FsRiver]  
[Frank Payne] [fs][mynewriver] Starting fs river scanning  
[2014-03-05 17:22:07,062][WARN][river] [Frank Payne] failed  
to get \_meta from [fs]/[mynewriver]  
java.lang.NoSuchMethodError: org.elasticsearch.action.admin.cluster.state.Cluste  
rStateRequestBuilder.setFilterIndices([Ljava/lang/String;)Lorg/elasticsearch/act  
ion/admin/cluster/state/ClusterStateRequestBuilder;  
at fr.pilato.elasticsearch.river.fs.river.FsRiver.isMappingExist(FsRiver  
.java:300)  
at fr.pilato.elasticsearch.river.fs.river.FsRiver.pushMapping(FsRiver.ja  
va:315)  
at fr.pilato.elasticsearch.river.fs.river.FsRiver.start(FsRiver.java:229  
)  
at org.elasticsearch.river.RiversService.createRiver(RiversService.java:  
148)  
at org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
Service.java:275)  
at org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(Rivers  
Service.java:269)  
at org.elasticsearch.action.support.TransportAction$ThreadedActionListen  
er$1.run(TransportAction.java:93)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
at java.lang.Thread.run(Unknown Source)

On 6 March 2014 10:32, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:  
And if I run query

GET /\_river/mydocs/\_meta

I get result

{  
"\_index": "\_river",  
"\_type": "mydocs",  
"\_id": "\_meta",  
"found": false  
}

On 6 March 2014 10:29, Nitesh Earkara [enitesh@gmail.com](mailto:enitesh@gmail.com) wrote:  
Hi David,

I am using version 0.4.0

On 5 March 2014 23:10, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
Are U using an old version of fsriver?

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 5 mars 2014 à 17:58:54, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@gmail.com)) a écrit:

Even that gave me same results

Thanks & Regards,  
Nithesh Erakkara  
Phone :- +91-9833-742-684  
Email :- [enitesh@gmail.com](mailto:enitesh@gmail.com)

On 5 Mar 2014, at 22:20, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

Don't search in \_river index but in destination index, which is `mydocs` in your case.

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 5 mars 2014 à 11:50:47, Nitesh Earkara ([enitesh@gmail.com](mailto:enitesh@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  
}  
}

1. Check if river created or not

GET /\_river/mynewriver/\_search

1. 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com). To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a78b4d1e-9809-4869-8bf6-bf1e068a01e8%40googlegroups.com](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](https://groups.google.com/groups/opt_out).

## You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group. To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe). To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@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](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](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/0DF7F966-1057-4E8C-846F-D6023D32FD50%40gmail.com).

## For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5317618c.ded7263.7bfa%40MacBook-Air-de-David.local).

For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Thanks & Regards,  
Nithesh Erakkara  
[enitesh@gmail.com](mailto:enitesh@gmail.com)  
+919833742684

--  
Thanks & Regards,  
Nithesh Erakkara  
[enitesh@gmail.com](mailto:enitesh@gmail.com)  
+919833742684

## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684

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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O\_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nb8-mF0G6O_SzUstuEyXCkXGFtBLJ%2BO49LnzE8gjesw5w%40mail.gmail.com).

## For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/1E4E8DAC-9184-4484-9B33-6C735592B5EA%40pilato.fr).

For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Thanks & Regards,  
Nithesh Erakkara  
[enitesh@gmail.com](mailto:enitesh@gmail.com)  
+919833742684

## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684

## 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com). To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nY-abDqFRgc4bOoCR0x1xnvSR76mBmHn5v19e94fMxtXw%40mail.gmail.com). For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

## You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group. To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe). To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com). To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/B5E9B8E3-D55A-4348-9CF5-8C24E1A29DC6%40pilato.fr). For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/6140EC4B-2E75-4FC4-8E10-C4BED6ADFB11%40gmail.com).

## For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.531830fe.333ab105.7bfa%40MacBook-Air-de-David.local).

For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684

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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-naqpjY5rm4Doq-31hnLg03EhTahtOb\_UgkhnWVqLkvKGw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-naqpjY5rm4Doq-31hnLg03EhTahtOb_UgkhnWVqLkvKGw%40mail.gmail.com).

## For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.53183787.1e7ff521.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.53183787.1e7ff521.7bfa%40MacBook-Air-de-David.local).

For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684

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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-nayyA%3DNsvnxumoUg6wHMqWdDTaQ-eKBxq4Gv9uQE%2B5pTw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-nayyA%3DNsvnxumoUg6wHMqWdDTaQ-eKBxq4Gv9uQE%2B5pTw%40mail.gmail.com).

## For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe](https://groups.google.com/d/topic/elasticsearch/DPS3JNvXQDA/unsubscribe).  
To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.53183c3a.5c482a97.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.53183c3a.5c482a97.7bfa%40MacBook-Air-de-David.local).

For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

## -- Thanks & Regards, Nithesh Erakkara [enitesh@gmail.com](mailto:enitesh@gmail.com) +919833742684

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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOkk-napc%3Dj7fTSJL9a\_tCM14uqMamEuqVUeFr3ELxjVxORBdA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOkk-napc%3Dj7fTSJL9a_tCM14uqMamEuqVUeFr3ELxjVxORBdA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.53185b61.180115be.7bfa%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.53185b61.180115be.7bfa%40MacBook-Air-de-David.local).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

[Next page](https://discuss.elastic.co/t/index-files-using-fsriver/16169.md?page=2)
