EOFetchSpecification fs = new EOFetchSpecification("LuceneAsset", qualifier, null);
fs.setFetchLimit(5);
fs.setSortOrderings(new NSArray(new EOSortOrdering("userCount", EOSortOrdering.CompareAscending)));
Query query = ERLuceneAdaptorChannel.queryForQualifier(new EOKeyValueQualifier("userCount", EOQualifier.QualifierOperatorLessThanOrEqualTo, 802), EOUtilities.entityNamed(ec, "LuceneAsset"));
fs.setHints(new NSDictionary(query, ERLuceneAdaptor.QUERY_HINTS));
NSArray<EOEnterpriseObject> result = ec.objectsWithFetchSpecification(fs);
log.info(result.count() + ": " + result.valueForKey("userCount"));
for (EOEnterpriseObject eo : result) {
log.info(result.count() + ": " + eo);
}
} finally {