@@ -299,8 +299,11 @@ class InvertedIndexColumnWriterImpl : public InvertedIndexColumnWriter {
299
299
auto ignore_above_value =
300
300
get_parser_ignore_above_value_from_properties (_index_meta->properties ());
301
301
auto ignore_above = std::stoi (ignore_above_value);
302
- if (v->get_size () > ignore_above) {
303
- VLOG_DEBUG << " fulltext index value length can be at most 256, but got "
302
+ // only ignore_above UNTOKENIZED strings
303
+ if (_parser_type == InvertedIndexParserType::PARSER_NONE &&
304
+ v->get_size () > ignore_above) {
305
+ VLOG_DEBUG << " fulltext index value length can be at most "
306
+ << ignore_above_value << " , but got "
304
307
<< " value length:" << v->get_size () << " , ignore this value" ;
305
308
new_fulltext_field (empty_value.c_str (), 0 );
306
309
RETURN_IF_ERROR (add_null_document ());
@@ -349,8 +352,11 @@ class InvertedIndexColumnWriterImpl : public InvertedIndexColumnWriter {
349
352
auto ignore_above_value =
350
353
get_parser_ignore_above_value_from_properties (_index_meta->properties ());
351
354
auto ignore_above = std::stoi (ignore_above_value);
352
- if (value.length () > ignore_above) {
353
- VLOG_DEBUG << " fulltext index value length can be at most 256, but got "
355
+ // only ignore_above UNTOKENIZED strings
356
+ if (_parser_type == InvertedIndexParserType::PARSER_NONE &&
357
+ value.length () > ignore_above) {
358
+ VLOG_DEBUG << " fulltext index value length can be at most "
359
+ << ignore_above_value << " , but got "
354
360
<< " value length:" << value.length () << " , ignore this value" ;
355
361
new_fulltext_field (empty_value.c_str (), 0 );
356
362
RETURN_IF_ERROR (add_null_document ());
0 commit comments