Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6C307200B62 for ; Fri, 12 Aug 2016 15:25:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6B0C2160ABF; Fri, 12 Aug 2016 13:25:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 92386160AC3 for ; Fri, 12 Aug 2016 15:25:16 +0200 (CEST) Received: (qmail 92395 invoked by uid 500); 12 Aug 2016 13:25:15 -0000 Mailing-List: contact commits-help@lucenenet.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucene-net-dev@lucenenet.apache.org Delivered-To: mailing list commits@lucenenet.apache.org Received: (qmail 91076 invoked by uid 99); 12 Aug 2016 13:25:14 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2016 13:25:14 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C7615ED321; Fri, 12 Aug 2016 13:25:14 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: synhershko@apache.org To: commits@lucenenet.apache.org Date: Fri, 12 Aug 2016 13:25:41 -0000 Message-Id: <4f77b441653546fca1d6f15e91f68def@git.apache.org> In-Reply-To: <9b7d724070d24d17aa726015759a4278@git.apache.org> References: <9b7d724070d24d17aa726015759a4278@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [28/32] lucenenet git commit: Adding LUCENENET specific documentation archived-at: Fri, 12 Aug 2016 13:25:17 -0000 Adding LUCENENET specific documentation Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/be84fe26 Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/be84fe26 Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/be84fe26 Branch: refs/heads/master Commit: be84fe26e92a2c11613978d73f01d6eb662ca922 Parents: 1863bb8 Author: Connie Yau Authored: Mon Aug 8 11:40:25 2016 -0700 Committer: Connie Yau Committed: Mon Aug 8 11:40:25 2016 -0700 ---------------------------------------------------------------------- .../Index/RandomIndexWriter.cs | 38 +++++++++++--------- .../core/Index/TestIndexWriter.cs | 14 ++++++++ .../core/Index/TestIndexWriterCommit.cs | 12 +++++++ .../core/Index/TestIndexWriterForceMerge.cs | 6 ++++ 4 files changed, 54 insertions(+), 16 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucenenet/blob/be84fe26/src/Lucene.Net.TestFramework/Index/RandomIndexWriter.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.TestFramework/Index/RandomIndexWriter.cs b/src/Lucene.Net.TestFramework/Index/RandomIndexWriter.cs index b19794e..b0d6b69 100644 --- a/src/Lucene.Net.TestFramework/Index/RandomIndexWriter.cs +++ b/src/Lucene.Net.TestFramework/Index/RandomIndexWriter.cs @@ -8,21 +8,21 @@ using Lucene.Net.Util; namespace Lucene.Net.Index { /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ using Analyzer = Lucene.Net.Analysis.Analyzer; using BytesRef = Lucene.Net.Util.BytesRef; @@ -99,7 +99,13 @@ namespace Lucene.Net.Index } /// - /// create a RandomIndexWriter with a random config + /// Creates a RandomIndexWriter with a random config + /// + /// LUCENENET specific + /// This override allows a RandomIndexWriter to be created without + /// adding a dependency on the LuceneTestCase.ClassEnv.Similarity and + /// LuceneTestCase.ClassEnv.TimeZone property + /// public RandomIndexWriter(Random r, Directory dir, LuceneVersion v, Analyzer a, Similarity similarity, TimeZone timezone) : this(r, dir, LuceneTestCase.NewIndexWriterConfig(r, v, a, similarity, timezone)) { http://git-wip-us.apache.org/repos/asf/lucenenet/blob/be84fe26/src/Lucene.Net.Tests/core/Index/TestIndexWriter.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Tests/core/Index/TestIndexWriter.cs b/src/Lucene.Net.Tests/core/Index/TestIndexWriter.cs index 45f0640..02317d0 100644 --- a/src/Lucene.Net.Tests/core/Index/TestIndexWriter.cs +++ b/src/Lucene.Net.Tests/core/Index/TestIndexWriter.cs @@ -145,6 +145,13 @@ namespace Lucene.Net.Index dir.Dispose(); } + /// + /// LUCENENET specific + /// + /// Changed from internal static method to private to remove + /// inter-dependencies between TestIndexWriter*.cs, TestAddIndexes.cs + /// and TestDeletionPolicy.cs tests + /// private void AddDoc(IndexWriter writer) { Document doc = new Document(); @@ -152,6 +159,13 @@ namespace Lucene.Net.Index writer.AddDocument(doc); } + /// + /// LUCENENET specific + /// + /// Changed from internal static method to private to remove + /// inter-dependencies between TestIndexWriter*.cs, TestAddIndexes.cs + /// and TestDeletionPolicy.cs tests + /// private void AddDocWithIndex(IndexWriter writer, int index) { Document doc = new Document(); http://git-wip-us.apache.org/repos/asf/lucenenet/blob/be84fe26/src/Lucene.Net.Tests/core/Index/TestIndexWriterCommit.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Tests/core/Index/TestIndexWriterCommit.cs b/src/Lucene.Net.Tests/core/Index/TestIndexWriterCommit.cs index 3f06879..b2b6eda 100644 --- a/src/Lucene.Net.Tests/core/Index/TestIndexWriterCommit.cs +++ b/src/Lucene.Net.Tests/core/Index/TestIndexWriterCommit.cs @@ -737,6 +737,12 @@ namespace Lucene.Net.Index dir.Dispose(); } + /// + /// LUCENENET specific + /// + /// Copied from + /// to remove inter-class dependency on + /// private void AddDoc(IndexWriter writer) { Document doc = new Document(); @@ -744,6 +750,12 @@ namespace Lucene.Net.Index writer.AddDocument(doc); } + /// + /// LUCENENET specific + /// + /// Copied from + /// to remove inter-class dependency on . + /// private void AddDocWithIndex(IndexWriter writer, int index) { Document doc = new Document(); http://git-wip-us.apache.org/repos/asf/lucenenet/blob/be84fe26/src/Lucene.Net.Tests/core/Index/TestIndexWriterForceMerge.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Tests/core/Index/TestIndexWriterForceMerge.cs b/src/Lucene.Net.Tests/core/Index/TestIndexWriterForceMerge.cs index 33f1063..9cd2192 100644 --- a/src/Lucene.Net.Tests/core/Index/TestIndexWriterForceMerge.cs +++ b/src/Lucene.Net.Tests/core/Index/TestIndexWriterForceMerge.cs @@ -236,6 +236,12 @@ namespace Lucene.Net.Index dir.Dispose(); } + /// + /// LUCENENET specific + /// + /// Copied from + /// to remove inter-class dependency on TestIndexWriter. + /// private void AddDoc(IndexWriter writer) { Document doc = new Document();