Class UpdateLabelJob

java.lang.Object
org.codelibs.fess.job.UpdateLabelJob

public class UpdateLabelJob extends Object
Job class for updating label information in the search index. This job processes documents and updates their label fields based on URL pattern matching.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.opensearch.index.query.QueryBuilder
    Query builder for filtering documents to be processed.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for UpdateLabelJob.
  • Method Summary

    Modifier and Type
    Method
    Description
    Executes the label update job.
    query(org.opensearch.index.query.QueryBuilder queryBuilder)
    Sets the query builder for filtering documents.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • queryBuilder

      protected org.opensearch.index.query.QueryBuilder queryBuilder
      Query builder for filtering documents to be processed.
  • Constructor Details

    • UpdateLabelJob

      public UpdateLabelJob()
      Default constructor for UpdateLabelJob.
  • Method Details

    • execute

      public String execute()
      Executes the label update job. Processes documents in the search index and updates their label fields.
      Returns:
      execution result message
    • query

      public UpdateLabelJob query(org.opensearch.index.query.QueryBuilder queryBuilder)
      Sets the query builder for filtering documents.
      Parameters:
      queryBuilder - the query builder to filter documents
      Returns:
      this UpdateLabelJob instance for method chaining