Class Hits

java.lang.Object
com.logicaldoc.core.searchengine.Hits
All Implemented Interfaces:
Serializable, Iterator<Hit>

public class Hits extends Object implements Iterator<Hit>, Serializable
Iterator on the collection of hits, plus some statistical informations about the query. Attention: each hit's data is lazy loaded.
Since:
6.5
Author:
Marco Meschieri - LogicalDOC
See Also:
  • Constructor Details Link icon

    • Hits Link icon

      public Hits()
    • Hits Link icon

      public Hits(org.apache.solr.client.solrj.response.QueryResponse rsp)
  • Method Details Link icon

    • getEstimatedCount Link icon

      public long getEstimatedCount()
    • getElapsedTime Link icon

      public long getElapsedTime()
    • getCount Link icon

      public long getCount()
    • hasNext Link icon

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<Hit>
    • next Link icon

      public Hit next()
      Specified by:
      next in interface Iterator<Hit>
    • remove Link icon

      public void remove()
      Specified by:
      remove in interface Iterator<Hit>
    • toHit Link icon

      public static Hit toHit(org.apache.solr.common.SolrDocument sdoc)