/** * Crawl and index the content in the named workspace. * * @param workspace the workspace * @throws IllegalArgumentException if the workspace is null */ public void reindexContent( JcrWorkspace workspace ) { reindexContent(workspace, Path.ROOT_PATH, Integer.MAX_VALUE); }
/** * Crawl and index the content in the named workspace. * * @param workspace the workspace * @throws IllegalArgumentException if the workspace is null */ public void reindexContent( JcrWorkspace workspace ) { reindexContent(workspace, Path.ROOT_PATH, Integer.MAX_VALUE); }
/** * Asynchronously crawl and index the content in the named workspace. * * @param workspace the workspace * @return the future for the asynchronous operation; never null * @throws IllegalArgumentException if the workspace is null */ public Future<Boolean> reindexContentAsync( final JcrWorkspace workspace ) { return indexingExecutorService.submit(() -> { reindexContent(workspace); return Boolean.TRUE; }); }
/** * Asynchronously crawl and index the content in the named workspace. * * @param workspace the workspace * @return the future for the asynchronous operation; never null * @throws IllegalArgumentException if the workspace is null */ public Future<Boolean> reindexContentAsync( final JcrWorkspace workspace ) { return indexingExecutorService.submit(() -> { reindexContent(workspace); return Boolean.TRUE; }); }
/** * Asynchronously crawl and index the content starting at the supplied path in the named workspace, to the designated depth. * * @param workspace the workspace * @param path the path of the content to be indexed * @param depth the depth of the content to be indexed * @return the future for the asynchronous operation; never null * @throws IllegalArgumentException if the workspace or path are null, or if the depth is less than 1 */ public Future<Boolean> reindexContentAsync( final JcrWorkspace workspace, final Path path, final int depth ) { return indexingExecutorService.submit(() -> { reindexContent(workspace, path, depth); return Boolean.TRUE; }); }
/** * Asynchronously crawl and index the content starting at the supplied path in the named workspace, to the designated depth. * * @param workspace the workspace * @param path the path of the content to be indexed * @param depth the depth of the content to be indexed * @return the future for the asynchronous operation; never null * @throws IllegalArgumentException if the workspace or path are null, or if the depth is less than 1 */ public Future<Boolean> reindexContentAsync( final JcrWorkspace workspace, final Path path, final int depth ) { return indexingExecutorService.submit(() -> { reindexContent(workspace, path, depth); return Boolean.TRUE; }); }
protected boolean reindexSystemContent( CachedNode nodeInSystemBranch, int depth, IndexWriter indexes ) { RepositoryCache repoCache = runningState.repositoryCache(); String workspaceName = repoCache.getSystemWorkspaceName(); NodeCache systemWorkspaceCache = repoCache.getWorkspaceCache(workspaceName); return reindexContent(workspaceName, systemWorkspaceCache, nodeInSystemBranch, depth, true, indexes); }
protected boolean reindexSystemContent( CachedNode nodeInSystemBranch, int depth, IndexWriter indexes ) { RepositoryCache repoCache = runningState.repositoryCache(); String workspaceName = repoCache.getSystemWorkspaceName(); NodeCache systemWorkspaceCache = repoCache.getWorkspaceCache(workspaceName); return reindexContent(workspaceName, systemWorkspaceCache, nodeInSystemBranch, depth, true, indexes); }
@Override public void reindex() throws RepositoryException { // First check permissions ... session.checkPermission(workspaceName, Path.ROOT_PATH, ModeShapePermissions.INDEX_WORKSPACE); // Then reindex ... repository().runningState().queryManager().reindexContent(this); }
@Override public void reindex() throws RepositoryException { // First check permissions ... session.checkPermission(workspaceName, Path.ROOT_PATH, ModeShapePermissions.INDEX_WORKSPACE); // Then reindex ... repository().runningState().queryManager().reindexContent(this); }
if (node != null) { commitRequired |= reindexContent(workspaceName, cache, node, 1, true, writer); } else {
if (node != null) { commitRequired |= reindexContent(workspaceName, cache, node, 1, true, writer); } else {
protected void reindexSystemContent() { RepositoryCache repoCache = runningState.repositoryCache(); String workspaceName = repoCache.getSystemWorkspaceName(); NodeCache systemWorkspaceCache = repoCache.getWorkspaceCache(workspaceName); CachedNode systemNode = systemWorkspaceCache.getNode(repoCache.getSystemKey()); if (reindexContent(workspaceName, systemWorkspaceCache, systemNode, Integer.MAX_VALUE, true, getIndexWriter())) { commitChanges(workspaceName); } }
protected void reindexSystemContent() { RepositoryCache repoCache = runningState.repositoryCache(); String workspaceName = repoCache.getSystemWorkspaceName(); NodeCache systemWorkspaceCache = repoCache.getWorkspaceCache(workspaceName); CachedNode systemNode = systemWorkspaceCache.getNode(repoCache.getSystemKey()); if (reindexContent(workspaceName, systemWorkspaceCache, systemNode, Integer.MAX_VALUE, true, getIndexWriter())) { commitChanges(workspaceName); } }
@Override public void reindex( String pathStr ) throws RepositoryException { try { // First check permissions ... Path path = session.pathFactory().create(pathStr); session.checkPermission(workspaceName, path, ModeShapePermissions.INDEX_WORKSPACE); // Then reindex ... repository().runningState().queryManager().reindexContent(this, path, Integer.MAX_VALUE); } catch (ValueFormatException e) { throw new RepositoryException(e.getMessage()); } }
@Override public void reindex( String pathStr ) throws RepositoryException { try { // First check permissions ... Path path = session.pathFactory().create(pathStr); session.checkPermission(workspaceName, path, ModeShapePermissions.INDEX_WORKSPACE); // Then reindex ... repository().runningState().queryManager().reindexContent(this, path, Integer.MAX_VALUE); } catch (ValueFormatException e) { throw new RepositoryException(e.getMessage()); } }
if (reindexContent(workspaceName, cache, node, depth, path.isRoot(), getIndexWriter())) { commitChanges(workspaceName);
if (reindexContent(workspaceName, cache, node, depth, path.isRoot(), getIndexWriter())) { commitChanges(workspaceName);
CachedNode rootNode = workspaceCache.getNode(workspaceCache.getRootKey()); logger.debug("Starting reindex of workspace '{0}' content in '{1}' repository.", runningState.name(), workspaceName); if (reindexContent(workspaceName, workspaceCache, rootNode, Integer.MAX_VALUE, false, indexes)) { commitChanges(workspaceName);
CachedNode rootNode = workspaceCache.getNode(workspaceCache.getRootKey()); logger.debug("Starting reindex of workspace '{0}' content in '{1}' repository.", runningState.name(), workspaceName); if (reindexContent(workspaceName, workspaceCache, rootNode, Integer.MAX_VALUE, false, indexes)) { commitChanges(workspaceName);