Clearer logging (refactored toString)
Switch to unknown doc per intent.

And fix template search request handling while at it otherwise test does not
work.
Simplify template handling in API
Support specifying multiple target indeces.
Add support for configuring n in precision at n.