Skip to content

Instantly share code, notes, and snippets.

@pseudorandoom
Created September 23, 2013 21:49
Show Gist options
  • Save pseudorandoom/6677448 to your computer and use it in GitHub Desktop.
Save pseudorandoom/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