Here you can find the source of convertNullToSolrValue(String fieldName)
public static Object convertNullToSolrValue(String fieldName)
//package com.java2s; //License from project: BSD License public class Main { public static Object convertNullToSolrValue(String fieldName) { Object convertedFieldValue = null; if (isSingleValueStringOrText(fieldName)) { convertedFieldValue = null;//w w w . j a v a 2s .co m } else if (fieldName.endsWith("_dt") || fieldName.endsWith("_da")) { convertedFieldValue = null; } else if (fieldName.endsWith("_d")) { convertedFieldValue = null; } else if (isMultiValueStringOrText(fieldName)) { convertedFieldValue = null; } else if (fieldName.endsWith("_dts") || fieldName.endsWith("_das")) { convertedFieldValue = null; } else if (fieldName.endsWith("_ds")) { convertedFieldValue = null; } return convertedFieldValue; } public static boolean isSingleValueStringOrText(String fieldName) { return fieldName.endsWith("_s") || fieldName.endsWith("_t"); } public static boolean isMultiValueStringOrText(String fieldName) { return fieldName.endsWith("_ss") || fieldName.endsWith("_txt"); } }