Full ERROR Message Example
Rejecting value (value size {}, maximum size {}).
What does this ERROR message mean
This error message indicates that the term is equal to, or bigger than the allocated maximum size, 1024, resulting in the term being rejected.
Why does this ERROR occur
For a high level example, let's say there's a column and this column has an analyser. The analyser analyses the output and spawns terms.
With the example value you will see 14 terms:
It was a bright cold day in April, and the clocks were striking thirteen.
Running such analyser yields the following terms:
It, was, a, bright, cold, day, in, April, and, the, clocks, were, striking, thirteen
The error message in question results from one of these terms being too large, as if there was one giant term...
thisisaonebigsentecnethatwillneverbeanalyzedintoabunchofsmallterms... etc
How do you fix this ERROR
The root cause of this error, as explained, is having a term which is too big or possibly the wrong analyser could be in use.
If your term is the issue you should reduce the large term, see if it can be broken down into multiple, smaller terms.
StandardAnalyzer is the default analyser and should fit most use cases. If you believe the analyser in use could be wrong, you can review our documentation here which provides details on analysers and further options which could be used to your benefit.
If you have any questions, please contact DataStax support.