FileDocCategorySizeDatePackage
MatchAllDocsQuery.javaAPI DocApache Lucene 2.0.03954Fri May 26 09:54:18 BST 2006org.apache.lucene.search

MatchAllDocsQuery

public class MatchAllDocsQuery extends Query
A query that matches all documents.
author
John Wang

Fields Summary
Constructors Summary
public MatchAllDocsQuery()

  
Methods Summary
protected org.apache.lucene.search.WeightcreateWeight(org.apache.lucene.search.Searcher searcher)

    return new MatchAllDocsWeight(searcher);
  
public booleanequals(java.lang.Object o)

    if (!(o instanceof MatchAllDocsQuery))
      return false;
    MatchAllDocsQuery other = (MatchAllDocsQuery) o;
    return this.getBoost() == other.getBoost();
  
public voidextractTerms(java.util.Set terms)

  
public inthashCode()

    return Float.floatToIntBits(getBoost()) ^ 0x1AA71190;
  
public java.lang.StringtoString(java.lang.String field)

    StringBuffer buffer = new StringBuffer();
    buffer.append("MatchAllDocsQuery");
    buffer.append(ToStringUtils.boost(getBoost()));
    return buffer.toString();