08-02-2016 03: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 07:44 AM
<#escape x as jsonUtils.encodeJSONString(x)>
{
"totalRecords": 0,
"startIndex": 0,
"hasMoreRecords": "false",
"items":
[
]
}
</#escape>
08-03-2016 02:35 AM
08-03-2016 02:36 AM
01-16-2017 08: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 04: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 04: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 02:03 PM
Please see this link , it has all the information about the search box -
01-19-2017 04: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 11: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.