Examples of Sort

@author Robert "kebernet" Cooper
  • org.slim3.datastore.Sort
    The collection of constants of class. @author taedium @since 1.0.0
  • org.springframework.data.domain.Sort
    Sort option for queries. You have to provide at least a list of properties to sort for that must not include {@literal null} or empty strings. The direction defaults to {@link Sort#DEFAULT_DIRECTION}. @author Oliver Gierke @author Thomas Darimont
  • org.synyx.hades.domain.Sort
  • prefuse.data.util.Sort
    rg">jeffrey heer
  • wycs.solver.smt.Sort
    A sort is the term for a type in the SMT domain. This class provides a few default sorts as well as the ability to create generic sorts, such as {@link wycs.solver.smt.Sort.Set}s or {@link wycs.solver.smt.Sort.Tuple}s. In order to utilise these generic sorts, it is required that the initialisers (from {@link #generateInitialisers(Solver)} be added to the surrounding {@link wycs.solver.smt.Block} or {@link wycs.solver.smt.Smt2File}.

    This design pattern is required as it is not possible to easily write custom theorems to add to SMT solvers. @author Henry J. Wylde


  • Examples of org.apache.lucene.search.Sort

            throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, e);
          }
       
        Query query = rb.getQuery();
          SortSpec sortspec = rb.getSortSpec();
          Sort sort = null;
          if (sortspec!=null){
            sort = sortspec.getSort();
          }

          SolrParams solrParams = rb.req.getParams();
    View Full Code Here

    Examples of org.apache.lucene.search.Sort

        String qstring = params.get(CommonParams.Q);
        String df = params.get(CommonParams.DF);
        String sortString = params.get(CommonParams.SORT);
        BoboDefaultQueryBuilder qbuilder = new BoboDefaultQueryBuilder();
        Query query = qbuilder.parseQuery(qstring, df);
        Sort sort = qbuilder.parseSort(sortString);
        BrowseRequest br = null;
        try {
          br=BoboRequestBuilder.buildRequest(params,query,sort);
          logger.info("REQ: "+BrowseProtobufConverter.toProtoBufString(br));
          BrowseResult result=_svc.browse(br);
    View Full Code Here

    Examples of org.apache.lucene.search.Sort

              }
              else {
                lst[i] = new SortField(part,SortField.STRING,top);
              }
            }
            return new Sort(lst);
        }
    View Full Code Here

    Examples of org.apache.lucene.search.Sort

        String qstring = params.get(CommonParams.Q);
        String df = params.get(CommonParams.DF);
        String sortString = params.get(CommonParams.SORT);
        BoboDefaultQueryBuilder qbuilder = new BoboDefaultQueryBuilder();
        Query query = qbuilder.parseQuery(qstring, df);
        Sort sort = qbuilder.parseSort(sortString);
        BrowseRequest br = null;
        try {
          br=BoboRequestBuilder.buildRequest(params,query,sort);
          logger.info("REQ: "+BrowseProtobufConverter.toProtoBufString(br));
          BrowseResult result=_svc.browse(br);
    View Full Code Here

    Examples of org.apache.lucene.search.Sort

              }
              else {
                lst[i] = new SortField(part,SortField.STRING,top);
              }
            }
            return new Sort(lst);
        }
    View Full Code Here

    Examples of org.apache.lucene.search.Sort

          if (mQuery != null) {
            //System.out.println("Query: '" + mQueryText + "' -> '" + mQuery.toString() + "'");

            try {
              SortingOption sortingOption = new SortingOption(request.getParameter("order"));
              Sort sort = new Sort(sortingOption.getSortField());
              //System.out.println(sortingOption.toString());

              topDocsCollector = TopFieldCollector.create(sort, 10000, true, true, true, false);

              mIndexSearcher.search(mQuery, topDocsCollector);
    View Full Code Here

    Examples of org.apache.lucene.search.Sort

        }
      }

      private int runQuery(IndexSearcher s, Query q) throws Exception {
        s.search(q, 10);
        return s.search(q, null, 10, new Sort(new SortField("title", SortField.STRING))).totalHits;
      }
    View Full Code Here

    Examples of org.apache.lucene.search.Sort

        // Create a distance sort
        // As the radius filter has performed the distance calculations
        // already, pass in the filter to reuse the results.
        //
        DistanceFieldComparatorSource dsort = new DistanceFieldComparatorSource(dq.distanceFilter);
        Sort sort = new Sort(new SortField("foo", dsort,false));

        // Perform the search, using the term query, the serial chain filter, and the
        // distance sort
        TopDocs hits = searcher.search(customScore.createWeight(searcher),null, 1000, sort);
        int results = hits.totalHits;
    View Full Code Here

    Examples of org.apache.lucene.search.Sort

        // Create a distance sort
        // As the radius filter has performed the distance calculations
        // already, pass in the filter to reuse the results.
        //
        DistanceFieldComparatorSource dsort = new DistanceFieldComparatorSource(dq.distanceFilter);
        Sort sort = new Sort(new SortField("foo", dsort,false));

        // Perform the search, using the term query, the serial chain filter, and the
        // distance sort
        TopDocs hits = searcher.search(customScore.createWeight(searcher),null, 1000, sort);
        int results = hits.totalHits;
    View Full Code Here

    Examples of org.apache.lucene.search.Sort

          // Create a distance sort
          // As the radius filter has performed the distance calculations
          // already, pass in the filter to reuse the results.
          //
          DistanceFieldComparatorSource dsort = new DistanceFieldComparatorSource(dq.distanceFilter);
          Sort sort = new Sort(new SortField("foo", dsort,false));
       
          // Perform the search, using the term query, the serial chain filter, and the
          // distance sort
          TopDocs hits = searcher.search(customScore.createWeight(searcher),null, 1000, sort);
          int results = hits.totalHits;
    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.