I have a JSON like this for a document

_source: {
    timestamp: 213234234,
    links: [ {
      mention: "audi",
      entity: {rank:3, name:"some name"}
      }, {
      mention: "ford",
      entity: {rank:0, name:"some other name"},
      }
    ]
  }
}

I'm interested in retrieving only the mention and rank fields where 
rank==0. 
I am able to specify which fields I want using "fields" like this 
"fields":["timestamp","links.mention","links.entity.rank"] and I can even 
filter (query {filtered { query { term { links.entity.rank = 0 }}}} ) so 
that it returns only documents that have rank=0

Such a query returns all fields I mention and all the objects in the links 
array.

_source: {
    timestamp: [213234234],
    links.mention: [  "audi", "ford" ],
    links.entity.rank: [ 3, 0 ]
  }
}

I don't want to have 3 in links.entity.rank. Is there a way to re filter 
the result of a query?

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/e9cdf199-f8f0-4fcc-8642-ef7a1f4eab58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to