mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-10-08 14:51:20 +00:00
[SEARCH-2400]
removed check for property with no cross-locale fields in highlighter
This commit is contained in:
@@ -189,14 +189,7 @@ public class AlfrescoSolrHighlighter extends DefaultSolrHighlighter implements P
|
|||||||
{
|
{
|
||||||
schemaFieldName = AlfrescoSolrDataModel.getInstance().mapProperty(localFieldName, FieldUse.FTS, request, 1);
|
schemaFieldName = AlfrescoSolrDataModel.getInstance().mapProperty(localFieldName, FieldUse.FTS, request, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// In case after the second query we didn't get the cross-locale version, then it's better to ignore the
|
|
||||||
// fieldMatch parameter; in this way we are sure the snippets will be properly returned (together with other
|
|
||||||
// unwanted fields)
|
|
||||||
if (!schemaFieldName.contains("_t@{"))
|
|
||||||
{
|
|
||||||
schemaFieldName = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
// The query scorer purpose is to give a score to the text fragments by the number of unique query terms found.
|
// The query scorer purpose is to give a score to the text fragments by the number of unique query terms found.
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user