Package org.ametys.cms.indexing.solr
Interface AdditionalDataIndexer
- All Known Subinterfaces:
AdditionalWebDataIndexer
- All Known Implementing Classes:
AIAdditionalDataIndexer
public interface AdditionalDataIndexer
Index additional items on already indexed object (content, resources...).
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGet the schema definitions used by this indexer.Get the object/document types supported by this indexer.getUnindexAllQuery(String type) The solr query that returns the documents to delete when unindexing all items of the given typegetUnindexObjectQuery(String ametysObjectId) The list of Solr queries that returns the documents to delete when unindexing the given ametys objectList<org.apache.solr.common.SolrInputDocument> indexAdditionalDocuments(AmetysObject object, org.apache.solr.common.SolrInputDocument document) Index additional object properties in the corresponding document.
-
Field Details
-
TYPE_CONTENT
Type identifier for content additional data indexers- See Also:
-
TYPE_RESOURCE
Type identifier for resource additional data indexers- See Also:
-
TYPE_TRASH_ELEMENT
Type identifier for trash elements additional data indexers- See Also:
-
-
Method Details
-
getSupportedTypes
Get the object/document types supported by this indexer.- Returns:
- The object or document types supported by this indexer.
-
indexAdditionalDocuments
List<org.apache.solr.common.SolrInputDocument> indexAdditionalDocuments(AmetysObject object, org.apache.solr.common.SolrInputDocument document) Index additional object properties in the corresponding document.- Parameters:
object- The object to index.document- The destination document.- Returns:
- Additional documents to index (can be empty).
-
getUnindexObjectQuery
The list of Solr queries that returns the documents to delete when unindexing the given ametys object- Parameters:
ametysObjectId- The id of the ametys object to unindex- Returns:
- The list of Solr queries that returns the documents to delete
- Throws:
Exception- If an error occurs while building the queries
-
getUnindexAllQuery
The solr query that returns the documents to delete when unindexing all items of the given type- Parameters:
type- The type of the items to unindex- Returns:
- The solr query that returns the documents to delete. Can be null
- Throws:
Exception- If an error occurs while building the queries
-
getSchemaDefinitions
Get the schema definitions used by this indexer.- Returns:
- The schema definitions used by this indexer.
-