Codota Logo
org.opencms.search
Code IndexAdd Codota to your IDE (free)

How to use org.opencms.search

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: org.opencms/opencms-core

/**
 * Sets the sort order used for sorting the results of s search.<p>
 *
 * @param sortOrder the sort order to set
 */
public void setSortOrder(Sort sortOrder) {
  m_parameters.setSort(sortOrder);
  resetLastResult();
}
origin: org.opencms/opencms-solr

/**
 * Sets the current result page.<p>
 * 
 * Works with jsp bean mechanism for request parameter "searchPage" 
 * that is generated here for page links.<p>
 * 
 * @param page the current result page
 */
public void setSearchPage(int page) {
  m_parameters.setSearchPage(page);
  resetLastResult();
}
origin: org.opencms/opencms-core

/**
 * Gets the name of the current search index.<p>
 *
 * @return the name of the index
 */
public String getIndex() {
  return m_parameters.getSearchIndex().getName();
}
origin: org.opencms/opencms-core

/**
 * Returns the key words.<p>
 *
 * @return the key words
 *
 * @Deprecated use {@link #getField(String)} instead with the name of the field,
 *      for example use {@link org.opencms.search.fields.CmsLuceneField#FIELD_KEYWORDS} to get the keywords (if available)
 */
public String getKeywords() {
  return getField(CmsSearchField.FIELD_KEYWORDS);
}
origin: org.opencms/opencms-core

/**
 * Sets the number of matches per page.<p>
 *
 * @param matches the number of matches per page
 */
public void setMatchesPerPage(int matches) {
  m_parameters.setMatchesPerPage(matches);
  resetLastResult();
}
origin: org.opencms/opencms-core

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

/**
 * Returns the minimum creation date a resource must have to be included in the search result.<p>
 *
 * @return the minimum creation date a resource must have to be included in the search result
 */
public long getMinDateCreated() {
  return m_parameters.getMinDateCreated();
}
origin: org.opencms/opencms-core

/**
 * Gets the current search query.<p>
 *
 * @return the current query string or null if no query was set before
 */
public String getQuery() {
  return m_parameters.getQuery();
}
origin: org.opencms/opencms-core

/**
 * Returns a cached Lucene term query filter for the given field and terms.<p>
 *
 * @param field the field to use
 * @param terms the term to use
 *
 * @return a cached Lucene term query filter for the given field and terms
 */
protected Filter getMultiTermQueryFilter(String field, String terms) {
  return getMultiTermQueryFilter(field, terms, null);
}
origin: org.opencms/opencms-core

/**
 * Closes the index searcher for this index.<p>
 *
 * @see #indexSearcherOpen(String)
 */
protected synchronized void indexSearcherClose() {
  indexSearcherClose(m_indexSearcher);
}
origin: org.opencms/opencms-core

/**
 * Sets the maximum number of pages which should be shown.<p>
 *
 * Enter an odd value to achieve a nice, "symmetric" output.<p>
 *
 * @param value the maximum number of pages which should be shown
 */
public void setDisplayPages(int value) {
  m_parameters.setDisplayPages(value);
}
origin: org.opencms/opencms-core

/**
 * Gets the number of matches displayed on each page.<p>
 *
 * @return matches per result page
 */
public int getMatchesPerPage() {
  return m_parameters.getMatchesPerPage();
}
origin: org.opencms/opencms-core

/**
 * Resumes offline indexing if it was paused.<p>
 */
public void resumeOfflineIndexing() {
  if (m_offlineUpdateFrequency == Long.MAX_VALUE) {
    setOfflineUpdateFrequency(
      m_configuredOfflineIndexingFrequency > 0
      ? m_configuredOfflineIndexingFrequency
      : DEFAULT_OFFLINE_UPDATE_FREQNENCY);
  }
}
origin: org.opencms/opencms-core

/**
 * @see org.opencms.search.I_CmsSearchDocument#getType()
 */
public String getType() {
  return getFieldValueAsString(CmsSearchField.FIELD_TYPE);
}
origin: org.opencms/opencms-core

/**
 * Delegator.<p>
 *
 * {@link I_CmsSearchDocument#getFieldValueAsDate(String)}
 *
 * @param fieldName the field name to get the value for
 *
 * @return the value
 */
public Date getDateField(String fieldName) {
  return m_doc.getFieldValueAsDate(fieldName);
}
origin: org.opencms/opencms-core

/**
 * Sets the current result page.<p>
 *
 * Works with jsp bean mechanism for request parameter "searchPage"
 * that is generated here for page links.<p>
 *
 * @param page the current result page
 */
public void setSearchPage(int page) {
  m_parameters.setSearchPage(page);
  resetLastResult();
}
origin: org.opencms/opencms-solr

/**
 * Gets the name of the current search index.<p>
 * 
 * @return the name of the index
 */
public String getIndex() {
  return m_parameters.getSearchIndex().getName();
}
origin: org.opencms/opencms-solr

/**
 * Sets the sort order used for sorting the results of s search.<p>
 *
 * @param sortOrder the sort order to set
 */
public void setSortOrder(Sort sortOrder) {
  m_parameters.setSort(sortOrder);
  resetLastResult();
}
origin: org.opencms/opencms-solr

/**
 * Sets the number of matches per page.<p>
 * 
 * @param matches the number of matches per page
 */
public void setMatchesPerPage(int matches) {
  m_parameters.setMatchesPerPage(matches);
  resetLastResult();
}
origin: org.opencms/opencms-core

/**
 * Returns a cached Lucene term query filter for the given field and terms.<p>
 *
 * @param field the field to use
 * @param terms the term to use
 *
 * @return a cached Lucene term query filter for the given field and terms
 */
protected Filter getMultiTermQueryFilter(String field, List<String> terms) {
  return getMultiTermQueryFilter(field, null, terms);
}
org.opencms.search

Most used classes

  • CmsSearch
    Helper class to access the search facility within a jsp. Typically, the following fields are availab
  • CmsSearchResult
    Contains the data of a single item in a search result.
  • CmsSearchFieldConfiguration
    Abstract implementation for OpenCms search field configurations.
  • CmsSearchIndex
    Implements the search within an index and the management of the index configuration.
  • CmsSearchManager
    Implements the general management and configuration of the search and indexing facilities in OpenCms
  • Messages,
  • CmsLuceneField,
  • CmsSearchFieldMapping,
  • CmsSearchFieldMappingType,
  • CmsSearchDocumentType,
  • CmsSearchException,
  • CmsSearchIndexSource,
  • CmsExtractorPdf,
  • CmsExtractorRtf,
  • I_CmsExtractionResult,
  • I_CmsTextExtractor,
  • CmsSearchField,
  • CmsIndexException,
  • CmsIndexingThread
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now