20 namespace Lucene.Net.Index
25 internal System.String name;
26 internal bool isIndexed;
30 internal bool storeTermVector;
31 internal bool storeOffsetWithTermVector;
32 internal bool storePositionWithTermVector;
34 internal bool omitNorms;
35 internal bool omitTermFreqAndPositions;
37 internal bool storePayloads;
39 internal FieldInfo(System.String na,
bool tk,
int nu,
bool storeTermVector,
bool storePositionWithTermVector,
bool storeOffsetWithTermVector,
bool omitNorms,
bool storePayloads,
bool omitTermFreqAndPositions)
46 this.storeTermVector = storeTermVector;
47 this.storeOffsetWithTermVector = storeOffsetWithTermVector;
48 this.storePositionWithTermVector = storePositionWithTermVector;
49 this.storePayloads = storePayloads;
50 this.omitNorms = omitNorms;
51 this.omitTermFreqAndPositions = omitTermFreqAndPositions;
56 this.storeTermVector =
false;
57 this.storeOffsetWithTermVector =
false;
58 this.storePositionWithTermVector =
false;
59 this.storePayloads =
false;
60 this.omitNorms =
true;
61 this.omitTermFreqAndPositions =
false;
65 public System.Object Clone()
67 return new FieldInfo(name, isIndexed, number, storeTermVector, storePositionWithTermVector, storeOffsetWithTermVector, omitNorms, storePayloads, omitTermFreqAndPositions);
70 internal void Update(
bool isIndexed,
bool storeTermVector,
bool storePositionWithTermVector,
bool storeOffsetWithTermVector,
bool omitNorms,
bool storePayloads,
bool omitTermFreqAndPositions)
72 if (this.isIndexed != isIndexed)
74 this.isIndexed =
true;
79 if (this.storeTermVector != storeTermVector)
81 this.storeTermVector =
true;
83 if (this.storePositionWithTermVector != storePositionWithTermVector)
85 this.storePositionWithTermVector =
true;
87 if (this.storeOffsetWithTermVector != storeOffsetWithTermVector)
89 this.storeOffsetWithTermVector =
true;
91 if (this.storePayloads != storePayloads)
93 this.storePayloads =
true;
95 if (this.omitNorms != omitNorms)
97 this.omitNorms =
false;
99 if (this.omitTermFreqAndPositions != omitTermFreqAndPositions)
101 this.omitTermFreqAndPositions =
true;
106 public bool storePayloads_ForNUnit
108 get {
return storePayloads; }
111 public System.String name_ForNUnit
116 public bool isIndexed_ForNUnit
118 get {
return isIndexed; }
121 public bool omitNorms_ForNUnit
123 get {
return omitNorms; }
126 public bool omitTermFreqAndPositions_ForNUnit
128 get {
return omitTermFreqAndPositions; }
131 public bool storeTermVector_ForNUnit
133 get {
return storeTermVector; }