浏览代码

HUE-8015 [indexer] Set SQL NULL as Solr empty values so that rows with NULL cells are still indexed

Romain Rigaux 7 年之前
父节点
当前提交
5f4efa6
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      desktop/libs/indexer/src/indexer/api3.py

+ 1 - 0
desktop/libs/indexer/src/indexer/api3.py

@@ -278,6 +278,7 @@ def _small_indexing(user, fs, client, source, destination, index_name):
 
 
   if client.is_solr_six_or_more():
   if client.is_solr_six_or_more():
     kwargs['processor'] = 'tolerant'
     kwargs['processor'] = 'tolerant'
+    kwargs['map'] = 'NULL:'
 
 
   try:
   try:
     if source['inputFormat'] == 'query':
     if source['inputFormat'] == 'query':