Package org.jzkit.search

Examples of org.jzkit.search.StatelessSearchResultsPageDTO


      SearchSessionFactory search_session_factory = getSearchSession(context);


            if(Log.isDebugEnabled(Geonet.SRU))
                Log.debug(Geonet.SRU,"Calling search_session_factory.getResultsPageFor");
      StatelessSearchResultsPageDTO result = search_session_factory.getResultsPageFor(null,
          model,
          landscape,
          first_record,
          num_hits_per_page,
          request_spec,
View Full Code Here


            Log.debug(Geonet.SEARCH_ENGINE, "Starting remote search");

    String query_id = null;

    // search, but not retrieve
    StatelessSearchResultsPageDTO res = sqs.getResultsPageFor(query_id, qm , landscape  , 0, 0, def_request_spec, exp, null);

    this.status = res.getSearchStatus();
    if ( res.getSearchStatus() == IRResultSetStatus.FAILURE ) {
            if(Log.isDebugEnabled(Geonet.SEARCH_ENGINE))
                Log.debug(Geonet.SEARCH_ENGINE, "failure during search");
    } else {
      this.zinfo = new ZSetInfo(query_id, qm, landscape);
      this.size = res.total_hit_count;
View Full Code Here

      StatelessQueryService sqs = getQueryService(srvContext);
      InformationFragment fragshtml[] = null;

      if (_html) {
        ExplicitRecordFormatSpecification htmlrfs = new ExplicitRecordFormatSpecification("html", null, "f");
        StatelessSearchResultsPageDTO res = sqs.getResultsPageFor(this.zinfo.getSetname(),this.zinfo.getQueryModel(),this.zinfo.getLandscape(),getFrom(),getTo(),def_html_request_spec,htmlrfs,null);
        fragshtml = res.records;
      }

      ExplicitRecordFormatSpecification rfs = new ExplicitRecordFormatSpecification("xml", null, "f");
      StatelessSearchResultsPageDTO res = sqs.getResultsPageFor(this.zinfo.getSetname(),this.zinfo.getQueryModel(),this.zinfo.getLandscape(),getFrom(),getTo(),def_request_spec,rfs,null);
      InformationFragment frags[] = res.records;

      // FIXME: we may not get all the records we want back sometimes!
      int fragsLength = 0;
      if (frags != null) fragsLength = frags.length;
View Full Code Here

TOP

Related Classes of org.jzkit.search.StatelessSearchResultsPageDTO

Copyright © 2018 www.massapicom. 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.