Skip to content

Instantly share code, notes, and snippets.

@request-timeout
Created September 23, 2013 21:49
Show Gist options
  • Save request-timeout/6677448 to your computer and use it in GitHub Desktop.
Save request-timeout/6677448 to your computer and use it in GitHub Desktop.
Indexer indexer = IndexerRegistryUtil.getIndexer(LibertyProgram.class); SearchContext searchContext = SearchContextFactory.getInstance(request); searchContext.setAttribute("paginationType", "regular"); searchContext.setEnd(searchContainer.getEnd()); searchContext.setKeywords(keywords); searchContext.setStart(searchContainer.getStart()); Hits results = indexer.search(searchContext);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment