Examples of doQuery()


Examples of com.ikanow.infinit.e.api.knowledge.QueryHandler.doQuery()

      //DEBUG
      //System.out.println("COMMS="+communityIdStrList.toString() + ": QUERY=" + query.toApi());
     
      // (should have a version of this that just returns the IPs from the index engine)
      // (for now this will do)
      ResponsePojo rp = queryHandler.doQuery(savedQuery._parentShare.getOwner().get_id().toString(),
          query, communityIdStrList.toString(), errorString);
     
      if (null == rp) {
        throw new RuntimeException(errorString.toString()); // (handled below)
      }
View Full Code Here

Examples of com.ikanow.infinit.e.api.knowledge.QueryHandler.doQuery()

        {
          communityIdStrList.append(',');
        }
        communityIdStrList.append(commId.toString());
      }
      rp = queryHandler.doQuery(savedQuery.submitterID.toString(), query, communityIdStrList.toString(), errorString);
    }
    catch (Exception e)
    {
      //DEBUG
      e.printStackTrace();
View Full Code Here

Examples of com.ikanow.infinit.e.data_model.index.ElasticSearchManager.doQuery()

        boolQuery.must(QueryBuilders.rangeQuery(DocumentPojo.created_).from(cleanseStartTime));
        boolQuery.must(QueryBuilders.termQuery(DocumentPojo.sourceKey_, sp.getKey() ));
        searchOptions.setSize(200); // (note this is multiplied by the number of primary shards)
        searchOptions.setSearchType(SearchType.SCAN);
        searchOptions.setScroll("10m");
        SearchResponse rsp = esm.doQuery(boolQuery, searchOptions);
        String scrollId = rsp.getScrollId();
        int nSkip = 0;
       
        for (;;) // Until no more hits
        {
View Full Code Here

Examples of com.ikanow.infinit.e.data_model.index.ElasticSearchManager.doQuery()

          BoolQueryBuilder boolQueryOLD = QueryBuilders.boolQuery();
          boolQueryOLD.must(QueryBuilders.rangeQuery(DocumentPojo.created_).from(cleanseStartTime));
          boolQueryOLD.must(QueryBuilders.termQuery(DocumentPojo.sourceKey_, sp.getKey()));
          searchOptionsOLD.addSort(DocumentPojo.created_, SortOrder.ASC);
          searchOptionsOLD.setSize(rows);
          SearchResponse rspOLD = esm.doQuery(boolQueryOLD, searchOptionsOLD);
          SearchHit[] docsOLD = rspOLD.getHits().getHits();
         
          //Check all solr docs against mongodb
         
          for (SearchHit hit: docsOLD)        
View Full Code Here

Examples of com.ikanow.infinit.e.data_model.index.ElasticSearchManager.doQuery()

    }
    //TESTED

    // Perform the search

    SearchResponse rsp = gazIndex.doQuery(queryObj, searchOptions);

    // Format the return values

    SearchHit[] docs = rsp.getHits().getHits();     
    DimensionListPojo dimlist = new DimensionListPojo();
View Full Code Here

Examples of com.ikanow.infinit.e.data_model.index.ElasticSearchManager.doQuery()

      }
      else { // normal case
        searchOptions.setSize(nNumSuggestionsToReturn);
      }

      SearchResponse rsp = esm.doQuery(boolQuery, searchOptions);
      SearchHit[] docs = rsp.getHits().getHits();

      //Currently this code takes the results and puts
      //them into a set so there are no duplicates
      //duplicates occur for example when you search for
View Full Code Here

Examples of com.ikanow.infinit.e.data_model.index.ElasticSearchManager.doQuery()

    searchSettings.addFields();
    if ((null != query.raw) && (null != query.raw.query))
    {
      // (Can bypass all other settings)       
      searchSettings.setQuery(query.raw.query);
      queryResults = indexMgr.doQuery(null, tempFilterInfo.parentFilterObj, searchSettings);
    }//TESTED '{ "raw": { "match_all": {} } }'
    else
    {
      // Where I can, use the source filter as part of the query so that
      // facets will apply to query+filter, not just filter
View Full Code Here

Examples of com.ikanow.infinit.e.data_model.index.ElasticSearchManager.doQuery()

    {
      // Where I can, use the source filter as part of the query so that
      // facets will apply to query+filter, not just filter
      queryObj = QueryBuilders.boolQuery().must(queryObj).must(QueryBuilders.constantScoreQuery(tempFilterInfo.parentFilterObj).boost(0.0F));
     
      queryResults = indexMgr.doQuery(queryObj, null, searchSettings);
    }//TESTED '{}' etc
   
    long nLuceneTime = queryResults.getTookInMillis();

  // 0.7] Lucene scores 
View Full Code Here

Examples of com.senseidb.federated.broker.proxy.SenseiBrokerProxy.doQuery()

          zkServer.stop();
        }
      });
      SenseiBrokerProxy brokerProxy = SenseiBrokerProxy.valueOf(senseiConfiguration, new HashMap<String, String>(), new SenseiJavaSerializer());
      while (true) {
        SenseiResult senseiResult = brokerProxy.doQuery(new SenseiRequest()).get(0);
        int totalDocs = senseiResult.getTotalDocs();
        System.out.println("TotalDocs = " + totalDocs);
        if (totalDocs >= expectedDocs) {
          break;
        }
View Full Code Here

Examples of com.senseidb.svc.api.SenseiService.doQuery()

  }

  public static void main(String[] args) throws Exception{
    File idxDir = new File("/tmp/sensei-example-cars/node1/shard0");
    SenseiService svc = new LocalQueryOnlySenseiServiceImpl(idxDir);
    SenseiResult res = svc.doQuery(new SenseiRequest());
    System.out.println(res.getTotalDocs());
    svc.shutdown();
  }
}
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.