lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: cursorMark and timeAllowed are mutually exclusive?
Date Mon, 29 Jun 2015 16:57:31 GMT

: > Have nothing found in the ref guides, docs, wiki, examples about this mutually
: > exclusive parameters.
: >
: > Is this a bug or a feature and if it is a feature, where is the sense of this?

The problem is that if a timeAllowed exceeded situation pops up, you won't 
get a nextCursorMark to use -- or the one you get might be wrong, and 
could trigger infinit looping.


code doesn't really know about hte cursorMark code, so if a timeAllowed 
"exceeded" siutation pops up, you might not get a nextCursorMark in your 
response, which i considered unacceptible.  if you ask for a cursorMark, 
you get a cursor mark.  if you ask for a cursor mark and include other 
options that make it possible we can't do that, it's an error.

With a bit of work, both could probably be supported in combination -- but 
for now it's untested, and thus unsupported, so we put in that error 
message to make it clear and to guard end users against the risk of 
nonsensical results.

>> Yes, I'm using timeAllowed which is set in my requestHandler as
>> invariant to 60000 (60 seconds) as a limit to "killer searches".

Your best is porbably to confine your cursorMark searches to an alternate 
request handler, not used by your normal arbitrary queries, that doesn't 
have the timeAllowed invariant.



-Hoss
http://www.lucidworks.com/

Mime
View raw message