39
40
41
42
43
44
45
46
47
48
|
# File 'lib/thinking_sphinx/errors.rb', line 39
def message
<<-MESSAGE
The supplied SphinxQL statement is #{statement.length} characters long. The maximum allowed length is #{ThinkingSphinx::Configuration.instance.settings['maximum_statement_length']}.
If this error has been raised during real-time index population, it's probably due to overly large batches of records being processed at once. The default is 1000, but you can lower it on a per-environment basis in config/thinking_sphinx.yml:
development:
batch_size: 500
MESSAGE
end
|