Term enumerations are always ordered by #getComparator. Each term in the enumeration is greater than all that precede it.
public AutomatonFuzzyTermsEnum(FuzzyTermsEnum outerInstance, TermsEnum tenum, CompiledAutomaton[] compiled) : base(tenum, false) { this.outerInstance = outerInstance; boostAtt = Attributes.AddAttribute <IBoostAttribute>(); this.matchers = new ByteRunAutomaton[compiled.Length]; for (int i = 0; i < compiled.Length; i++) { this.matchers[i] = compiled[i].RunAutomaton; } termRef = new BytesRef(outerInstance.term.Text); }
public AutomatonFuzzyTermsEnum(FuzzyTermsEnum outerInstance, TermsEnum tenum, CompiledAutomaton[] compiled) : base(tenum, false) { this.outerInstance = outerInstance; InitializeInstanceFields(); this.matchers = new ByteRunAutomaton[compiled.Length]; for (int i = 0; i < compiled.Length; i++) { this.matchers[i] = compiled[i].RunAutomaton; } termRef = new BytesRef(outerInstance.term.Text()); }
public AutomatonFuzzyTermsEnum(FuzzyTermsEnum outerInstance, TermsEnum tenum, CompiledAutomaton[] compiled) : base(tenum, false) { this.OuterInstance = outerInstance; if (!InstanceFieldsInitialized) { InitializeInstanceFields(); InstanceFieldsInitialized = true; } this.Matchers = new ByteRunAutomaton[compiled.Length]; for (int i = 0; i < compiled.Length; i++) { this.Matchers[i] = compiled[i].RunAutomaton; } TermRef = new BytesRef(outerInstance.Term_Renamed.Text()); }