/** * This file is auto generated from JavaDoc. Do not modify it manually. */ import type { Node } from "../../types/javax/jcr/Node"; import type { IndexableContentExtractorBuilder } from "../IndexableContentExtractorBuilder"; import type { IndexingUtilConstants } from "../../types/senselogic/sitevision/api/render/velocity/VelocityAccess.IndexingUtilConstants"; /** * Indexing utility interface. * *
* An instance of the Sitevision class implementing this interface can be obtained via
* {@link senselogic.sitevision.api.search.SearchFactory#getIndexingUtil()}.
* See {@link senselogic.sitevision.api.search.SearchFactory} for how to obtain an instance of the SearchFactory interface.
*
0.1F.
*/
MIN_RESOURCE_PRIORITY: 0;
/**
* The default resource priority.
*
* A resource indexed with this priority value will get the default document boost of 1.0F.
*/
DEFAULT_RESOURCE_PRIORITY: 5;
/**
* The maximum resource priority.
*
* A resource indexed with this priority value will get a document boost of 2.0F.
*/
MAX_RESOURCE_PRIORITY: 10;
/**
* Sets the resource priority for an indexable node.
*
* * The resource priority of a node will influence its document boost when indexed. *
* *
* Note! Method invocations that doesn't fulfill these 3 criteria will always fail (i.e. return false):
*
aNode must be an indexable node, typically a sv:page, sv:article,
* sv:file or sv:image.
* aPriority must be in interval: [ {@link #MIN_RESOURCE_PRIORITY} .. {@link #MAX_RESOURCE_PRIORITY} ].
* aNode.
*
* This method tries to acquire a lock on aNode in order to mutate its resource priority.
* Mutation will fail (i.e. this method will return false) if aNode is already locked.
*
* Indexing note! Changing the value of the resource priority of a node will automatically trigger a re-index of the node. *
* @param aNode the indexable node * @param aPriority the priority, i.e. in interval: [ {@link #MIN_RESOURCE_PRIORITY} .. {@link #MAX_RESOURCE_PRIORITY} ] * @returntrue if the operation succeeded, false otherwise
*/
setResourcePriority(aNode: Node, aPriority: number): boolean;
/**
* Creates a IndexableContentExtractorBuilder instance.
* @return a IndexableContentExtractorBuilder instance
* @since Sitevision 2026.03.1
*/
getIndexableContentExtractorBuilder(): IndexableContentExtractorBuilder;
}
declare namespace IndexingUtil {}
declare var indexingUtil: IndexingUtil;
export default indexingUtil;