Interface Searchable

    • Method Detail

      • getData

        SearchContent getData​(String reference)
        Will be called to retrieve the data for this item when the system thinks the data related to an entity may have changed
        Parameters:
        reference - a globally unique reference to an entity (e.g. /myprefix/myid), consists of the entity prefix and optional segments (normally the id at least)
        Returns:
        the search content which should be indexed OR null to cause nothing to happen
        Throws:
        EntityNotFoundException - if it does not exist (causes the search system to purge out the entry)
      • getAllRefs

        List<String> getAllRefs​(String context)
        Retrieve all entities for a given context
        Parameters:
        context - probably a site or group but this may also be null to indicate that the entire list of all entity refs should be sent
        Returns:
        the list of all entity references (e.g. /myprefix/myid)