1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-13 01:36:18 +00:00

Closes #241: search highlighting

This commit is contained in:
Benjamin Gamard
2018-10-20 21:16:06 +02:00
parent 8c37af6207
commit 6ceb1f6c02
4 changed files with 34 additions and 17 deletions

View File

@@ -392,6 +392,7 @@ public class DocumentResource extends BaseResource {
documents.add(Json.createObjectBuilder()
.add("id", documentDto.getId())
.add("highlight", JsonUtil.nullable(documentDto.getHighlight()))
.add("title", documentDto.getTitle())
.add("description", JsonUtil.nullable(documentDto.getDescription()))
.add("create_date", documentDto.getCreateTimestamp())

View File

@@ -246,6 +246,8 @@
{{ tag.name }}
</span>
</div>
<div ng-if="document.highlight" class="small well-sm" ng-bind-html="document.highlight"></div>
</td>
</tr>
</tbody>