Permalink
Browse files

bug fix: BOBO-100

  • Loading branch information...
1 parent e740164 commit 491e3a5f2b2c1e0893b0db055cb0719dadf920e5 @javasoze committed Mar 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bobo-browse/src/main/java/com/browseengine/bobo/sort/SortCollector.java
@@ -171,7 +171,7 @@ private static DocComparatorSource getNonFacetComparatorSource(SortField sf){
private static DocComparatorSource getComparatorSource(Browsable browser,SortField sf){
DocComparatorSource compSource = null;
- if (SortField.FIELD_DOC.equals(sf)){
+ if (SortField.FIELD_DOC.equals(sf) || sf.getType() == SortField.DOC){
compSource = new DocIdDocComparatorSource();
}
else if (SortField.FIELD_SCORE.equals(sf) || sf.getType() == SortField.SCORE){

0 comments on commit 491e3a5

Please sign in to comment.