agibralter wrote:
> My exception notification app is going crazy with
> Riddle::ResponseError from eager search engine bots querying for
> random pages... I guess googlebot, msnbot, etc. all parse out page
> numbers in query strings (page=...). Is there a good way to deal with
> this? Could Riddle have a Riddle::OutOfBounds exception class so that
> I could tell hoptoad to ignore them? I don't want to tell hoptoad to
> ignore all Riddle::ResponseErrors because other types of
> ResponseErrors might actually be problematic and require attention.
> 
> "Riddle::ResponseError: searchd error (status: 1): offset out of
> bounds (offset=1470, max_matches=1000)"

I have a before_filter in my ApplicationController that sets the page
param to 50 if it is set to greater than 50. It's a little hacky to have
this ine very request I suppose, but it's effective at controlling the
issue.

As an alternative you could get it to return an instant 404 if param is
more than 50.

-- James Healy <[email protected]>  Sun, 21 Feb 2010 17:32:36 +1100

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.

Reply via email to