Examples of withLimit()


Examples of ch.entwine.weblounge.common.content.SearchQuery.withLimit()

        query.withPagelets(All, pagelets.toArray(new Pagelet[pagelets.size()])).inStage();
      }

      // Order by date and limit the result set
      query.sortByPublishingDate(SearchQuery.Order.Descending);
      query.withLimit(count);

      // Finally Load the pages
      pages = repository.find(query);
    }
View Full Code Here

Examples of ch.entwine.weblounge.common.content.SearchQuery.withLimit()

    SearchQuery q = new SearchQueryImpl(site);
    q.withText(true, queryString);
    q.withVersion(Resource.LIVE);
    q.withRececyPriority();
    q.withOffset(offset);
    q.withLimit(limit);
    q.withTypes(Page.TYPE);

    // Return the result
    SearchResult result = null;
    try {
View Full Code Here

Examples of ch.entwine.weblounge.common.content.SearchQuery.withLimit()

    // TODO: Add more feed metadata, ask site

    SearchQuery query = new SearchQueryImpl(site);
    query.withVersion(Resource.LIVE);
    query.withTypes(Page.TYPE);
    query.withLimit(limit);
    query.sortByPublishingDate(Order.Descending);
    for (String subject : subjects) {
      query.withSubject(subject);
    }
View Full Code Here

Examples of ch.entwine.weblounge.common.content.SearchQuery.withLimit()

          q.withCreationDateBetween(creatorStartDate);
          q.and(creatorEndDate);
        }
      }

      q.withLimit(limit);
      q.withOffset(offset);

      try {
        searchResult = repository.find(q);
      } catch (ContentRepositoryException e) {
View Full Code Here

Examples of ch.entwine.weblounge.common.content.SearchQuery.withLimit()

      p.setTemplate(template.getIdentifier());
      idx.add(p);
    }

    SearchQuery q = new SearchQueryImpl(site).withTypes(Page.TYPE).withPathPrefix(path1);
    q.withLimit(100);
    assertEquals(21, idx.getByQuery(q).getDocumentCount());
  }

  /**
   * Test method for
View Full Code Here

Examples of ch.entwine.weblounge.common.content.SearchQuery.withLimit()

    SearchQuery query = new SearchQueryImpl(site);
    try {
      query.withFulltext(true, URLDecoder.decode(terms, "utf-8"));
      query.withVersion(Resource.LIVE);
      query.withOffset(offset);
      query.withLimit(limit);
    } catch (UnsupportedEncodingException e) {
      throw new WebApplicationException(e);
    }

    // Return the result
View Full Code Here

Examples of ch.entwine.weblounge.common.content.SearchQuery.withLimit()

      }

    }

    // Limit and Offset
    q.withLimit(limit);
    q.withOffset(offset);

    // Sort order
    if (StringUtils.equalsIgnoreCase("modified-asc", sort)) {
      q.sortByModificationDate(Order.Ascending);
View Full Code Here

Examples of ch.entwine.weblounge.common.content.SearchQuery.withLimit()

    // Filter query
    if (StringUtils.isNotBlank(filter))
      q.withFilter(filter);

    // Limit and Offset
    q.withLimit(limit);
    q.withOffset(offset);

    // Sort order
    if (StringUtils.equalsIgnoreCase("modified-asc", sort)) {
      q.sortByModificationDate(Order.Ascending);
View Full Code Here

Examples of ch.entwine.weblounge.common.content.SearchQuery.withLimit()

        q.withFulltext(true, filter);
      }
    }

    // Limit and Offset
    q.withLimit(limit);
    q.withOffset(offset);

    // Sort order
    if (StringUtils.equalsIgnoreCase("modified-asc", sort)) {
      q.sortByModificationDate(Order.Ascending);
View Full Code Here

Examples of ch.entwine.weblounge.common.content.SearchQuery.withLimit()

    // Filter query
    if (StringUtils.isNotBlank(filter))
      q.withFilter(filter);

    // Limit and Offset
    q.withLimit(limit);
    q.withOffset(offset);

    // Sort order
    if (StringUtils.equalsIgnoreCase("modified-asc", sort)) {
      q.sortByModificationDate(Order.Ascending);
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.