Skip to content

Instantly share code, notes, and snippets.

@nicolas-raoul
Created January 23, 2012 06:05
Show Gist options
  • Save nicolas-raoul/1661043 to your computer and use it in GitHub Desktop.
Save nicolas-raoul/1661043 to your computer and use it in GitHub Desktop.
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