Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Configuration to fix the "Enter at least 1 character(s) to search" issue in Alfresco Share
<!--
Overridden Search config entries to:
- remove minimum search term length for all searches.
-->
<config evaluator="string-compare" condition="Search" replace="true">
<search>
<!-- default minimum length for search terms -->
<min-search-term-length>0</min-search-term-length>
<!-- default maximum number of results for a search -->
<max-search-results>250</max-search-results>
</search>
</config>
<!--
Overridden form-config.xml entries to:
- remove minimum search term length for people searches.
-->
<config>
<forms>
<default-controls>
<type name="association:cm:person" template="/org/alfresco/components/form/controls/authority.ftl">
<control-param name="minSearchTermLength">0</control-param>
</type>
<type name="association:cm:authority" template="/org/alfresco/components/form/controls/authority.ftl">
<control-param name="minSearchTermLength">0</control-param>
</type>
<type name="association:cm:authorityContainer" template="/org/alfresco/components/form/controls/authority.ftl">
<control-param name="minSearchTermLength">0</control-param>
</type>
</default-controls>
</forms>
</config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment