org.lumongo.client.command.Query.addCountRequest()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(199)

本文整理了Java中org.lumongo.client.command.Query.addCountRequest方法的一些代码示例,展示了Query.addCountRequest的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.addCountRequest方法的具体详情如下:
包路径:org.lumongo.client.command.Query
类名称:Query
方法名:addCountRequest

Query.addCountRequest介绍

暂无

代码示例

代码示例来源:origin: lumongo/lumongo

public Query addCountRequest(String label) {
  return (addCountRequest(label, null));
}

代码示例来源:origin: lumongo/lumongo

public Query addCountRequest(String label, Integer maxFacets) {
  return (addCountRequest(label, maxFacets, null));
}

代码示例来源:origin: lumongo/lumongo

public void facetQuery() throws Exception {
  // Can set number of documents to return to 0 unless you want the documents
  // at the same time
  String[] indexes = new String[] { MY_INDEX_NAME, MY_INDEX_NAME2 };
  Query query = new Query(indexes, "title:special", 0);
  int maxFacets = 30;
  query.addCountRequest("issn", maxFacets);
  QueryResult queryResult = lumongoWorkPool.query(query);
  for (FacetCount fc : queryResult.getFacetCounts("issn")) {
    System.out.println("Facet <" + fc.getFacet() + "> with count <" + fc.getCount() + ">");
  }
}

代码示例来源:origin: lumongo/lumongo

q.addCountRequest(facet, facetCount, facetSegmentCount);

代码示例来源:origin: lumongo/lumongo

query.addCountRequest("issn", 4);
QueryResult queryResult = lumongoWorkPool.query(query);
query.addCountRequest("issn", 4);
QueryResult queryResult = lumongoWorkPool.query(query);
query.addCountRequest("journalCountry", 4);
query.addCountRequest("issn", 4);
QueryResult queryResult = lumongoWorkPool.query(query);
query.addCountRequest("publicationDate", 15);
query.addCountRequest("publicationDate", 15);

代码示例来源:origin: lumongo/lumongo

Query q = new Query(FACET_TEST_INDEX, "title:userguide", 10).addCountRequest("keyword", 30);
QueryResult qr = lumongoWorkPool.query(q);
Query q = new Query(FACET_TEST_INDEX, "title:userguide", 10).addCountRequest("keyword", 30);
QueryResult qr = lumongoWorkPool.query(q);
Query q = new Query(FACET_TEST_INDEX, "title:userguide", 10).addCountRequest("issn", 30);
QueryResult qr = lumongoWorkPool.query(q);
Query q = new Query(FACET_TEST_INDEX, "title:userguide", 10).addCountRequest("date", 30);
QueryResult qr = lumongoWorkPool.query(q);
q.addCountRequest("issn");

代码示例来源:origin: lumongo/lumongo

LumongoWorkPool lumongoWorkPool = getLumongoWorkPool();
  Query q = new Query(FACET_TEST_INDEX, "title:userguide", 10).addCountRequest("issn", 30);
  QueryResult qr = lumongoWorkPool.query(q);
  Query q = new Query(FACET_TEST_INDEX, "title:userguide", 10).addCountRequest("date", 30);
  QueryResult qr = lumongoWorkPool.query(q);
  q.addCountRequest("issn");

代码示例来源:origin: lumongo/lumongo

Query q = new Query(FACET_TEST_INDEX, "title:userguide", 10).addCountRequest("issn", 30);

相关文章