You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "xia0c (Jira)" <ji...@apache.org> on 2020/01/13 04:24:00 UTC

[jira] [Created] (LUCENE-9129) Updating from 7.X to 8.X breaks

xia0c created LUCENE-9129:
-----------------------------

             Summary: Updating from 7.X to 8.X breaks
                 Key: LUCENE-9129
                 URL: https://issues.apache.org/jira/browse/LUCENE-9129
             Project: Lucene - Core
          Issue Type: Bug
            Reporter: xia0c


Hi, during my upgrading process from 7.X to 8.X I found another code break. 

{code:java}
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.index.MultiDocValues;
import org.apache.lucene.index.SortedDocValues;

import org.apache.lucene.search.IndexSearcher;
import org.apache.lucene.search.Query;
import org.apache.lucene.search.SimpleCollector;
import org.apache.lucene.search.TopDocs;
import org.apache.lucene.util.LongValues;
import org.apache.solr.handler.component.FacetComponent.FacetContext;
import org.apache.solr.search.DocSet;
import org.apache.solr.search.DocSetUtil;
import org.apache.lucene.index.IndexReader;


public class TestLucene {
	
	private FacetContext fcontext;
	private DocSet docs;
	private IndexReader reader;
	
	
	public void demo() throws  IOException {
				
	      DocSetUtil.collectSortedDocSet(docs, reader, new SimpleCollector() {

	          @Override 
	          public boolean needsScores() { return false; }

	          @Override
	          protected void doSetNextReader(LeafReaderContext ctx) throws IOException {
	        	  // TODO
	          }

			@Override
			public void collect(int doc) throws IOException {
				// TODO Auto-generated method stub
				
			}
	        });
      
	}

}
{code}

The code should pass before, but it throws an error:

{code:java}
[ERROR] /TestLucene.java:[32,82] <anonymous TestLucene$1> is not abstract and does not override abstract method scoreMode() in org.apache.lucene.search.Collector
[ERROR] /TestLucene.java:[36,19] method does not override or implement a method from a supertype
{code}

I try to find changes in the migration guide(https://github.com/apache/lucene-solr/blob/branch_8x/lucene/MIGRATE.txt) but I didn't find it. 






--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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