Lucene++ - a full-featured, c++ search engine
API Documentation


Loading...
Searching...
No Matches
FieldSelector.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 FIELDSELECTOR_H
8#define FIELDSELECTOR_H
9
10#include "LuceneObject.h"
11
12namespace Lucene {
13
16class LPPAPI FieldSelector : public LuceneObject {
17protected:
19
20public:
21 virtual ~FieldSelector();
22
24
25public:
66
67public:
68 virtual FieldSelectorResult accept(const String& fieldName) = 0;
69};
70
71}
72
73#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
The FieldSelector allows one to make decisions about what Fields get loaded on a Document by IndexRea...
Definition FieldSelector.h:16
virtual FieldSelectorResult accept(const String &fieldName)=0
FieldSelectorResult
Provides information about what should be done with this Field.
Definition FieldSelector.h:27
@ SELECTOR_LOAD_AND_BREAK
Load this field as in the LOAD case, but immediately return from Field loading for the Document....
Definition FieldSelector.h:54
@ SELECTOR_LOAD
Load this Field every time the Document is loaded, reading in the data as it is encountered....
Definition FieldSelector.h:35
@ SELECTOR_NULL
Null value.
Definition FieldSelector.h:29
@ SELECTOR_NO_LOAD
Do not load the Field. Document#getField(String) and Document#getFieldable(String) should return null...
Definition FieldSelector.h:47
@ SELECTOR_LAZY_LOAD
Lazily load this Field. This means the Field is valid, but it may not actually contain its data until...
Definition FieldSelector.h:42
@ SELECTOR_SIZE
Load the size of this Field rather than its value. Size is measured as number of bytes required to st...
Definition FieldSelector.h:60
Base class for all Lucene classes.
Definition LuceneObject.h:31
Definition AbstractAllTermDocs.h:12

clucene.sourceforge.net