You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2016/11/25 11:07:09 UTC
[04/26] lucenenet git commit: Fixing namespace issues
Fixing namespace issues
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/6c7cc799
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/6c7cc799
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/6c7cc799
Branch: refs/heads/master
Commit: 6c7cc79984c285d161c8aef44e00f86b445995c1
Parents: 9e566a8
Author: Naz Junaid <na...@gmail.com>
Authored: Sat Aug 13 23:23:12 2016 +0100
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Tue Nov 15 19:17:54 2016 +0700
----------------------------------------------------------------------
src/Lucene.Net.Spatial/Vector/PointVectorStrategy.cs | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/6c7cc799/src/Lucene.Net.Spatial/Vector/PointVectorStrategy.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Spatial/Vector/PointVectorStrategy.cs b/src/Lucene.Net.Spatial/Vector/PointVectorStrategy.cs
index 213e95c..b4b2e87 100644
--- a/src/Lucene.Net.Spatial/Vector/PointVectorStrategy.cs
+++ b/src/Lucene.Net.Spatial/Vector/PointVectorStrategy.cs
@@ -130,7 +130,7 @@ namespace Lucene.Net.Spatial.Vector
}
//TODO this is basically old code that hasn't been verified well and should probably be removed
- public Query MakeQueryDistanceScore(SpatialArgs args)
+ public Search.Query MakeQueryDistanceScore(SpatialArgs args)
{
// For starters, just limit the bbox
var shape = args.Shape;
@@ -146,7 +146,7 @@ namespace Lucene.Net.Spatial.Vector
ValueSource valueSource = null;
- Query spatial = null;
+ Search.Query spatial = null;
SpatialOperation op = args.Operation;
if (SpatialOperation.Is(op,
@@ -190,7 +190,7 @@ namespace Lucene.Net.Spatial.Vector
{
valueSource = MakeDistanceValueSource(shape.GetCenter());
}
- Query spatialRankingQuery = new FunctionQuery(valueSource);
+ Search.Query spatialRankingQuery = new FunctionQuery(valueSource);
var bq = new BooleanQuery();
bq.Add(spatial, BooleanClause.Occur.MUST);
bq.Add(spatialRankingQuery, BooleanClause.Occur.MUST);
@@ -213,7 +213,7 @@ namespace Lucene.Net.Spatial.Vector
/// Constructs a query to retrieve documents that fully contain the input envelope.
/// </summary>
/// <param name="bbox"></param>
- private Query MakeWithin(Rectangle bbox)
+ private Search.Query MakeWithin(Rectangle bbox)
{
var bq = new BooleanQuery();
const BooleanClause.Occur MUST = BooleanClause.Occur.MUST;
@@ -247,12 +247,12 @@ namespace Lucene.Net.Spatial.Vector
/// Constructs a query to retrieve documents that fully contain the input envelope.
/// </summary>
/// <param name="bbox"></param>
- private Query MakeDisjoint(Rectangle bbox)
+ private Search.Query MakeDisjoint(Rectangle bbox)
{
if (bbox.GetCrossesDateLine())
throw new InvalidOperationException("MakeDisjoint doesn't handle dateline cross");
- Query qX = RangeQuery(fieldNameX, bbox.GetMinX(), bbox.GetMaxX());
- Query qY = RangeQuery(fieldNameY, bbox.GetMinY(), bbox.GetMaxY());
+ Search.Query qX = RangeQuery(fieldNameX, bbox.GetMinX(), bbox.GetMaxX());
+ Search.Query qY = RangeQuery(fieldNameY, bbox.GetMinY(), bbox.GetMaxY());
var bq = new BooleanQuery { { qX, BooleanClause.Occur.MUST_NOT }, { qY, BooleanClause.Occur.MUST_NOT } };
return bq;
}