Package org.neo4j.index.lucene

Examples of org.neo4j.index.lucene.QueryContext.sort()


      if (sortKey != null) {

        Integer sortType = sortKey.getSortType();
        if (sortType != null) {

          queryContext.sort(new Sort(new SortField(sortKey.dbName(), sortType, sortDescending)));

        } else {

          queryContext.sort(new Sort(new SortField(sortKey.dbName(), Locale.getDefault(), sortDescending)));
        }
View Full Code Here


          queryContext.sort(new Sort(new SortField(sortKey.dbName(), sortType, sortDescending)));

        } else {

          queryContext.sort(new Sort(new SortField(sortKey.dbName(), Locale.getDefault(), sortDescending)));
        }

      }

      if (distanceSearch != null) {
View Full Code Here

          } catch (NumberFormatException nfe) {

            logger.log(Level.SEVERE, "Could not sort results", nfe);

            // retry without sorting
            queryContext.sort(null);
            hits = index.query(queryContext);

          }
        }
View Full Code Here

          } catch (NumberFormatException nfe) {

            logger.log(Level.SEVERE, "Could not sort results", nfe);

            // retry without sorting
            queryContext.sort(null);
            hits = index.query(queryContext);

          }
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.