Examples of withRececyPriority()


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

    // Create the search expression and the query
    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
View Full Code Here

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

    assertEquals(2, items.length);
    assertEquals(livePageId, items[0].getId());
    assertEquals(otherLivePageId, items[1].getId());

    // Search with recency boosting
    q.withRececyPriority();
    items = idx.getByQuery(q).getItems();
    assertEquals(2, items.length);
    assertEquals(otherLivePageId, items[0].getId());
    assertEquals(livePageId, items[1].getId());
  }
View Full Code Here

Examples of ch.entwine.weblounge.common.impl.content.SearchQueryImpl.withRececyPriority()

    // Create the search expression and the query
    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
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.