Slava_G  
                
                  
                    May 28, 2011,  8:45pm
                   
                  1 
               
             
            
              Hi,
Node node = nodeBuilder().client(true).node();
		Client client = node.client();
		IndexResponse indexRes = client.prepareIndex("test", "contacts",
"1")"test@test.com ")
		SearchRequestBuilder searchRequestBuilder =
client.prepareSearch("test");
searchRequestBuilder.setSearchType(SearchType.DFS_QUERY_THEN_FETCH);
                  node.close();
Please , tell me what I'm doing wrong.
Thank You and Best Regards.
             
            
              
            
           
          
            
              
                dpilato  
              
                  
                    May 28, 2011,  8:52pm
                   
                  2 
               
             
            
              Test_Name has been tokenized to Test and Name.
You should search test or name to find something.
Hope this helps,
             
            
              
            
           
          
            
              
                Slava_G  
              
                  
                    May 28, 2011,  9:06pm
                   
                  3 
               
             
            
              Changed to "Test" - same result - 0 hits:
Node node = nodeBuilder().client(true).node();test@test.com ")
		SearchRequestBuilder searchRequestBuilder =
client.prepareSearch("test");//searchRequestBuilder.setTypes ("contacts");
searchRequestBuilder.setSearchType(SearchType.DFS_QUERY_THEN_FETCH);
		node.close();
Thank You and Best Regards.
On May 28, 11:52 pm, dpilato david.pil...@douane.finances.gouv.fr 
Test_Name has been tokenized to Test and Name.
You should search test or name to find something.
Hope this helps,
--http://elasticsearch-users.115913.n3.nabble.com/Java-API-tp2997083p29 ...Nabble.com .
 
             
            
              
            
           
          
            
              
                dpilato  
              
                  
                    May 28, 2011,  9:09pm
                   
                  4 
               
             
            
              What about test in lowercase ?
             
            
              
            
           
          
            
              
                Slava_G  
              
                  
                    May 28, 2011,  9:13pm
                   
                  5 
               
             
            
              Cool 
Thank You and Best Regards.
On May 29, 12:09 am, dpilato david.pil...@douane.finances.gouv.fr 
What about test in lowercase ?
--http://elasticsearch-users.115913.n3.nabble.com/Java-API-tp2997083p29 ...Nabble.com .
 
             
            
              
            
           
          
            
              
                dpilato  
              
                  
                    May 28, 2011, 10:18pm
                   
                  6 
               
             
            
              Term request is case sensitive. querystring query should work.
Here is a good starting URL : http://www.elasticsearch.org/guide/reference/query-dsl/ 
Cheers
             
            
              
            
           
          
            
              
                kimchy  
              
                  
                    May 29, 2011,  5:58am
                   
                  7 
               
             
            
              Or, better yet in 0.16.1, text queries (though it has a bug in it for the Java API that will be fixed in 0.16.2).
On Sunday, May 29, 2011 at 1:18 AM, dpilato wrote:
Term request is case sensitive. querystring query should work.
Here is a good starting URL :Elasticsearch Platform — Find real-time answers at scale | Elastic 
Cheers
--http://elasticsearch-users.115913.n3.nabble.com/Java-API-tp2997083p2997407.html Nabble.com  (http://Nabble.com ).
 
             
            
              
            
           
          
            
              
                Slava_G  
              
                  
                    May 29, 2011,  8:02am
                   
                  8 
               
             
            
              Thank You, I'll look on it,
Thank You.
On May 29, 8:58 am, Shay Banon shay.ba...@elasticsearch.com  wrote:
Or, better yet in 0.16.1, text queries (though it has a bug in it for the Java API that will be fixed in 0.16.2).
On Sunday, May 29, 2011 at 1:18 AM, dpilato wrote:
Term request is case sensitive. querystring query should work.
 
Here is a good starting URL :Elasticsearch Platform — Find real-time answers at scale | Elastic 
 
Cheers
 
--http://elasticsearch-users.115913.n3.nabble.com/Java-API-tp2997083p29 ...Nabble.com  (http://Nabble.com ).
 
 
             
            
              
            
           
          
            
              
                kimchy  
              
                  
                    May 29, 2011,  3:01pm
                   
                  9 
               
             
            
              replace QueryBuilders#term with QueryBuilders#text, pretty basic stuff.
On Sunday, May 29, 2011 at 11:02 AM, slavag wrote:
Thank You, I'll look on it,
Thank You.
On May 29, 8:58 am, Shay Banon <shay.ba...@elasticsearch.com  (http://elasticsearch.com )> wrote:
Or, better yet in 0.16.1, text queries (though it has a bug in it for the Java API that will be fixed in 0.16.2).
On Sunday, May 29, 2011 at 1:18 AM, dpilato wrote:
Term request is case sensitive. querystring query should work.
 
Here is a good starting URL :Elasticsearch Platform — Find real-time answers at scale | Elastic 
 
Cheers
 
--http://elasticsearch-users.115913.n3.nabble.com/Java-API-tp2997083p29 ...Nabble.com  (http://Nabble.com ).
 
 
 
             
            
              
            
           
          
            
              
                Slava_G  
              
                  
                    May 29, 2011,  5:28pm
                   
                  10 
               
             
            
              Thank You.
On May 29, 6:01 pm, Shay Banon shay.ba...@elasticsearch.com  wrote:
replace QueryBuilders#term with QueryBuilders#text, pretty basic stuff.
On Sunday, May 29, 2011 at 11:02 AM, slavag wrote:
Thank You, I'll look on it,
 
Thank You.
 
On May 29, 8:58 am, Shay Banon <shay.ba...@elasticsearch.com  (http://elasticsearch.com )> wrote:
Or, better yet in 0.16.1, text queries (though it has a bug in it for the Java API that will be fixed in 0.16.2).
 
 
On Sunday, May 29, 2011 at 1:18 AM, dpilato wrote:
Term request is case sensitive. querystring query should work.
 
 
 
Here is a good starting URL :Elasticsearch Platform — Find real-time answers at scale | Elastic 
 
 
 
Cheers
 
 
 
--http://elasticsearch-users.115913.n3.nabble.com/Java-API-tp2997083p29 ...Nabble.com  (http://Nabble.com ).
 
 
 
 
             
            
              
            
           
          
            
              
                kimchy  
              
                  
                    May 29, 2011,  5:39pm
                   
                  11 
               
             
            
              Great :), there are some samples here: Elasticsearch Platform — Find real-time answers at scale | Elastic . And basically, all the queries that you can use exists in the QueryBuilders static factory, and all the filters are in FilterBuilders.
On Sunday, May 29, 2011 at 8:28 PM, slavag wrote:
Thank You.
On May 29, 6:01 pm, Shay Banon <shay.ba...@elasticsearch.com  (http://elasticsearch.com )> wrote:
replace QueryBuilders#term with QueryBuilders#text, pretty basic stuff.
On Sunday, May 29, 2011 at 11:02 AM, slavag wrote:
Thank You, I'll look on it,
 
Thank You.
 
On May 29, 8:58 am, Shay Banon <shay.ba...@elasticsearch.com  (http://elasticsearch.com )> wrote:
Or, better yet in 0.16.1, text queries (though it has a bug in it for the Java API that will be fixed in 0.16.2).
 
 
On Sunday, May 29, 2011 at 1:18 AM, dpilato wrote:
Term request is case sensitive. querystring query should work.
 
 
 
Here is a good starting URL :Elasticsearch Platform — Find real-time answers at scale | Elastic 
 
 
 
Cheers
 
 
 
--http://elasticsearch-users.115913.n3.nabble.com/Java-API-tp2997083p29 ...Nabble.com  (http://Nabble.com ).
 
 
 
 
 
             
            
              
            
           
          
            
              
                Slava_G  
              
                  
                    May 29, 2011,  6:12pm
                   
                  12 
               
             
            
              10x for advise.
On May 29, 8:39 pm, Shay Banon shay.ba...@elasticsearch.com  wrote:
Great :), there are some samples here:Elasticsearch Platform — Find real-time answers at scale | Elastic . And basically, all the queries that you can use exists in the QueryBuilders static factory, and all the filters are in FilterBuilders.
On Sunday, May 29, 2011 at 8:28 PM, slavag wrote:
Thank You.
 
On May 29, 6:01 pm, Shay Banon <shay.ba...@elasticsearch.com  (http://elasticsearch.com )> wrote:
replace QueryBuilders#term with QueryBuilders#text, pretty basic stuff.
 
 
On Sunday, May 29, 2011 at 11:02 AM, slavag wrote:
Thank You, I'll look on it,
 
 
 
Thank You.
 
 
 
On May 29, 8:58 am, Shay Banon <shay.ba...@elasticsearch.com  (http://elasticsearch.com )> wrote:
Or, better yet in 0.16.1, text queries (though it has a bug in it for the Java API that will be fixed in 0.16.2).
 
 
 
 
On Sunday, May 29, 2011 at 1:18 AM, dpilato wrote:
Term request is case sensitive. querystring query should work.
 
 
 
 
 
Here is a good starting URL :Elasticsearch Platform — Find real-time answers at scale | Elastic 
 
 
 
 
 
Cheers
 
 
 
 
 
--http://elasticsearch-users.115913.n3.nabble.com/Java-API-tp2997083p29 ...Nabble.com  (http://Nabble.com ).