Codota Logo
CmsSearchIndexSource.getIndexer
Code IndexAdd Codota to your IDE (free)

How to use
getIndexer
method
in
org.opencms.search.CmsSearchIndexSource

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: org.opencms/org.opencms.workplace.tools.searchindex

/**
 * @see org.opencms.workplace.list.A_CmsListDialog#getListItems()
 */
@Override
protected List<CmsListItem> getListItems() {
  List<CmsListItem> result = new ArrayList<CmsListItem>();
  // get content
  List<CmsSearchIndexSource> sources = searchIndexSources();
  Iterator<CmsSearchIndexSource> itSources = sources.iterator();
  CmsSearchIndexSource source;
  while (itSources.hasNext()) {
    source = itSources.next();
    CmsListItem item = getList().newItem(source.getName());
    item.set(LIST_COLUMN_NAME, source.getName());
    item.set(LIST_COLUMN_INDEXER, source.getIndexer().getClass().getName());
    result.add(item);
  }
  return result;
}
origin: org.opencms/org.opencms.workplace.tools.searchindex

/**
 * @see org.opencms.workplace.list.A_CmsListDialog#getListItems()
 */
@Override
protected List<CmsListItem> getListItems() {
  List<CmsListItem> result = new ArrayList<CmsListItem>();
  // get content
  // cannot use the returned map: unmodifyable
  List<CmsSearchIndexSource> allSources = new LinkedList<CmsSearchIndexSource>(
    OpenCms.getSearchManager().getSearchIndexSources().values());
  allSources.removeAll(searchIndexSources());
  Iterator<CmsSearchIndexSource> itSources = allSources.iterator();
  CmsSearchIndexSource source;
  while (itSources.hasNext()) {
    source = itSources.next();
    CmsListItem item = getList().newItem(source.getName());
    item.set(LIST_COLUMN_NAME, source.getName());
    item.set(LIST_COLUMN_INDEXER, source.getIndexer().getClass().getName());
    result.add(item);
  }
  return result;
}
origin: org.opencms/org.opencms.workplace.tools.searchindex

/**
 * @see org.opencms.workplace.list.A_CmsListDialog#getListItems()
 */
@Override
protected List<CmsListItem> getListItems() {
  List<CmsListItem> result = new ArrayList<CmsListItem>();
  // get content
  List<CmsSearchIndexSource> sources = searchIndexSources();
  Iterator<CmsSearchIndexSource> itSources = sources.iterator();
  CmsSearchIndexSource source;
  while (itSources.hasNext()) {
    source = itSources.next();
    CmsListItem item = getList().newItem(source.getName());
    // use "null" String to avoid exception if name is empty
    item.set(LIST_COLUMN_NAME, String.valueOf(source.getName()));
    item.set(LIST_COLUMN_INDEXER, source.getIndexer().getClass());
    result.add(item);
  }
  return result;
}
origin: org.opencms/opencms-core

  /**
   * Returns <code>true</code> if at least one of the index sources uses a VFS indexer that is able
   * to index locale dependent resources.<p>
   *
   * TODO This should be improved somehow
   *
   * @return <code>true</code> if this field configuration should resolve locale dependencies
   */
  private boolean hasLocaleDependencies() {

    for (CmsSearchIndexSource source : getIndex().getSources()) {
      if (source.getIndexer().isLocaleDependenciesEnable()) {
        return true;
      }
    }
    return false;
  }
}
origin: org.opencms/org.opencms.workplace.tools.searchindex

item.set(LIST_COLUMN_NAME, source.getName());
try {
  value = source.getIndexer().getClass().getName();
} catch (Throwable f) {
  value = "null";
origin: org.opencms/opencms-core

I_CmsIndexer indexer = source.getIndexer().newInstance(cms, report, index);
origin: org.opencms/opencms-solr

I_CmsIndexer indexer = source.getIndexer().newInstance(cms, report, index);
origin: org.opencms/opencms-core

I_CmsIndexer indexer = source.getIndexer().newInstance(cms, report, index);
origin: org.opencms/opencms-solr

I_CmsIndexer indexer = source.getIndexer().newInstance(cms, report, index);
org.opencms.searchCmsSearchIndexSourcegetIndexer

Javadoc

Returns the indexer.

Popular methods of CmsSearchIndexSource

  • getDocumentTypes
    Returns the list of names (Strings) of the document types to be indexed.
  • getIndexerClassName
    Returns the class name of the indexer.
  • getName
    Returns the logical key/name of this search index source.
  • getResourcesNames
    Returns the list of VFS resources to be indexed.
  • getParams
    Returns the map of optional key/value parameters.
  • isContaining
    Returns true in case the given resource root path is contained in the list of configured resource na
  • isIndexing
    Returns true in case the given resource root path is contained in the list of configured resource na
  • <init>
    Creates a new CmsSearchIndexSource.
  • addDocumentType
    Adds the name of a document type.
  • removeDocumentType
    Removes the name of a document type from the list of configured types of this index source.
  • setIndexerClassName
    Sets the class name of the indexer. An Exception is thrown to allow GUI-display of wrong input.
  • setName
    Sets the logical key/name of this search index source.
  • setIndexerClassName,
  • setName

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Path (java.nio.file)
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • JOptionPane (javax.swing)
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