Lucene.Net.TestFramework.Index.RandomCodec: Added verbose logging to print out the name and type of the doc values format and postings format being used
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/6ca9736d Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/6ca9736d Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/6ca9736d Branch: refs/heads/api-work Commit: 6ca9736d04281bf1c6fd12c35ce608ed8c1b793f Parents: 6f5b404 Author: Shad Storhaug <[email protected]> Authored: Fri Mar 17 19:13:37 2017 +0700 Committer: Shad Storhaug <[email protected]> Committed: Sat Mar 18 03:21:44 2017 +0700 ---------------------------------------------------------------------- src/Lucene.Net.TestFramework/Index/RandomCodec.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucenenet/blob/6ca9736d/src/Lucene.Net.TestFramework/Index/RandomCodec.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.TestFramework/Index/RandomCodec.cs b/src/Lucene.Net.TestFramework/Index/RandomCodec.cs index 9564abd..8f3d250 100644 --- a/src/Lucene.Net.TestFramework/Index/RandomCodec.cs +++ b/src/Lucene.Net.TestFramework/Index/RandomCodec.cs @@ -109,6 +109,12 @@ namespace Lucene.Net.Index // Safety: Debug.Assert(previousMappings.Count < 10000, "test went insane"); } + + //if (LuceneTestCase.VERBOSE) + //{ + Console.WriteLine("RandomCodec.GetPostingsFormatForField(\"" + name + "\") returned '" + codec.Name + "' with underlying type '" + codec.GetType().ToString() + "'."); + //} + return codec; } @@ -127,6 +133,12 @@ namespace Lucene.Net.Index // Safety: Debug.Assert(previousDVMappings.Count < 10000, "test went insane"); } + + //if (LuceneTestCase.VERBOSE) + //{ + Console.WriteLine("RandomCodec.GetDocValuesFormatForField(\"" + name + "\") returned '" + codec.Name + "' with underlying type '" + codec.GetType().ToString() + "'."); + //} + return codec; }
