<?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 Re: Filtering custom columns on a folderish document with custom page provider in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/filtering-custom-columns-on-a-folderish-document-with-custom/m-p/318734#M5735</link>
    <description>&lt;P&gt;&lt;A href="https://app.quandora.com/object/91be6fd7-27a1-4dff-9837-53c4506541db"&gt;Phil Ludlow&lt;/A&gt; I know the thread stopped a while ago, has your issue been resolved? My 2 cents: you may need to update ES mappings, title "Making  STARTSWITH work" sounds promising &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;A href="https://doc.nuxeo.com/nxdoc/configuring-the-elasticsearch-mapping/#making-startswith-work-with-a-custom-field" target="test_blank"&gt;https://doc.nuxeo.com/nxdoc/configuring-the-elasticsearch-mapping/#making-startswith-work-with-a-custom-field&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 May 2021 20:25:15 GMT</pubDate>
    <dc:creator>michal_m</dc:creator>
    <dc:date>2021-05-06T20:25:15Z</dc:date>
    <item>
      <title>Filtering custom columns on a folderish document with custom page provider</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/filtering-custom-columns-on-a-folderish-document-with-custom/m-p/318727#M5728</link>
      <description>&lt;P&gt;We have a section in Nuxeo for employee photos. These files are their own doctype contained in a custom, folderish doctype called "Library." For this Library, I have created a custom page provider with predicates and aggregates of schema fields relevant to these types of documents. I am having an issue with the filters for some of the fields though.&lt;/P&gt;
&lt;P&gt;For example, every employee has an employee ID, so I have a schema/field for it called &lt;CODE&gt;employee:employee_id&lt;/CODE&gt; (set as a string since IDs can contain letters or numbers). In the view of the parent container (Library) there is code to add a search filter in table view:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;nuxeo-data-table-column 
    name="Employee ID" 
    field="employee:employee_id"
    sort-by="[[_displaySort(document, 'employee:employee_id')]]" 
    filter-by="employee_employee_id" 
    filter-expression="$term*"
    flex="25"&amp;gt;
    &amp;lt;template&amp;gt;[[item.properties.employee:employee_id]]&amp;lt;/template&amp;gt;
&amp;lt;/nuxeo-data-table-column&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That field is a predicate in my custom page provider, with a full text operator. Here is the setup:
&lt;span class="lia-inline-image-display-wrapper" image-alt="predicate-editor"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1895i1783301CBEF13563/image-size/large?v=v2&amp;amp;px=999" role="button" title="predicate-editor" alt="predicate-editor" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The issue I have is that for some IDs that all all numbers the filter works as expected and filters correctly as a user types in characters. However, for any of the IDs that start with letters the filter doesn't find anything at all. What could be causing this issue? I've tried different config settings, but I'm missing something (likely simple). Any guidance would be appreciated. Thanks.&lt;/P&gt;
&lt;P&gt;I've attached a video demo of the search not working for an ID that starts with letters.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="demo"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1898iF5FC7FDFABB2A3E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="demo" alt="demo" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 21:22:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/filtering-custom-columns-on-a-folderish-document-with-custom/m-p/318727#M5728</guid>
      <dc:creator>Phil_Ludlow</dc:creator>
      <dc:date>2021-04-08T21:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering custom columns on a folderish document with custom page provider</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/filtering-custom-columns-on-a-folderish-document-with-custom/m-p/318728#M5729</link>
      <description>&lt;P&gt;Hello, have you observed the same behavior with the &lt;CODE&gt;STARTSWITH&lt;/CODE&gt; search operator?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 07:45:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/filtering-custom-columns-on-a-folderish-document-with-custom/m-p/318728#M5729</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2021-04-09T07:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering custom columns on a folderish document with custom page provider</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/filtering-custom-columns-on-a-folderish-document-with-custom/m-p/318729#M5730</link>
      <description>&lt;P&gt;If I use &lt;CODE&gt;STARTSWITH&lt;/CODE&gt; then filtering doesn't work at all—it doesn't even work for the numbers that were working before. Also, it seems &lt;CODE&gt;STARTSWITH&lt;/CODE&gt; should only be used for a path-type value?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 15:47:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/filtering-custom-columns-on-a-folderish-document-with-custom/m-p/318729#M5730</guid>
      <dc:creator>Phil_Ludlow</dc:creator>
      <dc:date>2021-04-09T15:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering custom columns on a folderish document with custom page provider</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/filtering-custom-columns-on-a-folderish-document-with-custom/m-p/318730#M5731</link>
      <description>&lt;P&gt;The fulltext analyser behaviour can very between the backend database&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 19:10:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/filtering-custom-columns-on-a-folderish-document-with-custom/m-p/318730#M5731</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2021-04-09T19:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering custom columns on a folderish document with custom page provider</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/filtering-custom-columns-on-a-folderish-document-with-custom/m-p/318731#M5732</link>
      <description>&lt;P&gt;We are on LTS 2019-HF42 (date 201901211253). Looks like Database is default of H2/Derby embedded databases, and I don't know much more since we are NCO—so whatever is the default for all of that.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 19:50:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/filtering-custom-columns-on-a-folderish-document-with-custom/m-p/318731#M5732</guid>
      <dc:creator>Phil_Ludlow</dc:creator>
      <dc:date>2021-04-09T19:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering custom columns on a folderish document with custom page provider</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/filtering-custom-columns-on-a-folderish-document-with-custom/m-p/318732#M5733</link>
      <description>&lt;P&gt;Please do not open questions on answers.nuxeo.com if the question is related to a client&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 09:54:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/filtering-custom-columns-on-a-folderish-document-with-custom/m-p/318732#M5733</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2021-04-21T09:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering custom columns on a folderish document with custom page provider</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/filtering-custom-columns-on-a-folderish-document-with-custom/m-p/318733#M5734</link>
      <description>&lt;P&gt;I thought that more general questions would be better served in this forum as others may have the same issues (I also didn't want to inundate support with tickets). However, I will do that from now on instead of using answers.nuxeo.com if that is the preferred option.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 15:47:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/filtering-custom-columns-on-a-folderish-document-with-custom/m-p/318733#M5734</guid>
      <dc:creator>Phil_Ludlow</dc:creator>
      <dc:date>2021-04-21T15:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering custom columns on a folderish document with custom page provider</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/filtering-custom-columns-on-a-folderish-document-with-custom/m-p/318734#M5735</link>
      <description>&lt;P&gt;&lt;A href="https://app.quandora.com/object/91be6fd7-27a1-4dff-9837-53c4506541db"&gt;Phil Ludlow&lt;/A&gt; I know the thread stopped a while ago, has your issue been resolved? My 2 cents: you may need to update ES mappings, title "Making  STARTSWITH work" sounds promising &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;A href="https://doc.nuxeo.com/nxdoc/configuring-the-elasticsearch-mapping/#making-startswith-work-with-a-custom-field" target="test_blank"&gt;https://doc.nuxeo.com/nxdoc/configuring-the-elasticsearch-mapping/#making-startswith-work-with-a-custom-field&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 20:25:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/filtering-custom-columns-on-a-folderish-document-with-custom/m-p/318734#M5735</guid>
      <dc:creator>michal_m</dc:creator>
      <dc:date>2021-05-06T20:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering custom columns on a folderish document with custom page provider</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/filtering-custom-columns-on-a-folderish-document-with-custom/m-p/318735#M5736</link>
      <description>&lt;P&gt;I should have posted back with the solution we went with. Thanks for the reference, we didn't go with STARTSWITH since it seemed to be specifically for path-like data, but we probably could make a custom ES mapping based on what you linked.&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 20:47:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/filtering-custom-columns-on-a-folderish-document-with-custom/m-p/318735#M5736</guid>
      <dc:creator>Phil_Ludlow</dc:creator>
      <dc:date>2021-05-06T20:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering custom columns on a folderish document with custom page provider</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/filtering-custom-columns-on-a-folderish-document-with-custom/m-p/318736#M5737</link>
      <description>&lt;P&gt;Here is the final config that we are running with that works (at least mostly).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2021-05-06 at 2.43.50 PM.png"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1890iD290BB8D7C49132C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-05-06 at 2.43.50 PM.png" alt="Screen Shot 2021-05-06 at 2.43.50 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 20:48:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/filtering-custom-columns-on-a-folderish-document-with-custom/m-p/318736#M5737</guid>
      <dc:creator>Phil_Ludlow</dc:creator>
      <dc:date>2021-05-06T20:48:15Z</dc:date>
    </item>
  </channel>
</rss>

