Examples of Indexer


Examples of org.olat.search.service.indexer.Indexer

    if (indexerList == null)
      throw new AssertException("null value for indexerList not allowed.");

    try {
      for (Iterator iter = indexerList.iterator(); iter.hasNext();) {
        Indexer reporsitoryEntryIndexer = (Indexer) iter.next();
        RepositoryEntryIndexerFactory.getInstance().registerIndexer(reporsitoryEntryIndexer);
        if (Tracing.isDebugEnabled(RepositoryIndexer.class)) Tracing.logDebug("Adding indexer from configuraton:: ", RepositoryIndexer.class);
      }
    }  catch (ClassCastException cce) {
        throw new StartupException("Configured indexer is not of type RepositoryEntryIndexer", cce);
View Full Code Here

Examples of org.olat.search.service.indexer.Indexer

        }
        isAllowedToLaunch = repositoryManager.isAllowedToLaunch(identity, roles, repositoryEntry);
      }
      if (Tracing.isDebugEnabled(RepositoryIndexer.class)) Tracing.logDebug("isOwner=" + isOwner + "  isAllowedToLaunch=" + isAllowedToLaunch, RepositoryIndexer.class);
      if (isOwner || isAllowedToLaunch) {
        Indexer repositoryEntryIndexer = RepositoryEntryIndexerFactory.getInstance().getRepositoryEntryIndexer(repositoryEntry);
        if (Tracing.isDebugEnabled(RepositoryIndexer.class)) Tracing.logDebug("repositoryEntryIndexer=" + repositoryEntryIndexer, RepositoryIndexer.class);
        if (repositoryEntryIndexer != null) {
          return repositoryEntryIndexer.checkAccess(contextEntry, businessControl, identity, roles);
        } else {
          // No Indexer => no access
          return false;
        }
      } else {
View Full Code Here

Examples of org.olat.search.service.indexer.Indexer

    List<OlatDocument> filteredList = new ArrayList<OlatDocument>(maxToReturn);
    long startTime = 0;
    if ( log.isDebug() ) {
      startTime = System.currentTimeMillis();
    }
    Indexer mainIndexer = (Indexer)CoreSpringFactory.getBean("mainindexer");
    // loop over all results
    Iterator<OlatDocument> it_odocs = unFilteredList.iterator();
    int resultCount = 0;
    int loopCount = 0;
    while (it_odocs.hasNext() && resultCount < maxToReturn) {
      long elementStartTime = 0;
      if ( log.isDebug() ) {
        elementStartTime = System.currentTimeMillis();
      }
      OlatDocument odoc = it_odocs.next();
      String resourceUrl = odoc.getResourceUrl();
      BusinessControl businessControl = BusinessControlFactory.getInstance().createFromString(resourceUrl);
      boolean hasAccess = mainIndexer.checkAccess(null, businessControl, identity, roles);
      if (hasAccess) {
        filteredList.add(odoc);
        resultCount++;
      }
      loopCount++;
View Full Code Here

Examples of org.openbel.framework.core.indexer.Indexer

        String equivalenceIndexLocation = asPath(
                equivalenceHeaderFile.getParent(), "equivalence.index");

        if (!new File(equivalenceIndexLocation).exists()) {
            Indexer equivalenceIndexer = new Indexer();
            equivalenceIndexer.indexEquivalenceFile(characterStopOffset,
                    rawEquivalenceFile, equivalenceIndexLocation);
        }

        return new DataFileIndex(equivalenceResourceLocation,
                equivalenceIndexLocation, equivalenceHeaderFile);
View Full Code Here

Examples of org.opensolaris.opengrok.index.Indexer

            if (cfgFile.exists()) {
                env = RuntimeEnvironment.getInstance();
                log.log(Level.INFO, "Running indexer with configuration {0}", configfile);
                env.readConfiguration(cfgFile);

                Indexer index = Indexer.getInstance();
                int noThreads = Management.getInstance().getNumberOfThreads().intValue();
                boolean update = Management.getInstance().getUpdateIndexDatabase().booleanValue();
                String[] sublist = Management.getInstance().getSubFiles();
                log.info("Update source repositories");
                HistoryGuru.getInstance().updateRepositories();
                List<String> subFiles = Arrays.asList(sublist);
                log.log(Level.INFO, "Starting index, update {0} noThreads {1} subfiles {2}", new Object[]{String.valueOf(update), String.valueOf(noThreads), String.valueOf(subFiles.size())});
                index.doIndexerExecution(update, noThreads, subFiles, this);
                log.info("Finished indexing");
                lastIndexFinish = System.currentTimeMillis();
                sendNotifications();
                doNotify(NOTIFICATIONINFOLONGTYPE, "FinishedIndexing", Long.valueOf(lastIndexFinish));
                lastIndexUsedTime = lastIndexFinish - lastIndexStart;
                String publishhost = Management.getInstance().getPublishServerURL();
                if ((publishhost == null) || (publishhost.equals(""))) {
                    log.warning("No publishhost given, not sending updates");
                } else {
                    index.sendToConfigHost(env, publishhost);
                    doNotify(NOTIFICATIONINFOSTRINGTYPE, "Published index", publishhost);
                }


            } else {
View Full Code Here

Examples of org.python.indexer.Indexer

    private void start(File stdlib, File fileOrDir) throws Exception {
        rootDir = fileOrDir.isFile() ? fileOrDir.getParentFile() : fileOrDir;
        rootPath = rootDir.getCanonicalPath();

        indexer = new Indexer();
        indexer.addPath(stdlib.getCanonicalPath());
        info("building index...");
        indexer.loadFileRecursive(fileOrDir.getCanonicalPath());
        indexer.ready();
View Full Code Here

Examples of org.springframework.expression.spel.ast.Indexer

    if (!peekToken(TokenKind.LSQUARE,true)) {
      return false;
    }
    SpelNodeImpl expr = eatExpression();
    eatToken(TokenKind.RSQUARE);
    constructedNodes.push(new Indexer(toPos(t),expr));
    return true;
  }
View Full Code Here

Examples of org.terrier.indexing.Indexer

          logger.error("Aborting indexing process");
          return;
        }
 
 
      Indexer indexer;
      final boolean useSinglePass = Boolean.parseBoolean(ApplicationSetup.getProperty("desktop.indexing.singlepass", "false"));
      indexer = ApplicationSetup.BLOCK_INDEXING
        ? useSinglePass
          ? new BlockSinglePassIndexer(ApplicationSetup.TERRIER_INDEX_PATH, ApplicationSetup.TERRIER_INDEX_PREFIX
          : new BlockIndexer(ApplicationSetup.TERRIER_INDEX_PATH, ApplicationSetup.TERRIER_INDEX_PREFIX)
        : useSinglePass
          ? new BasicSinglePassIndexer(ApplicationSetup.TERRIER_INDEX_PATH, ApplicationSetup.TERRIER_INDEX_PREFIX)
          : new BasicIndexer(ApplicationSetup.TERRIER_INDEX_PATH, ApplicationSetup.TERRIER_INDEX_PREFIX);
 
      SimpleFileCollection sfc = new SimpleFileCollection(folderList, true);
 
      indexer.index(new Collection[] { sfc });
 
     
      //load in the indexes
      if (loadIndices()) {
        //indices loaded
View Full Code Here

Examples of org.wso2.carbon.registry.core.jdbc.indexing.Indexer

    public Resource get(RequestContext requestContext) throws RegistryException {
        return null;
    }

    public void put(RequestContext requestContext) throws RegistryException {
        new Indexer().indexXML(requestContext);
    }
View Full Code Here

Examples of org.wso2.carbon.registry.core.jdbc.indexing.Indexer

    public void put(RequestContext requestContext) throws RegistryException {
        new Indexer().indexXML(requestContext);
    }

    public void importResource(RequestContext requestContext) throws RegistryException {
        new Indexer().indexXML(requestContext);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.