We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52f818f commit 05801beCopy full SHA for 05801be
opengrok-web/src/main/java/org/opengrok/web/api/v1/controller/SearchController.java
@@ -19,10 +19,11 @@
19
20
/*
21
* Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
22
- * Portions Copyright (c) 2020, Chris Fraire <[email protected]>.
+ * Portions Copyright (c) 2019-2020, Chris Fraire <[email protected]>.
23
*/
24
package org.opengrok.web.api.v1.controller;
25
26
+import com.fasterxml.jackson.annotation.JsonInclude;
27
import org.apache.lucene.search.Query;
28
import org.opengrok.indexer.configuration.Project;
29
import org.opengrok.indexer.search.Hit;
@@ -214,6 +215,7 @@ public int getEndDocument() {
214
215
}
216
217
218
+ @JsonInclude(JsonInclude.Include.NON_NULL)
219
private static class SearchHit {
220
221
private final String line;
0 commit comments