/** * This file is auto generated from JavaDoc. Do not modify it manually. */ import type IndexType from "../IndexUtil.IndexType"; import type { Node } from "../../types/javax/jcr/Node"; import type { String } from "../../types/java/lang/String"; /** * Index utility interface. * *

* An instance of the Sitevision class implementing this interface can be obtained via * {@link senselogic.sitevision.api.search.SearchFactory#getIndexUtil()}. * See {@link senselogic.sitevision.api.search.SearchFactory} for how to obtain an instance of the SearchFactory interface. *

* @author Magnus Lövgren * @since Sitevision 3.6 */ export interface IndexUtil { /** * Gets the default index for a specified index type. * *

* Note!The default user identity index is only handled if a Social Collaboration license is in use. * The default user-generated content (UGC) index is only handled if a Social Collaboration license is in use. *

* @param aIndexType type of index * @return the default index for aIndexType, or null if not available */ getDefaultIndex(aIndexType: IndexType): Node; /** * Gets an index by name. * *

* Lookup order: *

*
    *
  1. Custom site index
  2. *
  3. Custom server index
  4. *
  5. Default index(-es), types specified by {@link senselogic.sitevision.api.search.index.IndexUtil.IndexType}
  6. *
*

* Note! Custom index is only handled if a Search Package 2 license is in use. * The default user identity index is only handled if a Social Collaboration license is in use. * The default user-generated content (UGC) index is only handled if a Social Collaboration license is in use. *

* @param aIndexName the name of the index * @return the index or null if no index matches aIndexName */ getIndexByName(aIndexName: String | string): Node; } declare namespace IndexUtil {} declare var indexUtil: IndexUtil; export default indexUtil;