CmsSearchCategoryCollector
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.opencms.search.CmsSearchCategoryCollector (Showing top 4 results out of 315)

origin: org.opencms/opencms-core

/**
 * @see java.lang.Object#toString()
 */
@Override
public String toString() {
  return formatCategoryMap(getCategoryCountResult());
}
origin: org.opencms/opencms-solr

categoryCollector = new CmsSearchCategoryCollector(getSearcher());
searchResults.setCategories(categoryCollector.getCategoryCountResult());
origin: org.opencms/opencms-core

categoryCollector = new CmsSearchCategoryCollector(searcher);
searchResults.setCategories(categoryCollector.getCategoryCountResult());
origin: org.opencms/opencms-solr

  /**
   * @see java.lang.Object#toString()
   */
  @Override
  public String toString() {

    return formatCategoryMap(getCategoryCountResult());
  }
}
org.opencms.searchCmsSearchCategoryCollector

Javadoc

Collects category information during a search process.

Please note: The calculation of the category count slows down the search time by an order of magnitude. Make sure that you only use this feature if it's really required! Be especially careful if your search result list can become large (> 1000 documents), since in this case overall system performance will certainly be impacted considerably when calculating the categories.

Most used methods

  • <init>
    Creates a new category search collector instance.
  • formatCategoryMap
    Convenience method to format a map of categories in a nice 2 column list, for example for display of
  • getCategoryCountResult
    Returns the category count result, the returned map contains Strings (category names) mapped to an I

Popular in Java

  • Parsing JSON documents to java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Menu (java.awt)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)