<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question How to search and remove null values in elastic search index using nifi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-search-and-remove-null-values-in-elastic-search-index/m-p/226886#M188746</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I have elastic search index in below format. here the fields are populated with null values if the data are not supplied to fields .&lt;/P&gt;&lt;P&gt;Is there any way by using nifi we can remove null values contain fields before  elastic search index loading &lt;/P&gt;&lt;P&gt;Details &lt;/P&gt;&lt;P&gt;Sample index&lt;/P&gt;&lt;P&gt; if all data populated &lt;/P&gt;&lt;P&gt;
   {
        "_index": "bookdb_index",
        "_type": "book",
        "_id": "1",
        "_score": 0.28168046,
         "title": "Elasticsearch: The Definitive Guide",
          "summary": "A distibuted real-time search and analytics engine",
          "publish_date": "2015-02-07",
          "num_reviews": 20,
          "publisher": "manning"
        } &lt;/P&gt;&lt;P&gt;Sample index if all not  data populated&lt;/P&gt;&lt;P&gt;{
        "_index": "bookdb_index",
        "_type": "book",
        "_id": "1",
        "_score": 0.28168046,
         "title": "Elasticsearch: The Definitive Guide",
          "summary": null,
          "publish_date": null,
          "num_reviews": 20,
          "publisher":null
        }&lt;/P&gt;&lt;P&gt;Avro Scheam registery &lt;/P&gt;&lt;P&gt;{
"namespace": "ingestion",
"type": "record",
"name": "quest",
"fields": [
{
"name": "_type",
"type": "string"
},
{
"name": "_id",
"type": "string"
},
{
"name": "_score",
"type": ["string", "null"]
},
{
"name": "title",
"type": ["string", "null"]
},
{
"name": "summary",
"type": ["string", "null"]
},
{
"name": "publish_date",
"type": ["null", "string"]
},
{
"name": "num_reviews",
"type": ["string", "null"]
},
              {
"name": "publisher",
"type": ["string", "null"]
},
               ]&lt;/P&gt;&lt;P&gt;I am using Putelasticsearchhttprecord processor to load data to elasticsearch . In nifi 1.6 there is "&lt;STRONG&gt;Suppress Null Values" &lt;/STRONG&gt;feature is available , but i am using nifi 1.5 version , Is there any way to resolve the issue &lt;/P&gt;&lt;P&gt;I am trying to change Avro schema registry but fields are populated null values some time and sometimes not.&lt;/P&gt;&lt;P&gt;Please help me to resolve the issue &lt;/P&gt;</description>
    <pubDate>Thu, 26 Apr 2018 23:51:36 GMT</pubDate>
    <dc:creator>sdendukuri</dc:creator>
    <dc:date>2018-04-26T23:51:36Z</dc:date>
  </channel>
</rss>

