Query ElasticSearch filtered by a field?

0

I'm doing a Query with the NEST library of Elasticsearch. I have consulted with date range and it works perfectly, but when it comes to a filter for a particular field, it does not return anything.

I would like to filter by one of the Id field. This is the query I'm doing.

var response = client.Search<localino>(s => s
             .Index("indice")
             .Type("tipoIndice")
             .Query(q => q.Term(c => c
                .Field(p => p.CampoTabla)
                .Value("1")                
             )));
    
asked by Jose Manuel Talaveron 21.11.2018 в 08:38
source

0 answers