08-02-2016 12:11 AM
<searchComponent name="suggest" class="org.alfresco.solr.component.AsyncBuildSuggestComponent">
<lst name="suggester">
<str name="name">shingleBasedSuggestions</str>
<str name="enabled">${solr.suggester.enabled:false}</str>
<!– <str name="lookupImpl">org.apache.solr.spelling.suggest.jaspell.JaspellLookupFactory</str> –>
<str name="lookupImpl">org.apache.solr.spelling.suggest.fst.WFSTLookupFactory</str>
<str name="field">suggest</str>
<str name="suggestAnalyzerFieldType">text_shingle</str>
<str name="buildOnCommit">false</str>
</lst>
</searchComponent>
<requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy">
<lst name="defaults">
<str name="suggest">false</str>
<str name="suggest.count">10</str>
<str name="suggest.dictionary">shingleBasedSuggestions</str>
</lst>
<arr name="components">
<str>suggest</str>
</arr>
</requestHandler>
08-02-2016 04:44 AM
<#escape x as jsonUtils.encodeJSONString(x)>
{
"totalRecords": 0,
"startIndex": 0,
"hasMoreRecords": "false",
"items":
[
]
}
</#escape>
08-02-2016 11:35 PM
08-02-2016 11:36 PM
01-16-2017 05:21 AM
I have found these files at /Applications/alfresco-5.0.d/tomcat/webapps/alfresco/WEB-INF/lib/alfresco-remote-api-5.0.d/alfresco/templates/webscripts/org/alfresco/slingshot and any changes I make to them are not reflecting on the application.
Could let me know how to remove the people finder from the live search? and How to override them so changes reflect on application?
Thanks
01-17-2017 01:27 AM
You should not change those files directly. Instead, use the shared/classes/alfresco/extension path to override them, i.e. via the path shared/classes/alfresco/extension/templates/webscripts/org/alfresco/slingshot/
01-17-2017 01:55 PM
thanks for your useful info.
I have overrided live-search-people.get.json.ftl file as the way you mentioned and people suggestion is not coming which is good but now no suggestion is coming at all, i.e., no document/file suggestion.
Also how can I change the placeholder of search box? I want it to be "Search files,sites" only.
Any idea?
01-18-2017 11:03 AM
Please see this link , it has all the information about the search box -
01-19-2017 01:55 AM
I had came across this document but couldn't find it in alfresco community.
Where could I find this file in alfresco community? Could you share the path for it?
Also how to override this file?
Thanks.
08-22-2016 08:24 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.