public DistranceCustomScoreProvider(IndexReader reader, PointVectorStrategy strategy, Point origin) : base(reader) { _strategy = strategy; _originPt = origin; _currentReaderValuesX = Lucene.Net.Search.FieldCache_Fields.DEFAULT.GetDoubles(reader, _strategy.GetFieldNameX()); _currentReaderValuesY = Lucene.Net.Search.FieldCache_Fields.DEFAULT.GetDoubles(reader, _strategy.GetFieldNameY()); }
public override void SetNextReader(IndexReader reader, int docBase) { _currentReaderValuesX = Lucene.Net.Search.FieldCache_Fields.DEFAULT.GetDoubles(reader, _strategy.GetFieldNameX()); _currentReaderValuesY = Lucene.Net.Search.FieldCache_Fields.DEFAULT.GetDoubles(reader, _strategy.GetFieldNameY()); }