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

    • Hits

      public Hits()
    • Hits

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

    • getEstimatedCount

      public long getEstimatedCount()
    • getElapsedTime

      public long getElapsedTime()
    • getCount

      public long getCount()
    • hasNext

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

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

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

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