/** * @deprecated As of Wilberforce (7.0.x), replaced by {@link * IndexSearcherHelperUtil#search(SearchContext, Query)} */ @Deprecated public static Hits search( String searchEngineId, long companyId, Query query, Sort[] sorts, int start, int end) throws SearchException { SearchContext searchContext = new SearchContext(); searchContext.setCompanyId(companyId); searchContext.setEnd(end); searchContext.setSearchEngineId(searchEngineId); searchContext.setSorts(sorts); searchContext.setStart(start); return IndexSearcherHelperUtil.search(searchContext, query); }
/** * @deprecated As of Wilberforce (7.0.x), replaced by {@link * #search(SearchContext, Query)} */ @Deprecated @Override public Hits search( String searchEngineId, long companyId, Query query, Sort[] sorts, int start, int end) throws SearchException { SearchContext searchContext = new SearchContext(); searchContext.setCompanyId(companyId); searchContext.setEnd(end); searchContext.setSearchEngineId(searchEngineId); searchContext.setSorts(sorts); searchContext.setStart(start); return search(searchContext, query); }
searchContext.setStart(offset);
searchContext.setStart(start);
searchContext.setStart(start);
protected SearchContext buildSearchContext( long groupId, long userId, long creatorUserId, int status, int start, int end) throws PortalException { SearchContext searchContext = new SearchContext(); searchContext.setAttribute(Field.STATUS, status); searchContext.setAttribute("paginationType", "none"); if (creatorUserId > 0) { searchContext.setAttribute( Field.USER_ID, String.valueOf(creatorUserId)); } Group group = groupLocalService.getGroup(groupId); searchContext.setCompanyId(group.getCompanyId()); searchContext.setEnd(end); searchContext.setGroupIds(new long[] {groupId}); searchContext.setSorts(new Sort(Field.MODIFIED_DATE, true)); searchContext.setStart(start); searchContext.setUserId(userId); return searchContext; }
searchContext.setStart(offset);
searchContext.setStart(searchContainer.getStart());
searchContext.setStart(searchContainer.getStart());