Re: Search JAVA search API not working

2014-03-21 Thread David Pilato
Are you just searching in your code or indexing as well? Could it be caused because you did not refresh before searching? -- David ;-) Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs Le 21 mars 2014 à 22:13, Mohit Anchlia mohitanch...@gmail.com a écrit : The below code doesn't seem to

Re: Search JAVA search API not working

2014-03-21 Thread Mohit Anchlia
oh, I forgot refresh. Let me try that. By default it's 1 sec right? On Fri, Mar 21, 2014 at 2:18 PM, David Pilato da...@pilato.fr wrote: Are you just searching in your code or indexing as well? Could it be caused because you did not refresh before searching? -- David ;-) Twitter :

Re: Search JAVA search API not working

2014-03-21 Thread Mohit Anchlia
Thanks! refresh was the issue. Is there a easy way to find how many documents are in index using Java API? On Fri, Mar 21, 2014 at 2:24 PM, Mohit Anchlia mohitanch...@gmail.comwrote: oh, I forgot refresh. Let me try that. By default it's 1 sec right? On Fri, Mar 21, 2014 at 2:18 PM, David

Re: Search JAVA search API not working

2014-03-21 Thread David Pilato
client.prepareCount() -- David ;-) Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs Le 21 mars 2014 à 22:34, Mohit Anchlia mohitanch...@gmail.com a écrit : Thanks! refresh was the issue. Is there a easy way to find how many documents are in index using Java API? On Fri, Mar 21, 2014