[SEARCH-2400]

removed check for property with no cross-locale fields in highlighter
This commit is contained in:
elia
2020-09-10 10:03:31 +02:00
parent c6049dc1b8
commit 3ff76f197b

View File

@@ -189,14 +189,7 @@ public class AlfrescoSolrHighlighter extends DefaultSolrHighlighter implements P
{
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.
//