You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by sy...@apache.org on 2015/03/07 20:29:57 UTC
[1/2] lucenenet git commit: make sure ids start with 0 and not 1
Repository: lucenenet
Updated Branches:
refs/heads/master 9a920eb10 -> 6bbe71ffe
make sure ids start with 0 and not 1
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/80bcdfaf
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/80bcdfaf
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/80bcdfaf
Branch: refs/heads/master
Commit: 80bcdfaf19e1f6708007c3c6c885f61a44e0355a
Parents: 9a920eb
Author: Laimonas Simutis <la...@gmail.com>
Authored: Sat Mar 7 14:05:08 2015 -0500
Committer: Laimonas Simutis <la...@gmail.com>
Committed: Sat Mar 7 14:05:08 2015 -0500
----------------------------------------------------------------------
src/Lucene.Net.TestFramework/Util/LineFileDocs.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/80bcdfaf/src/Lucene.Net.TestFramework/Util/LineFileDocs.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Util/LineFileDocs.cs b/src/Lucene.Net.TestFramework/Util/LineFileDocs.cs
index 374aa7d..4857a5f 100644
--- a/src/Lucene.Net.TestFramework/Util/LineFileDocs.cs
+++ b/src/Lucene.Net.TestFramework/Util/LineFileDocs.cs
@@ -295,7 +295,7 @@ namespace Lucene.Net.Util
}
docState.TitleTokenized.StringValue = title;
docState.Date.StringValue = line.Substring(1 + spot, spot2 - (1 + spot));
- docState.Id.StringValue = Convert.ToString(Id.IncrementAndGet());
+ docState.Id.StringValue = Convert.ToString(Id.GetAndIncrement());
return docState.Doc;
}
}
[2/2] lucenenet git commit: output deleted ids for easier debugging
Posted by sy...@apache.org.
output deleted ids for easier debugging
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/6bbe71ff
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/6bbe71ff
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/6bbe71ff
Branch: refs/heads/master
Commit: 6bbe71ffe4b450a830097adb137adb6fb4c76196
Parents: 80bcdfa
Author: Laimonas Simutis <la...@gmail.com>
Authored: Sat Mar 7 14:05:33 2015 -0500
Committer: Laimonas Simutis <la...@gmail.com>
Committed: Sat Mar 7 14:05:33 2015 -0500
----------------------------------------------------------------------
.../Index/ThreadedIndexingAndSearchingTestCase.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/6bbe71ff/src/Lucene.Net.TestFramework/Index/ThreadedIndexingAndSearchingTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/ThreadedIndexingAndSearchingTestCase.cs b/src/Lucene.Net.TestFramework/Index/ThreadedIndexingAndSearchingTestCase.cs
index f329dfd..9aad57a 100644
--- a/src/Lucene.Net.TestFramework/Index/ThreadedIndexingAndSearchingTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/ThreadedIndexingAndSearchingTestCase.cs
@@ -736,7 +736,7 @@ namespace Lucene.Net.Index
TopDocs hits = s.Search(new TermQuery(new Term("docid", stringID)), 1);
if (hits.TotalHits != 1)
{
- Console.WriteLine("doc id=" + stringID + " is not supposed to be deleted, but got hitCount=" + hits.TotalHits + "; delIDs=" + delIDs);
+ Console.WriteLine("doc id=" + stringID + " is not supposed to be deleted, but got hitCount=" + hits.TotalHits + "; delIDs=" + string.Join(",", delIDs.ToArray()));
doFail = true;
}
}