Given a query and a term, how could I calculate the average position of the term within every document in the query and return it? I am looking for the fastest (performance wise) solution and willing to extend the solr functionality.
Following that, I would need to calculate the average position of a term accross all documents in the query. With that, I do not need to return the documents themesleves to the client - just the average term position.
Thanks Saar