Java Code Examples for org.apache.lucene.search.SortField.Type#DOUBLE
The following examples show how to use
org.apache.lucene.search.SortField.Type#DOUBLE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DoubleFieldTypeDefinition.java From incubator-retired-blur with Apache License 2.0 | 5 votes |
@Override public SortField getSortField(boolean reverse) { if (reverse) { return new SortField(getFieldName(), Type.DOUBLE, reverse); } return new SortField(getFieldName(), Type.DOUBLE); }
Example 2
Source File: DoubleFieldSource.java From lucene-solr with Apache License 2.0 | 4 votes |
@Override public SortField getSortField(boolean reverse) { return new SortField(field, Type.DOUBLE, reverse); }
Example 3
Source File: ColumnMapperDouble.java From stratio-cassandra with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public SortField sortField(String field, boolean reverse) { return new SortField(field, Type.DOUBLE, reverse); }