Interface EntitySearchHandler<E extends NetworkedEntity,​Q extends QueryParameters,​R>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void index​(E entity)
      Indexes the given entity
      String indexName()
      Returns the name of the external index, or null if external indexing isn't used
      com.mysema.commons.lang.CloseableIterator<E> iterateEntities​(Q query)
      Iterates entities which match the given query
      com.mysema.commons.lang.CloseableIterator<Long> iterateIds​(Q query)
      Iterates ids which match the given query
      void reindex()
      Reindexes all data.
      Page<R> search​(Q query)
      Performs the search for a page of results
    • Method Detail

      • index

        void index​(E entity)
        Indexes the given entity
      • indexName

        String indexName()
        Returns the name of the external index, or null if external indexing isn't used
      • iterateEntities

        com.mysema.commons.lang.CloseableIterator<E> iterateEntities​(Q query)
        Iterates entities which match the given query
      • iterateIds

        com.mysema.commons.lang.CloseableIterator<Long> iterateIds​(Q query)
        Iterates ids which match the given query
      • reindex

        void reindex()
        Reindexes all data. This is only called by scripts, in case the admin needs to reindex the data.
      • search

        Page<R> search​(Q query)
        Performs the search for a page of results