Package net.sf.regain.search.results

Examples of net.sf.regain.search.results.SearchResults


  protected void printEndTag(PageRequest request, PageResponse response,
    Document hit, int hitIndex)
    throws RegainException
  {
    // Get the search results
    SearchResults results = SearchToolkit.getSearchResults(request);

    String url = results.getHitUrl(hitIndex);

    boolean beautified = getParameterAsBoolean("beautified", false);
    if (beautified && url.startsWith("file://")) {
      response.print(RegainToolkit.urlToFileName(url));
    } else {
View Full Code Here


   * @throws RegainException If there was an exception.
   */
  protected void printEndTag(PageRequest request, PageResponse response,
          Document hit, int hitIndex)
          throws RegainException {
    SearchResults results = SearchToolkit.getSearchResults(request);
    boolean shouldHighlight = results.getShouldHighlight(hitIndex);

    String field = getParameter("field", true);
    String value = null;
    if (shouldHighlight) {
      value = hit.get(RegainToolkit.createHighlightedFieldIdent(field));
View Full Code Here

TOP

Related Classes of net.sf.regain.search.results.SearchResults

Copyright © 2018 www.massapicom. 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.