Closed
Description
What is the bug?
Can not run ./gradlew run in the neural search repo. Get the following error:
/Users/yuyezhu/Desktop/Code/neural-search/src/main/java/org/opensearch/neuralsearch/query/HybridSubQueryScorer.java:16: warning: Generating equals/hashCode implementation but without a call to superclass, even though this class does not extend java.lang.Object. If this is intentional, add '@EqualsAndHashCode(callSuper=false)' to your type.
@Data
^
/Users/yuyezhu/Desktop/Code/neural-search/src/main/java/org/opensearch/neuralsearch/query/HybridQueryDocIdStream.java:20: error: HybridQueryDocIdStream is not abstract and does not override abstract method mayHaveRemaining() in DocIdStream
public class HybridQueryDocIdStream extends DocIdStream {
^
/Users/yuyezhu/Desktop/Code/neural-search/src/main/java/org/opensearch/neuralsearch/query/HybridQueryScorer.java:212: error: DisiPriorityQueue is abstract; cannot be instantiated
DisiPriorityQueue subScorersPQ = new DisiPriorityQueue(numSubqueries);
^
/Users/yuyezhu/Desktop/Code/neural-search/src/main/java/org/opensearch/neuralsearch/query/HybridQueryScorer.java:328: error: constructor DisjunctionDISIApproximation in class DisjunctionDISIApproximation cannot be applied to given types;
docIdSetIterator = new DisjunctionDISIApproximation(subIterators);
^
required: Collection<? extends DisiWrapper>,long
found: DisiPriorityQueue
reason: actual and formal argument lists differ in length
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
1 warning
How can one reproduce the bug?
Run ./gradlew run in the neural search repo
What is the expected behavior?
A clear and concise description of what you expected to happen.
What is your host/environment?
Operating system, version.
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.