コード例 #1
0
 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());
 }
コード例 #2
0
 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());
 }