Class AuthoringOpenSearchBinaryFileWithMetadataBatchIndexer

All Implemented Interfaces:
BatchIndexer

public class AuthoringOpenSearchBinaryFileWithMetadataBatchIndexer extends OpenSearchBinaryFileWithMetadataBatchIndexer
Author:
Phil Nguyen
  • Field Details

    • binaryPathPatterns

      protected List<String> binaryPathPatterns
    • binarySearchablePathPatterns

      protected List<String> binarySearchablePathPatterns
  • Constructor Details

    • AuthoringOpenSearchBinaryFileWithMetadataBatchIndexer

      public AuthoringOpenSearchBinaryFileWithMetadataBatchIndexer(OpenSearchService openSearchService)
  • Method Details

    • doUpdates

      protected void doUpdates(String indexId, String siteName, org.craftercms.core.service.ContentStoreService contentStoreService, org.craftercms.core.service.Context context, UpdateSet updateSet, UpdateStatus updateStatus)
      Overrides:
      doUpdates in class AbstractBinaryFileWithMetadataBatchIndexer
    • doDeletes

      protected void doDeletes(String indexId, String siteName, org.craftercms.core.service.ContentStoreService contentStoreService, org.craftercms.core.service.Context context, List<String> deletePaths, UpdateStatus updateStatus)
      Overrides:
      doDeletes in class AbstractBinaryFileWithMetadataBatchIndexer
    • isBinary

      protected boolean isBinary(String path)
      Check if a path is binary or not
      Parameters:
      path - the path to check
      Returns:
      true if matched binary pattern and is a supported mime-type, false otherwise
    • isBinarySearchable

      protected boolean isBinarySearchable(String path)
      Check if a path could be searched for any binary
      Parameters:
      path - to check
      Returns:
      true if matched the defined pattern, false otherwise
    • setBinaryPathPatterns

      public void setBinaryPathPatterns(List<String> binaryPathPatterns)
      Setter method for binary path patterns
      Parameters:
      binaryPathPatterns - binary path patterns
    • setBinarySearchablePathPatterns

      public void setBinarySearchablePathPatterns(List<String> binarySearchablePathPatterns)
      Setter method for binary searchable patterns
      Parameters:
      binarySearchablePathPatterns - binary searchable patterns