Re: Sum of total term frequency in ONE document

2014-12-20 Thread vineeth mohan
Hi , Why dont you use script fields to access this value - http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-script-fields.html#search-request-script-fields Thanks Vineeth On Wed, Dec 17, 2014 at 2:57 PM, valerij.vasilce...@googlemail.com wrote:

Sum of total term frequency in ONE document

2014-12-17 Thread valerij . vasilcenko
I need sumttf of ONE document in a field. However I can get sumttf of all documents only... I need to be able to access the variable in script like _index['field'].sumttf() of that particular document. This is what I've got so far. Mapping: {document2 : { mappings : {