Save the document size in to a new field

2018-02-01 Thread Blackknight
Hello guys, I want to add an option to search document by size. For example, find the top categories with the biggest documents. I thought about creating a new update processor wich will counting the bytes of all fields in the document, but I think it wont work good, because some fields are stored

Save the document size in to a new field

2018-01-31 Thread Blackknight
Hello guys, I want to add an option to search document by size. For example, find the top categories with the biggest documents. I thought about creating a new update processor wich will counting the bytes of all fields in the document, but I think it wont work good, because some fields are stored

Re: Save the document size in to a new field

2018-01-31 Thread Emir Arnautović
With any generic solution there will be always the question of what is the document size: should you count the same field twice if indexed in two different ways? Does size of index count or size of response? If simplified version works for you - approximate doc size to the size of the largest f

Save the document size in to a new field

2018-01-31 Thread Blackknight
Hello guys, I want to add an option to search document by size. For example, find the top categories with the biggest documents. I thought about creating a new update processor wich will counting the bytes of all fields in the document, but I think it wont work good, because some fields are stored