<?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>topic How to alias fields in sense smart search in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-alias-fields-in-sense-smart-search/m-p/1328132#M7478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have built a mashup in Qlik Sense where we can create visualizations on the fly by typing in a textbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the &lt;A href="https://github.com/websy85/sense-search-components/wiki"&gt;Wiki&lt;/A&gt; page of that mashup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the content of the Wiki page, we can alias a field name within our code. The link for this info is &lt;A href="https://github.com/websy85/sense-search-components/wiki/4.-Visualizations-Mode"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have modified my code in the following way as mentioned by the Wiki:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; app.model.waitForOpen.promise.then(function(){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //alias 'brand' as 'org' --- not working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; senseSearch.inputs["myInput"].nlpModel.fieldNounMap.org = "brand";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //make the 'total' function operate as 'count' -- working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; senseSearch.inputs["myInput"].nlpModel.functionMap.total = "count";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; senseSearch.connectWithCapabilityAPI(app);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here, the alias functionality is not working but when I am trying to override the functionality of the 'total' function it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where am I going wrong in the first place? Please suggest&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Jun 2017 06:50:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-21T06:50:13Z</dc:date>
    <item>
      <title>How to alias fields in sense smart search</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-alias-fields-in-sense-smart-search/m-p/1328132#M7478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have built a mashup in Qlik Sense where we can create visualizations on the fly by typing in a textbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the &lt;A href="https://github.com/websy85/sense-search-components/wiki"&gt;Wiki&lt;/A&gt; page of that mashup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the content of the Wiki page, we can alias a field name within our code. The link for this info is &lt;A href="https://github.com/websy85/sense-search-components/wiki/4.-Visualizations-Mode"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have modified my code in the following way as mentioned by the Wiki:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; app.model.waitForOpen.promise.then(function(){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //alias 'brand' as 'org' --- not working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; senseSearch.inputs["myInput"].nlpModel.fieldNounMap.org = "brand";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //make the 'total' function operate as 'count' -- working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; senseSearch.inputs["myInput"].nlpModel.functionMap.total = "count";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; senseSearch.connectWithCapabilityAPI(app);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here, the alias functionality is not working but when I am trying to override the functionality of the 'total' function it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where am I going wrong in the first place? Please suggest&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 06:50:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-alias-fields-in-sense-smart-search/m-p/1328132#M7478</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-21T06:50:13Z</dc:date>
    </item>
  </channel>
</rss>

