Hello,
 I start learning Elasticsearch, and i have a problem for understand how 
search. anyone could help me? 

My gist for all my structure and my data is here
https://gist.github.com/thibaut1001/7a3000c3ff371be3a52d

My problem is just in 4part
To search in multi field by data like this


## We need to search henry in field selected
curl -XPOST 'http://localhost:9200/test_fr/user/_search' -d '{
    "query" : {
        "bool": {
            "must": [ ],
            "must_not": [ ],
            "should": [
                {
                    "term": {
                        "user.sku": "henry"
                    }
                },
                {
                    "term": {
                       "user.internal_code": "henry"
                    }
                },
                {
                    "term": {
                       "user.firstname": "henry"
                    }
                },
                {
                    "term": {
                       "user.lastname": "henry"
                    }
                },
                {
                    "term": {
                       "user.address": "henry"
                    }
                },                
                {
                    "term": {
                       "user.city": "henry"
                    }
                },                    
                {
                    "term": {
                       "user.localized_description": "henry"
                    }
                },            
                {
                    "term": {
                       "user.localized_keywords": "henry"
                    }
                },                
                {
                    "term": {
                       "user.service.localized_label": "henry"
                    }
                },                
                {
                    "term": {
                       "user.medias.localized_label": "henry"
                    }
                },                
                {
                    "term": {
                       "user.services.localized_label": "henry"
                    }
                }
            ]
        }
    }
}';

## Return no results Why?

I have many question.
Could you help me please,
thanks

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/c32551bd-cd04-4227-b783-40ca556928f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to