Skip to content

Commit

Permalink
Fulltext fixes for EA 3891
Browse files Browse the repository at this point in the history
  • Loading branch information
nshweta90 committed Aug 1, 2024
1 parent 08c2aa0 commit eab8842
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class SearchResultV2 implements Serializable, SearchResult {

private static final String TYPE = "sc:AnnotationList";

private String[] context;
private final String id;
private Debug debug;
private final List<AnnotationV2> items = new ArrayList<>();
Expand All @@ -38,7 +39,7 @@ public SearchResultV2(String searchId, boolean debug) {

@Override
public String[] getContext() {
return new String[0];
return context;
}

@Override
Expand Down Expand Up @@ -85,6 +86,6 @@ public List<Hit> getHits() {

@Override
public void setContext(String[] context) {

this.context=context;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public class SearchResultV3 implements Serializable, SearchResult {

private static final String TYPE = "AnnotationPage";

private String[] context;
private String id;
private Debug debug;
private List<AnnotationV3> items = new ArrayList<>();
Expand All @@ -36,7 +37,7 @@ public SearchResultV3(String searchId, boolean debug) {

@Override
public String[] getContext() {
return new String[0];
return this.context;
}

public String getId() {
Expand Down

0 comments on commit eab8842

Please sign in to comment.