FileDocCategorySizeDatePackage
MatchAllDocsQuery.javaAPI DocApache Lucene 1.93886Mon Feb 20 09:20:04 GMT 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 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();