Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
MatchAllDocsQuery.h
Go to the documentation of this file.
1
2
// Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3
// Distributable under the terms of either the Apache License (Version 2.0)
4
// or the GNU Lesser General Public License.
6
7
#ifndef MATCHALLDOCSQUERY_H
8
#define MATCHALLDOCSQUERY_H
9
10
#include "
Query.h
"
11
12
namespace
Lucene
{
13
15
class
LPPAPI
MatchAllDocsQuery
:
public
Query
{
16
public
:
18
MatchAllDocsQuery
(
const
String&
normsField
= EmptyString);
19
20
virtual
~MatchAllDocsQuery
();
21
22
LUCENE_CLASS
(
MatchAllDocsQuery
);
23
24
protected
:
25
String
normsField
;
26
27
public
:
28
using
Query::toString
;
29
30
virtual
WeightPtr
createWeight
(
const
SearcherPtr
& searcher);
31
virtual
void
extractTerms
(SetTerm terms);
32
virtual
String
toString
(
const
String& field);
33
virtual
bool
equals
(
const
LuceneObjectPtr
& other);
34
virtual
int32_t
hashCode
();
35
virtual
LuceneObjectPtr
clone
(
const
LuceneObjectPtr
& other =
LuceneObjectPtr
());
36
37
friend
class
MatchAllDocsWeight
;
38
};
39
40
}
41
42
#endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition
LuceneObject.h:24
Query.h
Lucene::MatchAllDocsQuery::MatchAllDocsWeight
friend class MatchAllDocsWeight
Definition
MatchAllDocsQuery.h:37
Lucene::MatchAllDocsQuery::normsField
String normsField
Definition
MatchAllDocsQuery.h:25
Lucene::MatchAllDocsQuery::extractTerms
virtual void extractTerms(SetTerm terms)
Adds all terms occurring in this query to the terms set. Only works if this query is in its rewritten...
Lucene::MatchAllDocsQuery::clone
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Returns a clone of this query.
Lucene::MatchAllDocsQuery::hashCode
virtual int32_t hashCode()
Return hash code for this object.
Lucene::MatchAllDocsQuery::~MatchAllDocsQuery
virtual ~MatchAllDocsQuery()
Lucene::MatchAllDocsQuery::toString
virtual String toString(const String &field)
Prints a query to a string, with field assumed to be the default field and omitted.
Lucene::MatchAllDocsQuery::equals
virtual bool equals(const LuceneObjectPtr &other)
Return whether two objects are equal.
Lucene::MatchAllDocsQuery::createWeight
virtual WeightPtr createWeight(const SearcherPtr &searcher)
Constructs an appropriate Weight implementation for this query. Only implemented by primitive queries...
Lucene::MatchAllDocsQuery::MatchAllDocsQuery
MatchAllDocsQuery(const String &normsField=EmptyString)
Lucene::Query::Query
Query()
Lucene::Query::toString
virtual String toString(const String &field)
Prints a query to a string, with field assumed to be the default field and omitted.
Lucene
Definition
AbstractAllTermDocs.h:12
Lucene::WeightPtr
boost::shared_ptr< Weight > WeightPtr
Definition
LuceneTypes.h:480
Lucene::SearcherPtr
boost::shared_ptr< Searcher > SearcherPtr
Definition
LuceneTypes.h:434
Lucene::LuceneObjectPtr
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition
LuceneTypes.h:539
clucene.sourceforge.net