lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/search FieldSortedHitQueue.java
Date Fri, 07 May 2004 15:18:09 GMT
ehatcher    2004/05/07 08:18:09

  Modified:    src/java/org/apache/lucene/search FieldSortedHitQueue.java
  Log:
  IntelliJ flagged these two lines as being unreachable, and indeed they are
  
  Revision  Changes    Path
  1.8       +1 -3      jakarta-lucene/src/java/org/apache/lucene/search/FieldSortedHitQueue.java
  
  Index: FieldSortedHitQueue.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/search/FieldSortedHitQueue.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- FieldSortedHitQueue.java	22 Apr 2004 22:23:14 -0000	1.7
  +++ FieldSortedHitQueue.java	7 May 2004 15:18:09 -0000	1.8
  @@ -122,8 +122,6 @@
   
   		ScoreDocComparator comparer = null;
   		switch (type) {
  -			case SortField.SCORE:  comparer = ScoreDocComparator.RELEVANCE; break;
  -			case SortField.DOC:    comparer = ScoreDocComparator.INDEXORDER; break;
   			case SortField.AUTO:   comparer = determineComparator (reader, field); break;
   			case SortField.STRING: comparer = StringSortedHitQueue.comparator (reader, field); break;
   			case SortField.INT:    comparer = IntegerSortedHitQueue.comparator (reader, field);
break;
  
  
  

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


Mime
View raw message