Github user jpountz commented on a diff in the pull request:
https://github.com/apache/lucene-solr/pull/345#discussion_r179443767
--- Diff:
lucene/core/src/java/org/apache/lucene/search/MatchAllDocsQuery.java ---
@@ -35,6 +35,12 @@ public Weight createWeight(IndexSearcher searcher,
ScoreMode scoreMode, float bo
public String toString() {
return "weight(" + MatchAllDocsQuery.this + ")";
}
+
+ @Override
+ public Matches matches(LeafReaderContext context, int doc) throws
IOException {
+ return Matches.emptyMatches(context, doc, this, "*");
--- End diff --
this looks hacky
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]