You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2019/11/05 14:33:20 UTC

[GitHub] [lucene-solr] romseygeek commented on a change in pull request #985: LUCENE-9031: test unified highlighter on intervals queries

romseygeek commented on a change in pull request #985: LUCENE-9031: test unified highlighter on intervals queries
URL: https://github.com/apache/lucene-solr/pull/985#discussion_r342594186
 
 

 ##########
 File path: lucene/queries/src/java/org/apache/lucene/queries/intervals/TermIntervalsSource.java
 ##########
 @@ -200,7 +207,7 @@ public MatchesIterator getSubMatches() {
 
       @Override
       public Query getQuery() {
-        throw new UnsupportedOperationException();
+        return query;
 
 Review comment:
   SpanQuery returns a TermQuery here, so I think we can do the same - get the term from `te.term()` and pass the field in as a parameter.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org