mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3677] Add highlight configuration to SearchQueryBuilder (#4358)
* [ADF-3677] Add highlight configuration to SearchQueryBuilder * highlight property in search * Update files.component.ts * remove comma * highlight missspell * fix schhema json highilight * fix test * fix lint * fix lint * fix lint * fix search sorting tests * fix search sorting * fix lint * remove useless test * check for null nodes * remove duplicated test * lint * fix sorting tests * remove test not search component related
This commit is contained in:
committed by
Eugenio Romano
parent
d6f391c40e
commit
8dc9eba4c7
@@ -1117,7 +1117,6 @@
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
@@ -1148,6 +1147,68 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"highlight": {
|
||||
"description": " Request that highlight fragments to be added to result set rows The properties reflect SOLR highlighting parameters.",
|
||||
"properties": {
|
||||
"prefix": {
|
||||
"description": "The string used to mark the start of a highlight in a fragment",
|
||||
"type": "string"
|
||||
},
|
||||
"postfix": {
|
||||
"description": "The string used to mark the end of a highlight in a fragment",
|
||||
"type": "string"
|
||||
},
|
||||
"snippetCount": {
|
||||
"description": "The maximum number of distinct highlight snippets to return for each highlight field",
|
||||
"type": "number"
|
||||
},
|
||||
"fragmentSize": {
|
||||
"description": "The character length of each snippet",
|
||||
"type": "number"
|
||||
},
|
||||
"maxAnalyzedChars": {
|
||||
"description": "The number of characters to be considered for highlighting. Matches after this count will not be shown",
|
||||
"type": "number"
|
||||
},
|
||||
"mergeContiguous": {
|
||||
"description": "If fragments over lap they can be merged into one larger fragment",
|
||||
"type": "boolean"
|
||||
},
|
||||
"usePhraseHighlighter": {
|
||||
"description": "Should phrases be identified",
|
||||
"type": "boolean"
|
||||
},
|
||||
"fields": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"description": "The fields to highlight and field specific configuration properties for each field",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"field": {
|
||||
"description": "The name of the field to highlight",
|
||||
"type": "string"
|
||||
},
|
||||
"snippetCount": {
|
||||
"type": "number"
|
||||
},
|
||||
"fragmentSize": {
|
||||
"type": "number"
|
||||
},
|
||||
"mergeContiguous": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"prefix": {
|
||||
"type": "string"
|
||||
},
|
||||
"postfix": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"sorting": {
|
||||
"description": "Sorting options and defaults",
|
||||
"required": [
|
||||
|
Reference in New Issue
Block a user