com.groupdocs.search

Class AttributeChangeBatch



  • public class AttributeChangeBatch
    extends Object

    Represents a container for attribute changes.

    • Constructor Summary

      Constructors 
      Constructor and Description
      AttributeChangeBatch()
      Initializes a new instance of the AttributeChangeBatch class.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void add(String[] paths, String... attributes)
      Adds the specified attributes to the specified indexed documents.
      void add(String path, String... attributes)
      Adds the specified attributes to the specified indexed document.
      void addToAll(String... attributes)
      Adds the specified attributes to all documents in the index.
      void clear()
      Removes all attributes from all documents in the index.
      void remove(String[] paths, String... attributes)
      Removes the specified attributes from the specified indexed documents.
      void remove(String path, String... attributes)
      Removes the specified attributes from the specified indexed document.
      void removeAll(String path)
      Removes all attributes from the specified indexed document.
      void removeAll(String[] paths)
      Removes all attributes from the specified indexed documents.
      void removeFromAll(String... attributes)
      Removes the specified attributes from all documents in the index.
    • Constructor Detail

      • AttributeChangeBatch

        public AttributeChangeBatch()

        Initializes a new instance of the AttributeChangeBatch class.

    • Method Detail

      • add

        public final void add(String path,
               String... attributes)

        Adds the specified attributes to the specified indexed document.

        Parameters:
        path - The document path.
        attributes - The attributes to add.
      • add

        public final void add(String[] paths,
               String... attributes)

        Adds the specified attributes to the specified indexed documents.

        Parameters:
        paths - The documents paths.
        attributes - The attributes to add.
      • addToAll

        public final void addToAll(String... attributes)

        Adds the specified attributes to all documents in the index.

        Parameters:
        attributes - The attributes to add.
      • remove

        public final void remove(String path,
                  String... attributes)

        Removes the specified attributes from the specified indexed document.

        Parameters:
        path - The document path.
        attributes - The attributes to remove.
      • remove

        public final void remove(String[] paths,
                  String... attributes)

        Removes the specified attributes from the specified indexed documents.

        Parameters:
        paths - The documents paths.
        attributes - The attributes to remove.
      • removeAll

        public final void removeAll(String path)

        Removes all attributes from the specified indexed document.

        Parameters:
        path - The document path.
      • removeAll

        public final void removeAll(String[] paths)

        Removes all attributes from the specified indexed documents.

        Parameters:
        paths - The documents paths.
      • removeFromAll

        public final void removeFromAll(String... attributes)

        Removes the specified attributes from all documents in the index.

        Parameters:
        attributes - The attributes to remove.
      • clear

        public final void clear()

        Removes all attributes from all documents in the index.