Package org.apache.solr.schema

Examples of org.apache.solr.schema.EmbeddedSortField


  }

  private SortField getStringSortField(String fieldName, boolean reverse, boolean nullLast, boolean nullFirst) {
    if (nullLast) {
      if (!reverse)
        return new EmbeddedSortField(fieldName, nullStringLastComparatorSource);
      else
        return new EmbeddedSortField(fieldName, SortField.STRING, true);
    } else if (nullFirst) {
      if (reverse)
        return new EmbeddedSortField(fieldName, nullStringLastComparatorSource, true);
      else
        return new EmbeddedSortField(fieldName, SortField.STRING, false);
    } else {
      return new EmbeddedSortField(fieldName, SortField.STRING, reverse);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.solr.schema.EmbeddedSortField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.