com.groupdocs.search.common

Class FragmentContainer



  • public abstract class FragmentContainer
    extends Object

    Represents a container for text fragments with highlighted found terms of one document field.

    Learn more

    • Constructor Detail

      • FragmentContainer

        protected FragmentContainer(String fieldName)

        Initializes a new instance of the FragmentContainer class.

        Parameters:
        fieldName - The field name.
    • Method Detail

      • getFieldName

        public final String getFieldName()

        Gets the document field name.

        Returns:
        The document field name.
      • getCount

        public final int getCount()

        Gets the number of contained text fragments.

        Returns:
        The number of contained text fragments.
      • getFragments

        public final String[] getFragments()

        Gets an array of contained text fragments.

        Returns:
        An array of contained text fragments.
      • add

        protected void add(String fragment)