Hi Laurent,
alas there is currently no such option. The time limit is handled by an
internal TimeLimitingCollector, which is used inside SolrIndexSearcher.
Since the using method only returns the DocList and doesn't have access
to the QueryResult, it won't be easy to return this information in a
beautiful way.
Aborted Queries don't feed the caches, so you maybe can check whether
the cache fill rate has changed, Of course, this is no reasonable
approach in production environment.
The only way you can get the information is by patching Solr with a
dirty hack.
Greetings,
Kuli
Am 07.06.2012 22:14, schrieb Laurent Vaills:
Hi everyone,
We have some grouping queries that are quite long to execute. Some are too
long to execute and are not acceptable. We have setup timeout for the
socket but with this we get no result and the query is still running on the
Solr side.
So, we are now using the timeAllowed parameter which is a good compromise.
However, in the response, how can we know that the query was "stopped"
because it was too long ?
I need this information for monitoring and to tell the user that the
results are not complete.
Regards,
Laurent