List of usage examples for org.apache.lucene.search SortField toString
@Override
public String toString()
From source file:com.stratio.cassandra.lucene.key.KeySort.java
License:Apache License
/** {@inheritDoc} */ @Override/*w w w.j a v a 2 s. c o m*/ public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof SortField)) { return false; } final SortField other = (SortField) o; return toString().equals(other.toString()); }
From source file:org.codehaus.groovy.grails.plugins.searchable.compass.search.SearchableCompassQueryBuilderSortOptionHelper.java
License:Apache License
public void addSortField(CompassQuery compassQuery, Map options) { SortField sortField = (SortField) options.get("sortField"); if (sortField != null) { System.out.println("added sortfield " + sortField.toString()); LuceneHelper.getLuceneSearchEngineQuery(compassQuery).addSort(sortField); }//w ww .j a va2s.c o m }