How to get the result of the division between two sum fields By Using Java High REST Client
Not sure what you called 2 sum fields, but let's assume it's only 2 normal numeric fields.
You can use a scripted field or better compute this at index time using an ingest script processor.