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 2017/01/27 04:52:59 UTC
[1/4] lucenenet git commit: SWEEP: Added CLSCompliant(true) attribute
to all sub-projects (but not tests or test framework)
Repository: lucenenet
Updated Branches:
refs/heads/api-work 4025eb26d -> 89171dccd
SWEEP: Added CLSCompliant(true) attribute to all sub-projects (but not tests or test framework)
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/9c8e8fb2
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/9c8e8fb2
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/9c8e8fb2
Branch: refs/heads/api-work
Commit: 9c8e8fb2cd6e8aa0eb1c570f51ac42af5c5bb883
Parents: 4025eb2
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Fri Jan 27 07:17:04 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Fri Jan 27 07:17:04 2017 +0700
----------------------------------------------------------------------
src/Lucene.Net.Analysis.Common/Properties/AssemblyInfo.cs | 5 ++++-
src/Lucene.Net.Analysis.Stempel/Properties/AssemblyInfo.cs | 5 ++++-
src/Lucene.Net.Classification/Properties/AssemblyInfo.cs | 5 ++++-
src/Lucene.Net.Codecs/Properties/AssemblyInfo.cs | 5 ++++-
src/Lucene.Net.Expressions/Properties/AssemblyInfo.cs | 5 ++++-
src/Lucene.Net.Facet/Properties/AssemblyInfo.cs | 5 ++++-
src/Lucene.Net.Grouping/Properties/AssemblyInfo.cs | 5 ++++-
src/Lucene.Net.Highlighter/Properties/AssemblyInfo.cs | 5 ++++-
src/Lucene.Net.Join/Properties/AssemblyInfo.cs | 5 ++++-
src/Lucene.Net.Memory/Properties/AssemblyInfo.cs | 5 ++++-
src/Lucene.Net.Misc/Properties/AssemblyInfo.cs | 5 ++++-
src/Lucene.Net.Queries/Properties/AssemblyInfo.cs | 5 ++++-
src/Lucene.Net.QueryParser/Properties/AssemblyInfo.cs | 5 ++++-
src/Lucene.Net.Sandbox/Properties/AssemblyInfo.cs | 5 ++++-
src/Lucene.Net.Spatial/Properties/AssemblyInfo.cs | 3 +++
src/Lucene.Net.Suggest/Properties/AssemblyInfo.cs | 5 ++++-
16 files changed, 63 insertions(+), 15 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9c8e8fb2/src/Lucene.Net.Analysis.Common/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Analysis.Common/Properties/AssemblyInfo.cs b/src/Lucene.Net.Analysis.Common/Properties/AssemblyInfo.cs
index 451a7da..b193de0 100644
--- a/src/Lucene.Net.Analysis.Common/Properties/AssemblyInfo.cs
+++ b/src/Lucene.Net.Analysis.Common/Properties/AssemblyInfo.cs
@@ -1,4 +1,5 @@
-\ufeffusing System.Reflection;
+\ufeffusing System;
+using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@@ -15,6 +16,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDefaultAlias("Lucene.Net.Analysis.Common")]
[assembly: AssemblyCulture("")]
+[assembly: CLSCompliant(true)]
+
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9c8e8fb2/src/Lucene.Net.Analysis.Stempel/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Analysis.Stempel/Properties/AssemblyInfo.cs b/src/Lucene.Net.Analysis.Stempel/Properties/AssemblyInfo.cs
index 1dbccc5..454635b 100644
--- a/src/Lucene.Net.Analysis.Stempel/Properties/AssemblyInfo.cs
+++ b/src/Lucene.Net.Analysis.Stempel/Properties/AssemblyInfo.cs
@@ -1,4 +1,5 @@
-\ufeffusing System.Reflection;
+\ufeffusing System;
+using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@@ -15,6 +16,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDefaultAlias("Lucene.Net.Analysis.Stempel")]
[assembly: AssemblyCulture("")]
+[assembly: CLSCompliant(true)]
+
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9c8e8fb2/src/Lucene.Net.Classification/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Classification/Properties/AssemblyInfo.cs b/src/Lucene.Net.Classification/Properties/AssemblyInfo.cs
index 966bd5c..d86acd3 100644
--- a/src/Lucene.Net.Classification/Properties/AssemblyInfo.cs
+++ b/src/Lucene.Net.Classification/Properties/AssemblyInfo.cs
@@ -1,4 +1,5 @@
-\ufeffusing System.Reflection;
+\ufeffusing System;
+using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@@ -15,6 +16,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDefaultAlias("Lucene.Net.Classification")]
[assembly: AssemblyCulture("")]
+[assembly: CLSCompliant(true)]
+
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9c8e8fb2/src/Lucene.Net.Codecs/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Codecs/Properties/AssemblyInfo.cs b/src/Lucene.Net.Codecs/Properties/AssemblyInfo.cs
index ce5d54a..785410b 100644
--- a/src/Lucene.Net.Codecs/Properties/AssemblyInfo.cs
+++ b/src/Lucene.Net.Codecs/Properties/AssemblyInfo.cs
@@ -1,4 +1,5 @@
-\ufeffusing System.Reflection;
+\ufeffusing System;
+using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@@ -15,6 +16,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDefaultAlias("Lucene.Net.Codecs")]
[assembly: AssemblyCulture("")]
+[assembly: CLSCompliant(true)]
+
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9c8e8fb2/src/Lucene.Net.Expressions/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Expressions/Properties/AssemblyInfo.cs b/src/Lucene.Net.Expressions/Properties/AssemblyInfo.cs
index 568a80c..efe5538 100644
--- a/src/Lucene.Net.Expressions/Properties/AssemblyInfo.cs
+++ b/src/Lucene.Net.Expressions/Properties/AssemblyInfo.cs
@@ -1,4 +1,5 @@
-\ufeffusing System.Reflection;
+\ufeffusing System;
+using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@@ -15,6 +16,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDefaultAlias("Lucene.Net.Expressions")]
[assembly: AssemblyCulture("")]
+[assembly: CLSCompliant(true)]
+
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9c8e8fb2/src/Lucene.Net.Facet/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Properties/AssemblyInfo.cs b/src/Lucene.Net.Facet/Properties/AssemblyInfo.cs
index e457bf2..5d175d7 100644
--- a/src/Lucene.Net.Facet/Properties/AssemblyInfo.cs
+++ b/src/Lucene.Net.Facet/Properties/AssemblyInfo.cs
@@ -1,4 +1,5 @@
-\ufeffusing System.Reflection;
+\ufeffusing System;
+using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@@ -15,6 +16,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDefaultAlias("Lucene.Net.Facet")]
[assembly: AssemblyCulture("")]
+[assembly: CLSCompliant(true)]
+
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9c8e8fb2/src/Lucene.Net.Grouping/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Grouping/Properties/AssemblyInfo.cs b/src/Lucene.Net.Grouping/Properties/AssemblyInfo.cs
index bf25be6..a625d92 100644
--- a/src/Lucene.Net.Grouping/Properties/AssemblyInfo.cs
+++ b/src/Lucene.Net.Grouping/Properties/AssemblyInfo.cs
@@ -1,4 +1,5 @@
-\ufeffusing System.Reflection;
+\ufeffusing System;
+using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@@ -15,6 +16,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDefaultAlias("Lucene.Net.Grouping")]
[assembly: AssemblyCulture("")]
+[assembly: CLSCompliant(true)]
+
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9c8e8fb2/src/Lucene.Net.Highlighter/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Highlighter/Properties/AssemblyInfo.cs b/src/Lucene.Net.Highlighter/Properties/AssemblyInfo.cs
index d8197f1..0ae4c11 100644
--- a/src/Lucene.Net.Highlighter/Properties/AssemblyInfo.cs
+++ b/src/Lucene.Net.Highlighter/Properties/AssemblyInfo.cs
@@ -1,4 +1,5 @@
-\ufeffusing System.Reflection;
+\ufeffusing System;
+using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@@ -14,6 +15,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
+[assembly: CLSCompliant(true)]
+
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9c8e8fb2/src/Lucene.Net.Join/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Join/Properties/AssemblyInfo.cs b/src/Lucene.Net.Join/Properties/AssemblyInfo.cs
index 8b7bdf9..2c30939 100644
--- a/src/Lucene.Net.Join/Properties/AssemblyInfo.cs
+++ b/src/Lucene.Net.Join/Properties/AssemblyInfo.cs
@@ -1,4 +1,5 @@
-\ufeffusing System.Reflection;
+\ufeffusing System;
+using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@@ -15,6 +16,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDefaultAlias("Lucene.Net.Facet")]
[assembly: AssemblyCulture("")]
+[assembly: CLSCompliant(true)]
+
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9c8e8fb2/src/Lucene.Net.Memory/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Memory/Properties/AssemblyInfo.cs b/src/Lucene.Net.Memory/Properties/AssemblyInfo.cs
index f61f758..6bdda3d 100644
--- a/src/Lucene.Net.Memory/Properties/AssemblyInfo.cs
+++ b/src/Lucene.Net.Memory/Properties/AssemblyInfo.cs
@@ -1,4 +1,5 @@
-\ufeffusing System.Reflection;
+\ufeffusing System;
+using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@@ -15,6 +16,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDefaultAlias("Lucene.Net.Memory")]
[assembly: AssemblyCulture("")]
+[assembly: CLSCompliant(true)]
+
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9c8e8fb2/src/Lucene.Net.Misc/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Misc/Properties/AssemblyInfo.cs b/src/Lucene.Net.Misc/Properties/AssemblyInfo.cs
index d1d7c2f..3311266 100644
--- a/src/Lucene.Net.Misc/Properties/AssemblyInfo.cs
+++ b/src/Lucene.Net.Misc/Properties/AssemblyInfo.cs
@@ -1,4 +1,5 @@
-\ufeffusing System.Reflection;
+\ufeffusing System;
+using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@@ -15,6 +16,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDefaultAlias("Lucene.Net.Misc")]
[assembly: AssemblyCulture("")]
+[assembly: CLSCompliant(true)]
+
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9c8e8fb2/src/Lucene.Net.Queries/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Properties/AssemblyInfo.cs b/src/Lucene.Net.Queries/Properties/AssemblyInfo.cs
index bfc1373..6a97c13 100644
--- a/src/Lucene.Net.Queries/Properties/AssemblyInfo.cs
+++ b/src/Lucene.Net.Queries/Properties/AssemblyInfo.cs
@@ -1,4 +1,5 @@
-\ufeffusing System.Reflection;
+\ufeffusing System;
+using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
@@ -14,6 +15,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDefaultAlias("Lucene.Net.Queries")]
[assembly: AssemblyCulture("")]
+[assembly: CLSCompliant(true)]
+
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9c8e8fb2/src/Lucene.Net.QueryParser/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.QueryParser/Properties/AssemblyInfo.cs b/src/Lucene.Net.QueryParser/Properties/AssemblyInfo.cs
index 49b149f..252b50d 100644
--- a/src/Lucene.Net.QueryParser/Properties/AssemblyInfo.cs
+++ b/src/Lucene.Net.QueryParser/Properties/AssemblyInfo.cs
@@ -1,4 +1,5 @@
-\ufeffusing System.Reflection;
+\ufeffusing System;
+using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@@ -15,6 +16,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDefaultAlias("Lucene.Net.QueryParser")]
[assembly: AssemblyCulture("")]
+[assembly: CLSCompliant(true)]
+
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9c8e8fb2/src/Lucene.Net.Sandbox/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Sandbox/Properties/AssemblyInfo.cs b/src/Lucene.Net.Sandbox/Properties/AssemblyInfo.cs
index aa248d5..45908b7 100644
--- a/src/Lucene.Net.Sandbox/Properties/AssemblyInfo.cs
+++ b/src/Lucene.Net.Sandbox/Properties/AssemblyInfo.cs
@@ -1,4 +1,5 @@
-\ufeffusing System.Reflection;
+\ufeffusing System;
+using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@@ -15,6 +16,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDefaultAlias("Lucene.Net.Sandbox")]
[assembly: AssemblyCulture("")]
+[assembly: CLSCompliant(true)]
+
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9c8e8fb2/src/Lucene.Net.Spatial/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Spatial/Properties/AssemblyInfo.cs b/src/Lucene.Net.Spatial/Properties/AssemblyInfo.cs
index 25044dc..33f315f 100644
--- a/src/Lucene.Net.Spatial/Properties/AssemblyInfo.cs
+++ b/src/Lucene.Net.Spatial/Properties/AssemblyInfo.cs
@@ -15,6 +15,7 @@
* limitations under the License.
*/
+using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@@ -33,6 +34,8 @@ using System.Security;
[assembly: AssemblyDefaultAlias("Lucene.Net.Spatial")]
[assembly: AssemblyCulture("")]
+[assembly: CLSCompliant(true)]
+
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9c8e8fb2/src/Lucene.Net.Suggest/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Suggest/Properties/AssemblyInfo.cs b/src/Lucene.Net.Suggest/Properties/AssemblyInfo.cs
index 57c7e8b..bdca951 100644
--- a/src/Lucene.Net.Suggest/Properties/AssemblyInfo.cs
+++ b/src/Lucene.Net.Suggest/Properties/AssemblyInfo.cs
@@ -1,4 +1,5 @@
-\ufeffusing System.Reflection;
+\ufeffusing System;
+using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@@ -15,6 +16,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDefaultAlias("Lucene.Net.Suggest")]
[assembly: AssemblyCulture("")]
+[assembly: CLSCompliant(true)]
+
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[3/4] lucenenet git commit: Lucene.Net.Queries: usings and license
headers
Posted by ni...@apache.org.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/NormValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/NormValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/NormValueSource.cs
index 0e66629..cfd944c 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/NormValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/NormValueSource.cs
@@ -1,27 +1,28 @@
-\ufeff/*
- * 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 System.Collections;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Search;
using Lucene.Net.Search.Similarities;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// Function that returns <seealso cref="TFIDFSimilarity#decodeNormValue(long)"/>
/// for every document.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/NumDocsValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/NumDocsValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/NumDocsValueSource.cs
index 1b4a649..86b77a5 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/NumDocsValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/NumDocsValueSource.cs
@@ -1,24 +1,25 @@
-\ufeff/*
- * 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 System.Collections;
+\ufeffusing System.Collections;
using Lucene.Net.Index;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// Returns the value of <seealso cref="IndexReader#numDocs()"/>
/// for every document. This is the number of documents
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/OrdFieldSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/OrdFieldSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/OrdFieldSource.cs
index 22fc3c8..4867a00 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/OrdFieldSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/OrdFieldSource.cs
@@ -1,27 +1,28 @@
-\ufeff/*
- * 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 System.Collections;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Search;
using Lucene.Net.Util.Mutable;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// Obtains the ordinal of the field value from the default Lucene <seealso cref="FieldCache"/> using getStringIndex().
/// <br>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/PowFloatFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/PowFloatFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/PowFloatFunction.cs
index 711af7a..c2a8a93 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/PowFloatFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/PowFloatFunction.cs
@@ -1,23 +1,24 @@
-\ufeff/*
- * 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 System;
+\ufeffusing System;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// Function to raise the base "a" to the power "b"
/// </summary>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/ProductFloatFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/ProductFloatFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/ProductFloatFunction.cs
index 94c7969..b922228 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/ProductFloatFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/ProductFloatFunction.cs
@@ -1,24 +1,24 @@
-\ufeff/*
- * 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 System.Linq;
+\ufeffusing System.Linq;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// <code>ProductFloatFunction</code> returns the product of it's components.
/// </summary>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/QueryValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/QueryValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/QueryValueSource.cs
index 2c58a12..4630094 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/QueryValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/QueryValueSource.cs
@@ -1,30 +1,31 @@
-\ufeff/*
- * 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 System;
-using System.Collections;
-using System.IO;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Search;
using Lucene.Net.Util;
using Lucene.Net.Util.Mutable;
+using System;
+using System.Collections;
+using System.IO;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// <code>QueryValueSource</code> returns the relevance score of the query
/// </summary>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/RangeMapFloatFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/RangeMapFloatFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/RangeMapFloatFunction.cs
index d065c22..d558c78 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/RangeMapFloatFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/RangeMapFloatFunction.cs
@@ -1,27 +1,28 @@
-\ufeff/*
- * 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 System.Collections;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Search;
using Lucene.Net.Support;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// <code>RangeMapFloatFunction</code> implements a map function over
/// another <seealso cref="ValueSource"/> whose values fall within min and max inclusive to target.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/ReciprocalFloatFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/ReciprocalFloatFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/ReciprocalFloatFunction.cs
index 1401788..33ae99f 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/ReciprocalFloatFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/ReciprocalFloatFunction.cs
@@ -1,28 +1,29 @@
-\ufeff/*
- * 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 System;
-using System.Collections;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Search;
using Lucene.Net.Support;
+using System;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// <code>ReciprocalFloatFunction</code> implements a reciprocal function f(x) = a/(mx+b), based on
/// the float value of a field or function as exported by <seealso cref="ValueSource"/>.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/ReverseOrdFieldSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/ReverseOrdFieldSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/ReverseOrdFieldSource.cs
index b8a6c7b..b2dd93b 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/ReverseOrdFieldSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/ReverseOrdFieldSource.cs
@@ -1,26 +1,27 @@
-\ufeff/*
- * 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 System.Collections;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Search;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// Obtains the ordinal of the field value from the default Lucene <seealso cref="FieldCache"/> using getTermsIndex()
/// and reverses the order.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/ScaleFloatFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/ScaleFloatFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/ScaleFloatFunction.cs
index d322f90..ed74f76 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/ScaleFloatFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/ScaleFloatFunction.cs
@@ -1,28 +1,28 @@
-\ufeff/*
- * 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 System.Collections;
-using System.Collections.Generic;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Search;
using Lucene.Net.Support;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// Scales values to be between min and max.
/// <para>This implementation currently traverses all of the source values to obtain
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/ShortFieldSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/ShortFieldSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/ShortFieldSource.cs
index c3bda02..d0cfcbe 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/ShortFieldSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/ShortFieldSource.cs
@@ -1,7 +1,7 @@
-\ufeffusing System;
-using System.Collections;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Search;
+using System;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
@@ -21,13 +21,13 @@ namespace Lucene.Net.Queries.Function.ValueSources
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// Obtains short field values from the <seealso cref="org.apache.lucene.search.FieldCache"/>
/// using <code>getShorts()</code>
/// and makes those values available as other numeric types, casting as needed.
///
/// </summary>
- // LUCENENET TODO: Rename Int16FieldSource ?
[Obsolete]
public class ShortFieldSource : FieldCacheSource
{
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/SimpleBoolFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/SimpleBoolFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/SimpleBoolFunction.cs
index 47b0549..2944437 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/SimpleBoolFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/SimpleBoolFunction.cs
@@ -1,26 +1,27 @@
-\ufeff/*
- * 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 System.Collections;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Search;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// <seealso cref="BoolFunction"/> implementation which applies an extendible boolean
/// function to the values of a single wrapped <seealso cref="ValueSource"/>.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/SimpleFloatFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/SimpleFloatFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/SimpleFloatFunction.cs
index 9725280..b0171ed 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/SimpleFloatFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/SimpleFloatFunction.cs
@@ -1,25 +1,26 @@
-\ufeffusing System.Collections;
-/*
- * 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 Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// A simple float function with a single argument
/// </summary>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/SingleFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/SingleFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/SingleFunction.cs
index 3d94ab1..c9d4633 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/SingleFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/SingleFunction.cs
@@ -1,24 +1,25 @@
-\ufeff/*
- * 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.
- */
+\ufeffusing Lucene.Net.Search;
using System.Collections;
-using Lucene.Net.Search;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// A function with a single argument
/// </summary>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/SumFloatFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/SumFloatFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/SumFloatFunction.cs
index 280612f..6f76752 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/SumFloatFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/SumFloatFunction.cs
@@ -1,24 +1,24 @@
-\ufeff/*
- * 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 System.Linq;
+\ufeffusing System.Linq;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// <code>SumFloatFunction</code> returns the sum of it's components.
/// </summary>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/SumTotalTermFreqValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/SumTotalTermFreqValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/SumTotalTermFreqValueSource.cs
index 2b04265..188a88d 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/SumTotalTermFreqValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/SumTotalTermFreqValueSource.cs
@@ -1,26 +1,27 @@
-\ufeff/*
- * 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 System.Collections;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Search;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// <code>SumTotalTermFreqValueSource</code> returns the number of tokens.
/// (sum of term freqs across all documents, across all terms).
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/TFValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/TFValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/TFValueSource.cs
index ec9a4f1..cc6ce64 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/TFValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/TFValueSource.cs
@@ -1,16 +1,14 @@
-\ufeffusing System;
-using System.Collections;
-using System.Collections.Generic;
-using System.IO;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Search;
using Lucene.Net.Search.Similarities;
using Lucene.Net.Util;
+using System;
+using System.Collections;
+using System.IO;
namespace Lucene.Net.Queries.Function.ValueSources
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -27,6 +25,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// Function that returns <seealso cref="TFIDFSimilarity#tf(float)"/>
/// for every document.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/TermFreqValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/TermFreqValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/TermFreqValueSource.cs
index ec32fed..6527c67 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/TermFreqValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/TermFreqValueSource.cs
@@ -1,29 +1,30 @@
-\ufeff/*
- * 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 System;
-using System.Collections;
-using System.IO;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Search;
using Lucene.Net.Util;
+using System;
+using System.Collections;
+using System.IO;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// Function that returns <seealso cref="DocsEnum#freq()"/> for the
/// supplied term in every document.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/TotalTermFreqValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/TotalTermFreqValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/TotalTermFreqValueSource.cs
index 5e06460..1004bb8 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/TotalTermFreqValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/TotalTermFreqValueSource.cs
@@ -1,27 +1,28 @@
-\ufeff/*
- * 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 System.Collections;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Search;
using Lucene.Net.Util;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// <code>TotalTermFreqValueSource</code> returns the total term freq
/// (sum of term freqs across all documents).
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/VectorValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/VectorValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/VectorValueSource.cs
index 3146988..b914435 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/VectorValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/VectorValueSource.cs
@@ -1,8 +1,8 @@
-\ufeffusing System.Collections;
+\ufeffusing Lucene.Net.Index;
+using Lucene.Net.Search;
+using System.Collections;
using System.Collections.Generic;
using System.Text;
-using Lucene.Net.Index;
-using Lucene.Net.Search;
namespace Lucene.Net.Queries.Function.ValueSources
{
@@ -22,6 +22,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// Converts individual ValueSource instances to leverage the FunctionValues *Val functions that work with multiple values,
/// i.e. <seealso cref="FunctionValues#DoubleVal(int, double[])"/>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Mlt/MoreLikeThis.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Mlt/MoreLikeThis.cs b/src/Lucene.Net.Queries/Mlt/MoreLikeThis.cs
index f728a81..8f36026 100644
--- a/src/Lucene.Net.Queries/Mlt/MoreLikeThis.cs
+++ b/src/Lucene.Net.Queries/Mlt/MoreLikeThis.cs
@@ -1,23 +1,4 @@
-\ufeff// <summary>
-// Copyright 2004-2005 The Apache Software Foundation.///
-// Licensed 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.
-// </summary>
-
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Text;
-using Lucene.Net.Analysis;
+\ufeffusing Lucene.Net.Analysis;
using Lucene.Net.Analysis.TokenAttributes;
using Lucene.Net.Documents;
using Lucene.Net.Index;
@@ -25,10 +6,31 @@ using Lucene.Net.Search;
using Lucene.Net.Search.Similarities;
using Lucene.Net.Support;
using Lucene.Net.Util;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Text;
using Reader = System.IO.TextReader;
namespace Lucene.Net.Queries.Mlt
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// Generate "more like this" similarity queries.
/// Based on this mail:
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Mlt/MoreLikeThisQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Mlt/MoreLikeThisQuery.cs b/src/Lucene.Net.Queries/Mlt/MoreLikeThisQuery.cs
index af91546..3344adc 100644
--- a/src/Lucene.Net.Queries/Mlt/MoreLikeThisQuery.cs
+++ b/src/Lucene.Net.Queries/Mlt/MoreLikeThisQuery.cs
@@ -1,16 +1,15 @@
\ufeff/*
* Created on 25-Jan-2006
*/
-using System.Collections.Generic;
-using System.IO;
using Lucene.Net.Analysis;
using Lucene.Net.Index;
using Lucene.Net.Search;
using Lucene.Net.Support;
+using System.Collections.Generic;
+using System.IO;
namespace Lucene.Net.Queries.Mlt
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/TermFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/TermFilter.cs b/src/Lucene.Net.Queries/TermFilter.cs
index 3f5e394..880ddfb 100644
--- a/src/Lucene.Net.Queries/TermFilter.cs
+++ b/src/Lucene.Net.Queries/TermFilter.cs
@@ -4,7 +4,6 @@ using Lucene.Net.Util;
namespace Lucene.Net.Queries
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -21,6 +20,7 @@ namespace Lucene.Net.Queries
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// A filter that includes documents that match with a specific term.
/// </summary>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/TermsFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/TermsFilter.cs b/src/Lucene.Net.Queries/TermsFilter.cs
index b70af95..bc10111 100644
--- a/src/Lucene.Net.Queries/TermsFilter.cs
+++ b/src/Lucene.Net.Queries/TermsFilter.cs
@@ -1,15 +1,14 @@
-\ufeffusing System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Search;
using Lucene.Net.Support;
using Lucene.Net.Util;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
namespace Lucene.Net.Queries
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -26,6 +25,7 @@ namespace Lucene.Net.Queries
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// Constructs a filter for docs matching any of the terms added to this class.
/// Unlike a RangeFilter this can be used for filtering on multiple terms that are not necessarily in
[2/4] lucenenet git commit: Lucene.Net.Queries: member accessibility
Posted by ni...@apache.org.
Lucene.Net.Queries: member accessibility
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/fc457f59
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/fc457f59
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/fc457f59
Branch: refs/heads/api-work
Commit: fc457f5996a005a3e6b87b4bb11bb6ef862eb4b9
Parents: 9c8e8fb
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Fri Jan 27 10:54:43 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Fri Jan 27 10:54:43 2017 +0700
----------------------------------------------------------------------
src/Lucene.Net.Queries/BooleanFilter.cs | 2 +-
src/Lucene.Net.Queries/ChainedFilter.cs | 6 +-
src/Lucene.Net.Queries/CommonTermsQuery.cs | 51 ++++----
src/Lucene.Net.Queries/CustomScoreProvider.cs | 3 +-
src/Lucene.Net.Queries/CustomScoreQuery.cs | 11 +-
src/Lucene.Net.Queries/FilterClause.cs | 4 +-
.../Function/DocValues/BoolDocValues.cs | 4 +-
.../DocValues/DocTermsIndexDocValues.cs | 20 +--
.../Function/DocValues/DoubleDocValues.cs | 4 +-
.../Function/DocValues/FloatDocValues.cs | 2 +-
.../Function/DocValues/IntDocValues.cs | 3 +-
.../Function/DocValues/LongDocValues.cs | 5 +-
.../Function/DocValues/StrDocValues.cs | 5 +-
.../Function/FunctionQuery.cs | 24 ++--
.../Function/FunctionValues.cs | 25 ++--
src/Lucene.Net.Queries/Function/ValueSource.cs | 13 +-
.../Function/ValueSourceScorer.cs | 10 +-
.../Function/ValueSources/ByteFieldSource.cs | 1 -
.../ValueSources/BytesRefFieldSource.cs | 3 +-
.../Function/ValueSources/ConstNumberSource.cs | 6 +-
.../Function/ValueSources/ConstValueSource.cs | 4 +-
.../Function/ValueSources/DefFunction.cs | 9 ++
.../Function/ValueSources/DocFreqValueSource.cs | 8 +-
.../ValueSources/DoubleConstValueSource.cs | 4 +-
.../Function/ValueSources/DoubleFieldSource.cs | 4 +-
.../Function/ValueSources/DualFloatFunction.cs | 6 +-
.../Function/ValueSources/EnumFieldSource.cs | 14 +--
.../Function/ValueSources/FieldCacheSource.cs | 6 +-
.../Function/ValueSources/FloatFieldSource.cs | 2 +-
.../Function/ValueSources/IntFieldSource.cs | 2 +-
.../ValueSources/JoinDocFreqValueSource.cs | 3 +-
.../ValueSources/LinearFloatFunction.cs | 6 +-
.../Function/ValueSources/LongFieldSource.cs | 1 -
.../Function/ValueSources/MultiBoolFunction.cs | 2 +-
.../Function/ValueSources/MultiFloatFunction.cs | 4 +-
.../Function/ValueSources/MultiFunction.cs | 2 +-
.../Function/ValueSources/NormValueSource.cs | 2 +-
.../ValueSources/RangeMapFloatFunction.cs | 6 +-
.../ValueSources/ReciprocalFloatFunction.cs | 8 +-
.../Function/ValueSources/ScaleFloatFunction.cs | 14 ++-
.../Function/ValueSources/ShortFieldSource.cs | 7 +-
.../Function/ValueSources/SimpleBoolFunction.cs | 4 +-
.../ValueSources/SimpleFloatFunction.cs | 3 +-
.../Function/ValueSources/SingleFunction.cs | 9 +-
.../Function/ValueSources/SumFloatFunction.cs | 4 +-
.../ValueSources/SumTotalTermFreqValueSource.cs | 2 +-
.../Function/ValueSources/VectorValueSource.cs | 2 +-
src/Lucene.Net.Queries/Mlt/MoreLikeThis.cs | 62 +++++-----
src/Lucene.Net.Queries/Mlt/MoreLikeThisQuery.cs | 124 ++++++++++++-------
src/Lucene.Net.Queries/TermFilter.cs | 1 -
src/Lucene.Net.Queries/TermsFilter.cs | 6 +-
51 files changed, 293 insertions(+), 240 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/BooleanFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/BooleanFilter.cs b/src/Lucene.Net.Queries/BooleanFilter.cs
index bf9f86e..d31da33 100644
--- a/src/Lucene.Net.Queries/BooleanFilter.cs
+++ b/src/Lucene.Net.Queries/BooleanFilter.cs
@@ -36,7 +36,6 @@ namespace Lucene.Net.Queries
/// </summary>
public class BooleanFilter : Filter, IEnumerable<FilterClause>
{
-
private readonly IList<FilterClause> clauses = new List<FilterClause>();
/// <summary>
@@ -190,6 +189,7 @@ namespace Lucene.Net.Queries
return buffer.Append(')').ToString();
}
+ // LUCENENET specific
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/ChainedFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/ChainedFilter.cs b/src/Lucene.Net.Queries/ChainedFilter.cs
index f968f7d..ea4f7d7 100644
--- a/src/Lucene.Net.Queries/ChainedFilter.cs
+++ b/src/Lucene.Net.Queries/ChainedFilter.cs
@@ -39,7 +39,6 @@ namespace Lucene.Net.Queries
/// </summary>
public class ChainedFilter : Filter
{
-
public const int OR = 0;
public const int AND = 1;
public const int ANDNOT = 2;
@@ -200,9 +199,8 @@ namespace Lucene.Net.Queries
return sb.ToString();
}
- //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
- //ORIGINAL LINE: private void doChain(org.apache.lucene.util.FixedBitSet result, int logic, org.apache.lucene.search.DocIdSet dis) throws java.io.IOException
- private void doChain(FixedBitSet result, int logic, DocIdSet dis)
+ /// <exception cref="System.IO.IOException"/>
+ private void doChain(FixedBitSet result, int logic, DocIdSet dis) // LUCENENET TODO: Rename DoChain
{
if (dis is FixedBitSet)
{
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/CommonTermsQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/CommonTermsQuery.cs b/src/Lucene.Net.Queries/CommonTermsQuery.cs
index 5e919ab..cd60a0b 100644
--- a/src/Lucene.Net.Queries/CommonTermsQuery.cs
+++ b/src/Lucene.Net.Queries/CommonTermsQuery.cs
@@ -61,14 +61,15 @@ namespace Lucene.Net.Queries
* rewrite to dismax rather than boolean. Yet, this can already be subclassed
* to do so.
*/
- protected internal readonly IList<Term> terms = new List<Term>();
- protected internal readonly bool disableCoord;
- protected internal readonly float maxTermFrequency;
- protected internal readonly Occur lowFreqOccur;
- protected internal readonly Occur highFreqOccur;
- protected internal float lowFreqBoost = 1.0f;
- protected internal float highFreqBoost = 1.0f;
-
+ protected readonly IList<Term> terms = new List<Term>();
+ protected readonly bool disableCoord;
+ protected readonly float maxTermFrequency;
+ protected readonly Occur lowFreqOccur;
+ protected readonly Occur highFreqOccur;
+ protected float lowFreqBoost = 1.0f;
+ protected float highFreqBoost = 1.0f;
+ protected float lowFreqMinNrShouldMatch = 0;
+ protected float highFreqMinNrShouldMatch = 0;
/// <summary>
/// Creates a new <seealso cref="CommonTermsQuery"/>
@@ -121,8 +122,6 @@ namespace Lucene.Net.Queries
this.highFreqOccur = highFreqOccur;
this.lowFreqOccur = lowFreqOccur;
this.maxTermFrequency = maxTermFrequency;
- LowFreqMinimumNumberShouldMatch = 0;
- HighFreqMinimumNumberShouldMatch = 0;
}
/// <summary>
@@ -159,14 +158,14 @@ namespace Lucene.Net.Queries
return BuildQuery(maxDoc, contextArray, queryTerms);
}
- protected internal virtual int CalcLowFreqMinimumNumberShouldMatch(int numOptional)
+ protected virtual int CalcLowFreqMinimumNumberShouldMatch(int numOptional)
{
- return MinNrShouldMatch(LowFreqMinimumNumberShouldMatch, numOptional);
+ return MinNrShouldMatch(lowFreqMinNrShouldMatch, numOptional);
}
- protected internal virtual int CalcHighFreqMinimumNumberShouldMatch(int numOptional)
+ protected virtual int CalcHighFreqMinimumNumberShouldMatch(int numOptional)
{
- return MinNrShouldMatch(HighFreqMinimumNumberShouldMatch, numOptional);
+ return MinNrShouldMatch(highFreqMinNrShouldMatch, numOptional);
}
private int MinNrShouldMatch(float minNrShouldMatch, int numOptional)
@@ -178,7 +177,7 @@ namespace Lucene.Net.Queries
return (int)Math.Round(minNrShouldMatch * numOptional);
}
- protected internal virtual Query BuildQuery(int maxDoc, TermContext[] contextArray, Term[] queryTerms)
+ protected virtual Query BuildQuery(int maxDoc, TermContext[] contextArray, Term[] queryTerms)
{
var lowFreq = new BooleanQuery(disableCoord);
var highFreq = new BooleanQuery(disableCoord) { Boost = highFreqBoost };
@@ -297,7 +296,7 @@ namespace Lucene.Net.Queries
/// for the high and low frequency query instance. The top level query will
/// always disable coords.
/// </summary>
- public virtual bool CoordDisabled
+ public virtual bool CoordDisabled // LUCENENET TODO: Rename IsCoordDisabled
{
get
{
@@ -320,7 +319,11 @@ namespace Lucene.Net.Queries
/// </summary>
/// <param name="min">
/// the number of optional clauses that must match </param>
- public float LowFreqMinimumNumberShouldMatch { get; set; }
+ public virtual float LowFreqMinimumNumberShouldMatch
+ {
+ get { return lowFreqMinNrShouldMatch; }
+ set { lowFreqMinNrShouldMatch = value; }
+ }
/// <summary>
@@ -338,7 +341,11 @@ namespace Lucene.Net.Queries
/// </summary>
/// <param name="min">
/// the number of optional clauses that must match </param>
- public float HighFreqMinimumNumberShouldMatch { get; set; }
+ public virtual float HighFreqMinimumNumberShouldMatch
+ {
+ get { return highFreqMinNrShouldMatch; }
+ set { highFreqMinNrShouldMatch = value; }
+ }
public override void ExtractTerms(ISet<Term> terms)
@@ -393,8 +400,8 @@ namespace Lucene.Net.Queries
result = prime * result + Number.FloatToIntBits(lowFreqBoost);
result = prime * result + /*((lowFreqOccur == null) ? 0 :*/ lowFreqOccur.GetHashCode()/*)*/;
result = prime * result + Number.FloatToIntBits(maxTermFrequency);
- result = prime * result + Number.FloatToIntBits(LowFreqMinimumNumberShouldMatch);
- result = prime * result + Number.FloatToIntBits(HighFreqMinimumNumberShouldMatch);
+ result = prime * result + Number.FloatToIntBits(lowFreqMinNrShouldMatch);
+ result = prime * result + Number.FloatToIntBits(highFreqMinNrShouldMatch);
result = prime * result + ((terms == null) ? 0 : terms.GetValueHashCode());
return result;
}
@@ -438,11 +445,11 @@ namespace Lucene.Net.Queries
{
return false;
}
- if (LowFreqMinimumNumberShouldMatch != other.LowFreqMinimumNumberShouldMatch)
+ if (lowFreqMinNrShouldMatch != other.lowFreqMinNrShouldMatch)
{
return false;
}
- if (HighFreqMinimumNumberShouldMatch != other.HighFreqMinimumNumberShouldMatch)
+ if (highFreqMinNrShouldMatch != other.highFreqMinNrShouldMatch)
{
return false;
}
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/CustomScoreProvider.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/CustomScoreProvider.cs b/src/Lucene.Net.Queries/CustomScoreProvider.cs
index ea4d5ed..7ff1b6e 100644
--- a/src/Lucene.Net.Queries/CustomScoreProvider.cs
+++ b/src/Lucene.Net.Queries/CustomScoreProvider.cs
@@ -38,8 +38,7 @@ namespace Lucene.Net.Queries
/// </summary>
public class CustomScoreProvider
{
-
- protected internal readonly AtomicReaderContext context;
+ protected readonly AtomicReaderContext context;
/// <summary>
/// Creates a new instance of the provider class for the given <seealso cref="IndexReader"/>.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/CustomScoreQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/CustomScoreQuery.cs b/src/Lucene.Net.Queries/CustomScoreQuery.cs
index 30ccc4d..3699d56 100644
--- a/src/Lucene.Net.Queries/CustomScoreQuery.cs
+++ b/src/Lucene.Net.Queries/CustomScoreQuery.cs
@@ -38,8 +38,7 @@ namespace Lucene.Net.Queries
/// </summary>
public class CustomScoreQuery : Query
{
-
- internal Query subQuery;
+ private Query subQuery;
private Query[] scoringQueries; // never null (empty array if there are no valSrcQueries).
private bool strict = false; // if true, valueSource part of query does not take part in weights normalization.
@@ -181,7 +180,7 @@ namespace Lucene.Net.Queries
/// implementation as specified in the docs of <seealso cref="CustomScoreProvider"/>.
/// @since 2.9.2
/// </summary>
- protected internal virtual CustomScoreProvider GetCustomScoreProvider(AtomicReaderContext context)
+ protected virtual CustomScoreProvider GetCustomScoreProvider(AtomicReaderContext context)
{
return new CustomScoreProvider(context);
}
@@ -280,7 +279,7 @@ namespace Lucene.Net.Queries
return explain ?? new Explanation(0.0f, "no matching docs");
}
- internal virtual Explanation DoExplain(AtomicReaderContext info, int doc)
+ private Explanation DoExplain(AtomicReaderContext info, int doc)
{
var subQueryExpl = subQueryWeight.Explain(info, doc);
if (!subQueryExpl.IsMatch)
@@ -410,7 +409,7 @@ namespace Lucene.Net.Queries
/// <P>
/// Note: only has effect when the <seealso cref="ValueSource"/> part is not null.
/// </summary>
- public virtual bool Strict { get; set; }
+ public virtual bool Strict { get; set; } // LUCENENET TODO: Rename IsStrict
/// <summary>
@@ -422,6 +421,7 @@ namespace Lucene.Net.Queries
/// <summary>
/// The scoring queries that only affect the score of CustomScoreQuery. </summary>
+ [WritableArray]
public virtual Query[] ScoringQueries
{
get { return scoringQueries; }
@@ -434,6 +434,5 @@ namespace Lucene.Net.Queries
{
get { return "custom"; }
}
-
}
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/FilterClause.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/FilterClause.cs b/src/Lucene.Net.Queries/FilterClause.cs
index 09e1b32..89bc8f3 100644
--- a/src/Lucene.Net.Queries/FilterClause.cs
+++ b/src/Lucene.Net.Queries/FilterClause.cs
@@ -27,7 +27,6 @@ namespace Lucene.Net.Queries
/// </summary>
public sealed class FilterClause
{
-
private readonly Occur occur;
private readonly Filter filter;
@@ -75,7 +74,8 @@ namespace Lucene.Net.Queries
{
return false;
}
- return this.filter.Equals(other.filter) && this.occur == other.occur;
+ return this.filter.Equals(other.filter)
+ && this.occur == other.occur;
}
public override int GetHashCode()
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/DocValues/BoolDocValues.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/DocValues/BoolDocValues.cs b/src/Lucene.Net.Queries/Function/DocValues/BoolDocValues.cs
index 0f14504..5303cc4 100644
--- a/src/Lucene.Net.Queries/Function/DocValues/BoolDocValues.cs
+++ b/src/Lucene.Net.Queries/Function/DocValues/BoolDocValues.cs
@@ -26,9 +26,9 @@ namespace Lucene.Net.Queries.Function.DocValues
/// </summary>
public abstract class BoolDocValues : FunctionValues
{
- protected internal readonly ValueSource vs;
+ protected readonly ValueSource vs;
- protected BoolDocValues(ValueSource vs)
+ public BoolDocValues(ValueSource vs)
{
this.vs = vs;
}
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/DocValues/DocTermsIndexDocValues.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/DocValues/DocTermsIndexDocValues.cs b/src/Lucene.Net.Queries/Function/DocValues/DocTermsIndexDocValues.cs
index f47c0d1..f717faa 100644
--- a/src/Lucene.Net.Queries/Function/DocValues/DocTermsIndexDocValues.cs
+++ b/src/Lucene.Net.Queries/Function/DocValues/DocTermsIndexDocValues.cs
@@ -28,13 +28,13 @@ namespace Lucene.Net.Queries.Function.DocValues
/// </summary>
public abstract class DocTermsIndexDocValues : FunctionValues
{
- protected internal readonly SortedDocValues termsIndex;
- protected internal readonly ValueSource vs;
- protected internal readonly MutableValueStr val = new MutableValueStr();
- protected internal readonly BytesRef spare = new BytesRef();
- protected internal readonly CharsRef spareChars = new CharsRef();
+ protected readonly SortedDocValues termsIndex;
+ protected readonly ValueSource vs;
+ protected readonly MutableValueStr val = new MutableValueStr();
+ protected readonly BytesRef spare = new BytesRef();
+ protected readonly CharsRef spareChars = new CharsRef();
- protected DocTermsIndexDocValues(ValueSource vs, AtomicReaderContext context, string field)
+ public DocTermsIndexDocValues(ValueSource vs, AtomicReaderContext context, string field)
{
try
{
@@ -47,7 +47,7 @@ namespace Lucene.Net.Queries.Function.DocValues
this.vs = vs;
}
- protected internal abstract string toTerm(string readableValue);
+ protected abstract string toTerm(string readableValue); // LUCENENET TODO: Rename ToTerm(string readableValue)
public override bool Exists(int doc)
{
@@ -59,7 +59,7 @@ namespace Lucene.Net.Queries.Function.DocValues
return termsIndex.GetOrd(doc);
}
- public override int NumOrd()
+ public override int NumOrd() // LUCENENET TODO: Make property
{
return termsIndex.ValueCount;
}
@@ -204,6 +204,10 @@ namespace Lucene.Net.Queries.Function.DocValues
/// <summary>
/// Custom Exception to be thrown when the DocTermsIndex for a field cannot be generated
/// </summary>
+ // LUCENENET: All exeption classes should be marked serializable
+#if FEATURE_SERIALIZABLE
+ [Serializable]
+#endif
public sealed class DocTermsIndexException : Exception
{
public DocTermsIndexException(string fieldName, Exception cause)
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/DocValues/DoubleDocValues.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/DocValues/DoubleDocValues.cs b/src/Lucene.Net.Queries/Function/DocValues/DoubleDocValues.cs
index cca660d..3267517 100644
--- a/src/Lucene.Net.Queries/Function/DocValues/DoubleDocValues.cs
+++ b/src/Lucene.Net.Queries/Function/DocValues/DoubleDocValues.cs
@@ -27,9 +27,9 @@ namespace Lucene.Net.Queries.Function.DocValues
/// </summary>
public abstract class DoubleDocValues : FunctionValues
{
- protected internal readonly ValueSource vs;
+ protected readonly ValueSource vs;
- protected DoubleDocValues(ValueSource vs)
+ public DoubleDocValues(ValueSource vs)
{
this.vs = vs;
}
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/DocValues/FloatDocValues.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/DocValues/FloatDocValues.cs b/src/Lucene.Net.Queries/Function/DocValues/FloatDocValues.cs
index e36b4d9..a7c3435 100644
--- a/src/Lucene.Net.Queries/Function/DocValues/FloatDocValues.cs
+++ b/src/Lucene.Net.Queries/Function/DocValues/FloatDocValues.cs
@@ -26,7 +26,7 @@ namespace Lucene.Net.Queries.Function.DocValues
/// </summary>
public abstract class FloatDocValues : FunctionValues
{
- protected internal readonly ValueSource vs;
+ protected readonly ValueSource vs;
public FloatDocValues(ValueSource vs)
{
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/DocValues/IntDocValues.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/DocValues/IntDocValues.cs b/src/Lucene.Net.Queries/Function/DocValues/IntDocValues.cs
index 0a5e45c..d3dea1d 100644
--- a/src/Lucene.Net.Queries/Function/DocValues/IntDocValues.cs
+++ b/src/Lucene.Net.Queries/Function/DocValues/IntDocValues.cs
@@ -27,7 +27,7 @@ namespace Lucene.Net.Queries.Function.DocValues
/// </summary>
public abstract class IntDocValues : FunctionValues
{
- protected internal readonly ValueSource vs;
+ protected readonly ValueSource vs;
public IntDocValues(ValueSource vs)
{
@@ -173,5 +173,4 @@ namespace Lucene.Net.Queries.Function.DocValues
}
}
}
-
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/DocValues/LongDocValues.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/DocValues/LongDocValues.cs b/src/Lucene.Net.Queries/Function/DocValues/LongDocValues.cs
index 0383b48..8e42c78 100644
--- a/src/Lucene.Net.Queries/Function/DocValues/LongDocValues.cs
+++ b/src/Lucene.Net.Queries/Function/DocValues/LongDocValues.cs
@@ -27,9 +27,9 @@ namespace Lucene.Net.Queries.Function.DocValues
/// </summary>
public abstract class LongDocValues : FunctionValues
{
- protected internal readonly ValueSource vs;
+ protected readonly ValueSource vs;
- protected LongDocValues(ValueSource vs)
+ public LongDocValues(ValueSource vs)
{
this.vs = vs;
}
@@ -183,5 +183,4 @@ namespace Lucene.Net.Queries.Function.DocValues
}
}
}
-
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/DocValues/StrDocValues.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/DocValues/StrDocValues.cs b/src/Lucene.Net.Queries/Function/DocValues/StrDocValues.cs
index fe3262c..e6b1e52 100644
--- a/src/Lucene.Net.Queries/Function/DocValues/StrDocValues.cs
+++ b/src/Lucene.Net.Queries/Function/DocValues/StrDocValues.cs
@@ -25,9 +25,9 @@ namespace Lucene.Net.Queries.Function.DocValues
/// </summary>
public abstract class StrDocValues : FunctionValues
{
- protected internal readonly ValueSource vs;
+ protected readonly ValueSource vs;
- protected StrDocValues(ValueSource vs)
+ public StrDocValues(ValueSource vs)
{
this.vs = vs;
}
@@ -83,5 +83,4 @@ namespace Lucene.Net.Queries.Function.DocValues
}
}
}
-
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/FunctionQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/FunctionQuery.cs b/src/Lucene.Net.Queries/Function/FunctionQuery.cs
index 2ee935d..f01c981 100644
--- a/src/Lucene.Net.Queries/Function/FunctionQuery.cs
+++ b/src/Lucene.Net.Queries/Function/FunctionQuery.cs
@@ -34,7 +34,7 @@ namespace Lucene.Net.Queries.Function
/// </summary>
public class FunctionQuery : Query
{
- internal readonly ValueSource func;
+ private readonly ValueSource func;
/// <param name="func"> defines the function to be used for scoring </param>
public FunctionQuery(ValueSource func)
@@ -108,20 +108,19 @@ namespace Lucene.Net.Queries.Function
}
}
- protected internal class AllScorer : Scorer
+ protected class AllScorer : Scorer
{
private readonly FunctionQuery outerInstance;
- internal readonly IndexReader reader;
- internal readonly FunctionWeight weight;
- internal readonly int maxDoc;
- internal readonly float qWeight;
- internal int doc = -1;
- internal readonly FunctionValues vals;
- internal readonly IBits acceptDocs;
+ private readonly IndexReader reader;
+ private readonly FunctionWeight weight;
+ private readonly int maxDoc;
+ private readonly float qWeight;
+ private int doc = -1;
+ private readonly FunctionValues vals;
+ private readonly IBits acceptDocs;
- //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
- //ORIGINAL LINE: public AllScorer(org.apache.lucene.index.AtomicReaderContext context, org.apache.lucene.util.Bits acceptDocs, FunctionWeight w, float qWeight) throws java.io.IOException
+ /// <exception cref="System.IO.IOException"/>
public AllScorer(FunctionQuery outerInstance, AtomicReaderContext context, IBits acceptDocs, FunctionWeight w, float qWeight)
: base(w)
{
@@ -224,7 +223,8 @@ namespace Lucene.Net.Queries.Function
{
return false;
}
- return Boost == other.Boost && func.Equals(other.func);
+ return Boost == other.Boost
+ && func.Equals(other.func);
}
/// <summary>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/FunctionValues.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/FunctionValues.cs b/src/Lucene.Net.Queries/Function/FunctionValues.cs
index 3cc23c3..fd0a431 100644
--- a/src/Lucene.Net.Queries/Function/FunctionValues.cs
+++ b/src/Lucene.Net.Queries/Function/FunctionValues.cs
@@ -39,28 +39,27 @@ namespace Lucene.Net.Queries.Function
// want the Query carrying around big objects
public abstract class FunctionValues
{
-
public virtual sbyte ByteVal(int doc)
{
throw new System.NotSupportedException();
}
- public virtual short ShortVal(int doc)
+ public virtual short ShortVal(int doc) // LUCENENET TODO: Rename Int16Val ?
{
throw new System.NotSupportedException();
}
- public virtual float FloatVal(int doc)
+ public virtual float FloatVal(int doc) // LUCENENET TODO: Rename SingleVal ?
{
throw new System.NotSupportedException();
}
- public virtual int IntVal(int doc)
+ public virtual int IntVal(int doc) // LUCENENET TODO: Rename Int32Val ?
{
throw new System.NotSupportedException();
}
- public virtual long LongVal(int doc)
+ public virtual long LongVal(int doc) // LUCENENET TODO: Rename Int64Val ?
{
throw new System.NotSupportedException();
}
@@ -96,7 +95,7 @@ namespace Lucene.Net.Queries.Function
}
/// <summary>
- /// Native Java Object representation of the value </summary>
+ /// Native Object representation of the value </summary>
public virtual object ObjectVal(int doc)
{
// most FunctionValues are functions, so by default return a Float()
@@ -119,7 +118,7 @@ namespace Lucene.Net.Queries.Function
}
/// <returns> the number of unique sort ordinals this instance has </returns>
- public virtual int NumOrd()
+ public virtual int NumOrd() // LUCENENET TODO: Make property ?
{
throw new System.NotSupportedException();
}
@@ -134,7 +133,7 @@ namespace Lucene.Net.Queries.Function
///
/// @lucene.experimental
/// </summary>
- public abstract class AbstractValueFiller
+ public abstract class AbstractValueFiller // LUCENENET TODO: Rename ValueFiller (after renaming property ValueFiller)
{
/// <summary>
/// MutableValue will be reused across calls </summary>
@@ -147,7 +146,7 @@ namespace Lucene.Net.Queries.Function
/// <summary>
/// @lucene.experimental </summary>
- public virtual AbstractValueFiller ValueFiller
+ public virtual AbstractValueFiller ValueFiller // LUCENENET TODO: Make GetValueFiller() (returns new object)
{
get { return new ValueFillerAnonymousInnerClassHelper(this); }
}
@@ -181,22 +180,22 @@ namespace Lucene.Net.Queries.Function
throw new System.NotSupportedException();
}
- public virtual void ShortVal(int doc, short[] vals)
+ public virtual void ShortVal(int doc, short[] vals) // LUCENENET TODO: Rename Int16Val ?
{
throw new System.NotSupportedException();
}
- public virtual void FloatVal(int doc, float[] vals)
+ public virtual void FloatVal(int doc, float[] vals) // LUCENENET TODO: Rename SingleVal ?
{
throw new System.NotSupportedException();
}
- public virtual void IntVal(int doc, int[] vals)
+ public virtual void IntVal(int doc, int[] vals) // LUCENENET TODO: Rename Int32Val ?
{
throw new System.NotSupportedException();
}
- public virtual void LongVal(int doc, long[] vals)
+ public virtual void LongVal(int doc, long[] vals) // LUCENENET TODO: Rename Int64Val ?
{
throw new System.NotSupportedException();
}
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSource.cs
index 55f737d..100e383 100644
--- a/src/Lucene.Net.Queries/Function/ValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSource.cs
@@ -33,7 +33,6 @@ namespace Lucene.Net.Queries.Function
/// </summary>
public abstract class ValueSource
{
-
/// <summary>
/// Gets the values for this reader and the context that was previously
/// passed to CreateWeight()
@@ -116,7 +115,7 @@ namespace Lucene.Net.Queries.Function
{
private readonly ValueSource outerInstance;
- internal readonly IDictionary context;
+ private readonly IDictionary context;
public ValueSourceComparerSource(ValueSource outerInstance, IDictionary context)
{
@@ -139,11 +138,11 @@ namespace Lucene.Net.Queries.Function
{
private readonly ValueSource outerInstance;
- internal readonly double[] values;
- internal FunctionValues docVals;
- internal double bottom;
- internal readonly IDictionary fcontext;
- internal double topValue;
+ private readonly double[] values;
+ private FunctionValues docVals;
+ private double bottom;
+ private readonly IDictionary fcontext;
+ private double topValue;
internal ValueSourceComparer(ValueSource outerInstance, IDictionary fcontext, int numHits)
{
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSourceScorer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSourceScorer.cs b/src/Lucene.Net.Queries/Function/ValueSourceScorer.cs
index f4818e9..cb032ea 100644
--- a/src/Lucene.Net.Queries/Function/ValueSourceScorer.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSourceScorer.cs
@@ -27,11 +27,11 @@ namespace Lucene.Net.Queries.Function
/// </summary>
public class ValueSourceScorer : Scorer
{
- protected internal readonly IndexReader reader;
+ protected readonly IndexReader reader;
private int doc = -1;
- protected internal readonly int maxDoc;
- protected internal readonly FunctionValues values;
- protected internal bool checkDeletes;
+ protected readonly int maxDoc;
+ protected readonly FunctionValues values;
+ protected bool checkDeletes;
private readonly IBits liveDocs;
protected internal ValueSourceScorer(IndexReader reader, FunctionValues values)
@@ -52,7 +52,7 @@ namespace Lucene.Net.Queries.Function
}
}
- public virtual bool CheckDeletes
+ public virtual bool CheckDeletes // LUCENENET TODO: Change to SetCheckDeletes(bool checkDeletes) (has side-effect)
{
set
{
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/ByteFieldSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/ByteFieldSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/ByteFieldSource.cs
index d0d6e0a..df00647 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/ByteFieldSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/ByteFieldSource.cs
@@ -130,5 +130,4 @@ namespace Lucene.Net.Queries.Function.ValueSources
return h;
}
}
-
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/BytesRefFieldSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/BytesRefFieldSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/BytesRefFieldSource.cs
index 4c65668..c5ba904 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/BytesRefFieldSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/BytesRefFieldSource.cs
@@ -105,7 +105,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
}
- protected internal override string toTerm(string readableValue)
+ protected override string toTerm(string readableValue)
{
return readableValue;
}
@@ -121,5 +121,4 @@ namespace Lucene.Net.Queries.Function.ValueSources
}
}
}
-
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/ConstNumberSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/ConstNumberSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/ConstNumberSource.cs
index 2f30fc6..a2f1431 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/ConstNumberSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/ConstNumberSource.cs
@@ -25,9 +25,9 @@ namespace Lucene.Net.Queries.Function.ValueSources
/// </summary>
public abstract class ConstNumberSource : ValueSource
{
- public abstract int Int { get; }
- public abstract long Long { get; }
- public abstract float Float { get; }
+ public abstract int Int { get; } // LUCENENET TODO: Rename Int32?
+ public abstract long Long { get; } // LUCENENET TODO: Rename Int64?
+ public abstract float Float { get; } // LUCENENET TODO: Rename Single?
public abstract double Double { get; }
//public abstract Number Number { get; }
public abstract bool Bool { get; }
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/ConstValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/ConstValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/ConstValueSource.cs
index 2a8c056..eb6f0b5 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/ConstValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/ConstValueSource.cs
@@ -26,7 +26,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
/// </summary>
public class ConstValueSource : ConstNumberSource
{
- internal readonly float constant;
+ private readonly float constant;
private readonly double dv;
public ConstValueSource(float constant)
@@ -132,6 +132,8 @@ namespace Lucene.Net.Queries.Function.ValueSources
}
}
+ // LUCENENET NOTE: getNumber() not supported
+
public override bool Bool
{
get
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/DefFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/DefFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/DefFunction.cs
index 3c019be..f19ae8f 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/DefFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/DefFunction.cs
@@ -126,6 +126,15 @@ namespace Lucene.Net.Queries.Function.ValueSources
// return true if any source is exists?
return valsArr.Any(vals => vals.Exists(doc));
}
+
+ public override AbstractValueFiller ValueFiller
+ {
+ get
+ {
+ // TODO: need ValueSource.type() to determine correct type
+ return base.ValueFiller;
+ }
+ }
}
}
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/DocFreqValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/DocFreqValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/DocFreqValueSource.cs
index 0ea9e79..070f9c5 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/DocFreqValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/DocFreqValueSource.cs
@@ -122,10 +122,10 @@ namespace Lucene.Net.Queries.Function.ValueSources
/// </summary>
public class DocFreqValueSource : ValueSource
{
- protected internal readonly string field;
- protected internal readonly string indexedField;
- protected internal readonly string val;
- protected internal readonly BytesRef indexedBytes;
+ protected readonly string field;
+ protected readonly string indexedField;
+ protected readonly string val;
+ protected readonly BytesRef indexedBytes;
public DocFreqValueSource(string field, string val, string indexedField, BytesRef indexedBytes)
{
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/DoubleConstValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/DoubleConstValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/DoubleConstValueSource.cs
index d3830f4..b995a36 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/DoubleConstValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/DoubleConstValueSource.cs
@@ -26,7 +26,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
/// </summary>
public class DoubleConstValueSource : ConstNumberSource
{
- internal readonly double constant;
+ private readonly double constant;
private readonly float fv;
private readonly long lv;
@@ -141,6 +141,8 @@ namespace Lucene.Net.Queries.Function.ValueSources
}
}
+ // LUCENENET NOTE: getNumber() not supported
+
public override bool Bool
{
get
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/DoubleFieldSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/DoubleFieldSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/DoubleFieldSource.cs
index d227d73..389d870 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/DoubleFieldSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/DoubleFieldSource.cs
@@ -29,8 +29,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
/// </summary>
public class DoubleFieldSource : FieldCacheSource
{
-
- protected internal readonly FieldCache.IDoubleParser parser;
+ protected readonly FieldCache.IDoubleParser parser;
public DoubleFieldSource(string field)
: this(field, null)
@@ -53,7 +52,6 @@ namespace Lucene.Net.Queries.Function.ValueSources
var arr = cache.GetDoubles(readerContext.AtomicReader, field, parser, true);
var valid = cache.GetDocsWithField(readerContext.AtomicReader, field);
return new DoubleDocValuesAnonymousInnerClassHelper(this, arr, valid);
-
}
private class DoubleDocValuesAnonymousInnerClassHelper : DoubleDocValues
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/DualFloatFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/DualFloatFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/DualFloatFunction.cs
index bc76f39..22a7481 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/DualFloatFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/DualFloatFunction.cs
@@ -28,12 +28,12 @@ namespace Lucene.Net.Queries.Function.ValueSources
/// </summary>
public abstract class DualFloatFunction : ValueSource
{
- protected internal readonly ValueSource a;
- protected internal readonly ValueSource b;
+ protected readonly ValueSource a;
+ protected readonly ValueSource b;
/// <param name="a"> the base. </param>
/// <param name="b"> the exponent. </param>
- protected DualFloatFunction(ValueSource a, ValueSource b)
+ public DualFloatFunction(ValueSource a, ValueSource b)
{
this.a = a;
this.b = b;
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/EnumFieldSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/EnumFieldSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/EnumFieldSource.cs
index 1429455..63099f5 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/EnumFieldSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/EnumFieldSource.cs
@@ -34,11 +34,11 @@ namespace Lucene.Net.Queries.Function.ValueSources
/// </summary>
public class EnumFieldSource : FieldCacheSource
{
- internal const int DEFAULT_VALUE = -1;
+ private const int DEFAULT_VALUE = -1;
- internal readonly FieldCache.IIntParser parser;
- internal readonly IDictionary<int?, string> enumIntToStringMap;
- internal readonly IDictionary<string, int?> enumStringToIntMap;
+ private readonly FieldCache.IIntParser parser;
+ private readonly IDictionary<int?, string> enumIntToStringMap;
+ private readonly IDictionary<string, int?> enumStringToIntMap;
public EnumFieldSource(string field, FieldCache.IIntParser parser, IDictionary<int?, string> enumIntToStringMap, IDictionary<string, int?> enumStringToIntMap)
: base(field)
@@ -48,7 +48,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
this.enumStringToIntMap = enumStringToIntMap;
}
- private static int? TryParseInt(string valueStr)
+ private static int? TryParseInt(string valueStr) // LUCENENET TODO: Rename TryParseInt32 ?
{
int? intValue = null;
try
@@ -61,7 +61,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
return intValue;
}
- private string IntValueToStringValue(int? intVal)
+ private string IntValueToStringValue(int? intVal) // LUCENENET TODO: Rename Int32ToStringValue ?
{
if (intVal == null)
{
@@ -77,7 +77,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
return DEFAULT_VALUE.ToString(CultureInfo.InvariantCulture);
}
- private int? StringValueToIntValue(string stringVal)
+ private int? StringValueToIntValue(string stringVal) // LUCENENET TODO: Rename StringValueToInt32Value ?
{
if (stringVal == null)
{
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/FieldCacheSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/FieldCacheSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/FieldCacheSource.cs
index caed9e8..d82c0fa 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/FieldCacheSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/FieldCacheSource.cs
@@ -27,10 +27,10 @@ namespace Lucene.Net.Queries.Function.ValueSources
/// </summary>
public abstract class FieldCacheSource : ValueSource
{
- protected internal readonly string field;
- protected internal readonly IFieldCache cache = Search.FieldCache.DEFAULT;
+ protected readonly string field;
+ protected readonly IFieldCache cache = Search.FieldCache.DEFAULT;
- protected FieldCacheSource(string field)
+ public FieldCacheSource(string field)
{
this.field = field;
}
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/FloatFieldSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/FloatFieldSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/FloatFieldSource.cs
index aa48113..b09713a 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/FloatFieldSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/FloatFieldSource.cs
@@ -30,7 +30,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
public class FloatFieldSource : FieldCacheSource
{
- protected internal readonly FieldCache.IFloatParser parser;
+ protected readonly FieldCache.IFloatParser parser;
public FloatFieldSource(string field)
: this(field, null)
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/IntFieldSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/IntFieldSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/IntFieldSource.cs
index ae19498..b60ae1d 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/IntFieldSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/IntFieldSource.cs
@@ -30,7 +30,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
/// </summary>
public class IntFieldSource : FieldCacheSource
{
- internal readonly FieldCache.IIntParser parser;
+ private readonly FieldCache.IIntParser parser;
public IntFieldSource(string field)
: this(field, null)
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/JoinDocFreqValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/JoinDocFreqValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/JoinDocFreqValueSource.cs
index c0ca237..c822df4 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/JoinDocFreqValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/JoinDocFreqValueSource.cs
@@ -31,10 +31,9 @@ namespace Lucene.Net.Queries.Function.ValueSources
/// </summary>
public class JoinDocFreqValueSource : FieldCacheSource
{
-
public const string NAME = "joindf";
- protected internal readonly string qfield;
+ protected readonly string qfield;
public JoinDocFreqValueSource(string field, string qfield)
: base(field)
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/LinearFloatFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/LinearFloatFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/LinearFloatFunction.cs
index 5d7db1d..95235b0 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/LinearFloatFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/LinearFloatFunction.cs
@@ -32,9 +32,9 @@ namespace Lucene.Net.Queries.Function.ValueSources
/// </summary>
public class LinearFloatFunction : ValueSource
{
- protected internal readonly ValueSource source;
- protected internal readonly float slope;
- protected internal readonly float intercept;
+ protected readonly ValueSource source;
+ protected readonly float slope;
+ protected readonly float intercept;
public LinearFloatFunction(ValueSource source, float slope, float intercept)
{
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/LongFieldSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/LongFieldSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/LongFieldSource.cs
index 13c934a..bae2098 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/LongFieldSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/LongFieldSource.cs
@@ -30,7 +30,6 @@ namespace Lucene.Net.Queries.Function.ValueSources
/// </summary>
public class LongFieldSource : FieldCacheSource
{
-
protected readonly FieldCache.ILongParser parser;
public LongFieldSource(string field)
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/MultiBoolFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/MultiBoolFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/MultiBoolFunction.cs
index 8a1382a..e2fe91b 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/MultiBoolFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/MultiBoolFunction.cs
@@ -32,7 +32,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
{
protected readonly IList<ValueSource> sources;
- protected MultiBoolFunction(IList<ValueSource> sources)
+ public MultiBoolFunction(IList<ValueSource> sources)
{
this.sources = sources;
}
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/MultiFloatFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/MultiFloatFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/MultiFloatFunction.cs
index f142d3c..d65f4e3 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/MultiFloatFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/MultiFloatFunction.cs
@@ -30,9 +30,9 @@ namespace Lucene.Net.Queries.Function.ValueSources
/// </summary>
public abstract class MultiFloatFunction : ValueSource
{
- protected internal readonly ValueSource[] sources;
+ protected readonly ValueSource[] sources;
- protected MultiFloatFunction(ValueSource[] sources)
+ public MultiFloatFunction(ValueSource[] sources)
{
this.sources = sources;
}
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/MultiFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/MultiFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/MultiFunction.cs
index 76cac2c..eb3c679 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/MultiFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/MultiFunction.cs
@@ -28,7 +28,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
/// </summary>
public abstract class MultiFunction : ValueSource
{
- protected internal readonly IList<ValueSource> sources;
+ protected readonly IList<ValueSource> sources;
protected MultiFunction(IList<ValueSource> sources)
{
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/NormValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/NormValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/NormValueSource.cs
index 0deca56..0e66629 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/NormValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/NormValueSource.cs
@@ -33,7 +33,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
/// </summary>
public class NormValueSource : ValueSource
{
- protected internal readonly string field;
+ protected readonly string field;
public NormValueSource(string field)
{
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/RangeMapFloatFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/RangeMapFloatFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/RangeMapFloatFunction.cs
index e7f38ef..d065c22 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/RangeMapFloatFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/RangeMapFloatFunction.cs
@@ -122,7 +122,11 @@ namespace Lucene.Net.Queries.Function.ValueSources
var other = o as RangeMapFloatFunction;
if (other == null)
return false;
- return this.min == other.min && this.max == other.max && this.target.Equals(other.target) && this.source.Equals(other.source) && (this.defaultVal == other.defaultVal || (this.defaultVal != null && this.defaultVal.Equals(other.defaultVal)));
+ return this.min == other.min
+ && this.max == other.max
+ && this.target.Equals(other.target)
+ && this.source.Equals(other.source)
+ && (this.defaultVal == other.defaultVal || (this.defaultVal != null && this.defaultVal.Equals(other.defaultVal)));
}
}
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/ReciprocalFloatFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/ReciprocalFloatFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/ReciprocalFloatFunction.cs
index 31c12cc..1401788 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/ReciprocalFloatFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/ReciprocalFloatFunction.cs
@@ -46,10 +46,10 @@ namespace Lucene.Net.Queries.Function.ValueSources
/// </seealso>
public class ReciprocalFloatFunction : ValueSource
{
- protected internal readonly ValueSource source;
- protected internal readonly float m;
- protected internal readonly float a;
- protected internal readonly float b;
+ protected readonly ValueSource source;
+ protected readonly float m;
+ protected readonly float a;
+ protected readonly float b;
/// <summary>
/// f(source) = a/(m*float(source)+b)
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/ScaleFloatFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/ScaleFloatFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/ScaleFloatFunction.cs
index f5226bb..d322f90 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/ScaleFloatFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/ScaleFloatFunction.cs
@@ -38,9 +38,9 @@ namespace Lucene.Net.Queries.Function.ValueSources
/// </summary>
public class ScaleFloatFunction : ValueSource
{
- protected internal readonly ValueSource source;
- protected internal readonly float min;
- protected internal readonly float max;
+ protected readonly ValueSource source;
+ protected readonly float min;
+ protected readonly float max;
public ScaleFloatFunction(ValueSource source, float min, float max)
{
@@ -56,8 +56,8 @@ namespace Lucene.Net.Queries.Function.ValueSources
private class ScaleInfo
{
- internal float minVal;
- internal float maxVal;
+ internal float minVal; // LUCENENET TODO: Make property
+ internal float maxVal; // LUCENENET TODO: Make property
}
private ScaleInfo CreateScaleInfo(IDictionary context, AtomicReaderContext readerContext)
@@ -169,7 +169,9 @@ namespace Lucene.Net.Queries.Function.ValueSources
var other = o as ScaleFloatFunction;
if (other == null)
return false;
- return this.min == other.min && this.max == other.max && this.source.Equals(other.source);
+ return this.min == other.min
+ && this.max == other.max
+ && this.source.Equals(other.source);
}
}
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/ShortFieldSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/ShortFieldSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/ShortFieldSource.cs
index ae4580a..c3bda02 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/ShortFieldSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/ShortFieldSource.cs
@@ -31,7 +31,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
[Obsolete]
public class ShortFieldSource : FieldCacheSource
{
- readonly FieldCache.IShortParser parser;
+ private readonly FieldCache.IShortParser parser;
public ShortFieldSource(string field)
: this(field, null)
@@ -105,7 +105,6 @@ namespace Lucene.Net.Queries.Function.ValueSources
{
return outerInstance.GetDescription() + '=' + ShortVal(doc);
}
-
}
public override bool Equals(object o)
@@ -113,7 +112,9 @@ namespace Lucene.Net.Queries.Function.ValueSources
var other = o as ShortFieldSource;
if (other == null)
return false;
- return base.Equals(other) && (parser == null ? other.parser == null : parser.GetType() == other.parser.GetType());
+ return base.Equals(other)
+ && (parser == null ? other.parser == null :
+ parser.GetType() == other.parser.GetType());
}
public override int GetHashCode()
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/SimpleBoolFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/SimpleBoolFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/SimpleBoolFunction.cs
index 7649294..47b0549 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/SimpleBoolFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/SimpleBoolFunction.cs
@@ -30,9 +30,9 @@ namespace Lucene.Net.Queries.Function.ValueSources
/// </summary>
public abstract class SimpleBoolFunction : BoolFunction
{
- protected internal readonly ValueSource source;
+ protected readonly ValueSource source;
- protected SimpleBoolFunction(ValueSource source)
+ public SimpleBoolFunction(ValueSource source)
{
this.source = source;
}
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/SimpleFloatFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/SimpleFloatFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/SimpleFloatFunction.cs
index f32a101..9725280 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/SimpleFloatFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/SimpleFloatFunction.cs
@@ -23,10 +23,9 @@ namespace Lucene.Net.Queries.Function.ValueSources
/// <summary>
/// A simple float function with a single argument
/// </summary>
- // LUCENENET TODO: Rename SimpleSingleFunction ?
public abstract class SimpleFloatFunction : SingleFunction
{
- protected SimpleFloatFunction(ValueSource source)
+ public SimpleFloatFunction(ValueSource source)
: base(source)
{
}
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/SingleFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/SingleFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/SingleFunction.cs
index b1a22c9..3d94ab1 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/SingleFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/SingleFunction.cs
@@ -24,14 +24,14 @@ namespace Lucene.Net.Queries.Function.ValueSources
/// </summary>
public abstract class SingleFunction : ValueSource
{
- protected internal readonly ValueSource source;
+ protected readonly ValueSource source;
- protected SingleFunction(ValueSource source)
+ public SingleFunction(ValueSource source)
{
this.source = source;
}
- protected internal abstract string Name { get; }
+ protected abstract string Name { get; }
public override string GetDescription()
{
@@ -48,7 +48,8 @@ namespace Lucene.Net.Queries.Function.ValueSources
var other = o as SingleFunction;
if (other == null)
return false;
- return Name.Equals(other.Name) && source.Equals(other.source);
+ return Name.Equals(other.Name)
+ && source.Equals(other.source);
}
public override void CreateWeight(IDictionary context, IndexSearcher searcher)
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/SumFloatFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/SumFloatFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/SumFloatFunction.cs
index 451cca4..280612f 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/SumFloatFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/SumFloatFunction.cs
@@ -19,18 +19,16 @@ using System.Linq;
namespace Lucene.Net.Queries.Function.ValueSources
{
-
-
/// <summary>
/// <code>SumFloatFunction</code> returns the sum of it's components.
/// </summary>
- // LUCENENET TODO: Rename (private)
public class SumFloatFunction : MultiFloatFunction
{
public SumFloatFunction(ValueSource[] sources)
: base(sources)
{
}
+
protected override string Name
{
get { return "sum"; }
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/SumTotalTermFreqValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/SumTotalTermFreqValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/SumTotalTermFreqValueSource.cs
index e8f3c18..2b04265 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/SumTotalTermFreqValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/SumTotalTermFreqValueSource.cs
@@ -30,7 +30,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
/// </summary>
public class SumTotalTermFreqValueSource : ValueSource
{
- protected internal readonly string indexedField;
+ protected readonly string indexedField;
public SumTotalTermFreqValueSource(string indexedField)
{
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Function/ValueSources/VectorValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/VectorValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/VectorValueSource.cs
index 98e8292..3146988 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/VectorValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/VectorValueSource.cs
@@ -29,7 +29,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
//Not crazy about the name, but...
public class VectorValueSource : MultiValueSource
{
- protected internal readonly IList<ValueSource> sources;
+ protected readonly IList<ValueSource> sources;
public VectorValueSource(IList<ValueSource> sources)
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Mlt/MoreLikeThis.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Mlt/MoreLikeThis.cs b/src/Lucene.Net.Queries/Mlt/MoreLikeThis.cs
index 24dd148..f728a81 100644
--- a/src/Lucene.Net.Queries/Mlt/MoreLikeThis.cs
+++ b/src/Lucene.Net.Queries/Mlt/MoreLikeThis.cs
@@ -23,6 +23,7 @@ using Lucene.Net.Documents;
using Lucene.Net.Index;
using Lucene.Net.Search;
using Lucene.Net.Search.Similarities;
+using Lucene.Net.Support;
using Lucene.Net.Util;
using Reader = System.IO.TextReader;
@@ -131,21 +132,21 @@ namespace Lucene.Net.Queries.Mlt
/// Default maximum number of tokens to parse in each example doc field that is not stored with TermVector support.
/// </summary>
/// <seealso cref= #getMaxNumTokensParsed </seealso>
- public const int DEFAULT_MAX_NUM_TOKENS_PARSED = 5000;
+ public static readonly int DEFAULT_MAX_NUM_TOKENS_PARSED = 5000;
/// <summary>
/// Ignore terms with less than this frequency in the source doc.
/// </summary>
/// <seealso cref= #getMinTermFreq </seealso>
/// <seealso cref= #setMinTermFreq </seealso>
- public const int DEFAULT_MIN_TERM_FREQ = 2;
+ public static readonly int DEFAULT_MIN_TERM_FREQ = 2;
/// <summary>
/// Ignore words which do not occur in at least this many docs.
/// </summary>
/// <seealso cref= #getMinDocFreq </seealso>
/// <seealso cref= #setMinDocFreq </seealso>
- public const int DEFAULT_MIN_DOC_FREQ = 5;
+ public static readonly int DEFAULT_MIN_DOC_FREQ = 5;
/// <summary>
/// Ignore words which occur in more than this many docs.
@@ -160,7 +161,7 @@ namespace Lucene.Net.Queries.Mlt
/// </summary>
/// <seealso cref= #isBoost </seealso>
/// <seealso cref= #setBoost </seealso>
- public const bool DEFAULT_BOOST = false;
+ public static readonly bool DEFAULT_BOOST = false;
/// <summary>
/// Default field names. Null is used to specify that the field names should be looked
@@ -173,14 +174,14 @@ namespace Lucene.Net.Queries.Mlt
/// </summary>
/// <seealso cref= #getMinWordLen </seealso>
/// <seealso cref= #setMinWordLen </seealso>
- public const int DEFAULT_MIN_WORD_LENGTH = 0;
+ public static readonly int DEFAULT_MIN_WORD_LENGTH = 0;
/// <summary>
/// Ignore words greater than this length or if 0 then this has no effect.
/// </summary>
/// <seealso cref= #getMaxWordLen </seealso>
/// <seealso cref= #setMaxWordLen </seealso>
- public const int DEFAULT_MAX_WORD_LENGTH = 0;
+ public static readonly int DEFAULT_MAX_WORD_LENGTH = 0;
/// <summary>
/// Default set of stopwords.
@@ -188,7 +189,7 @@ namespace Lucene.Net.Queries.Mlt
/// </summary>
/// <seealso cref= #setStopWords </seealso>
/// <seealso cref= #getStopWords </seealso>
- public const ISet<string> DEFAULT_STOP_WORDS = null;
+ public static readonly ISet<string> DEFAULT_STOP_WORDS = null;
/// <summary>
/// Return a Query with no more than this many terms.
@@ -196,7 +197,12 @@ namespace Lucene.Net.Queries.Mlt
/// <seealso cref= BooleanQuery#getMaxClauseCount </seealso>
/// <seealso cref= #getMaxQueryTerms </seealso>
/// <seealso cref= #setMaxQueryTerms </seealso>
- public const int DEFAULT_MAX_QUERY_TERMS = 25;
+ public static readonly int DEFAULT_MAX_QUERY_TERMS = 25;
+
+ // LUCNENENET NOTE: The following fields were made into auto-implemented properties:
+ // analyzer, minTermFreq, minDocFreq, maxDocFreq, boost,
+ // fieldNames, maxNumTokensParsed, minWordLen, maxWordLen,
+ // maxQueryTerms, similarity
/// <summary>
/// IndexReader to use
@@ -238,8 +244,9 @@ namespace Lucene.Net.Queries.Mlt
{
this.ir = ir;
this.Similarity = sim;
- StopWords = DEFAULT_STOP_WORDS;
+ // LUCENENET specific: Set Defaults
+ StopWords = DEFAULT_STOP_WORDS;
MinTermFreq = DEFAULT_MIN_TERM_FREQ;
MinDocFreq = DEFAULT_MIN_DOC_FREQ;
MaxDocFreq = DEFAULT_MAX_DOC_FREQ;
@@ -251,7 +258,9 @@ namespace Lucene.Net.Queries.Mlt
MaxQueryTerms = DEFAULT_MAX_QUERY_TERMS;
}
-
+ /// <summary>
+ /// For idf() calculations.
+ /// </summary>
public TFIDFSimilarity Similarity { get; set; }
@@ -296,7 +305,7 @@ namespace Lucene.Net.Queries.Mlt
/// </summary>
/// <param name="maxPercentage"> the maximum percentage of documents (0-100) that a term may appear
/// in to be still considered relevant </param>
- public int MaxDocFreqPct
+ public int MaxDocFreqPct // LUCENENET TODO: Change to SetMaxDocFreqPct(int maxPercentage)
{
set
{
@@ -311,7 +320,7 @@ namespace Lucene.Net.Queries.Mlt
/// </summary>
/// <returns> whether to boost terms in query based on "score" or not. </returns>
/// <seealso cref= #setBoost </seealso>
- public bool Boost { get; set; }
+ public bool Boost { get; set; } // LUCENENET TODO: Rename ApplyBoost ? IsBoost seems a bit odd
/// <summary>
@@ -319,6 +328,7 @@ namespace Lucene.Net.Queries.Mlt
/// The default field names that will be used is <seealso cref="#DEFAULT_FIELD_NAMES"/>.
/// </summary>
/// <returns> the field names that will be used when generating the 'More Like This' query. </returns>
+ [WritableArray]
public string[] FieldNames { get; set; }
@@ -391,7 +401,7 @@ namespace Lucene.Net.Queries.Mlt
/// <summary>
/// Create the More like query from a PriorityQueue
/// </summary>
- private Query CreateQuery(PriorityQueue<object[]> q)
+ private Query CreateQuery(Util.PriorityQueue<object[]> q)
{
BooleanQuery query = new BooleanQuery();
object cur;
@@ -437,9 +447,8 @@ namespace Lucene.Net.Queries.Mlt
/// Create a PriorityQueue from a word->tf map.
/// </summary>
/// <param name="words"> a map of words keyed on the word(String) with Int objects as the values. </param>
- //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
- //ORIGINAL LINE: private org.apache.lucene.util.PriorityQueue<Object[]> createQueue(Map<String, Int> words) throws IOException
- private PriorityQueue<object[]> createQueue(IDictionary<string, Int> words)
+ /// <exception cref="IOException"/>
+ private Util.PriorityQueue<object[]> createQueue(IDictionary<string, Int> words) // LUCENENET TODO: Rename CreateQueue
{
// have collected all words in doc and their freqs
int numDocs = ir.NumDocs;
@@ -490,7 +499,7 @@ namespace Lucene.Net.Queries.Mlt
/// <summary>
/// Describe the parameters that control how the "more like this" query is formed.
/// </summary>
- public string describeParams()
+ public string describeParams() // LUCENENET TODO: Rename DescribeParams()
{
StringBuilder sb = new StringBuilder();
sb.Append("\t").Append("maxQueryTerms : ").Append(MaxQueryTerms).Append("\n");
@@ -514,18 +523,13 @@ namespace Lucene.Net.Queries.Mlt
/// Find words for a more-like-this query former.
/// </summary>
/// <param name="docNum"> the id of the lucene document from which to find terms </param>
- //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
- //ORIGINAL LINE: public org.apache.lucene.util.PriorityQueue<Object[]> retrieveTerms(int docNum) throws IOException
- public PriorityQueue<object[]> RetrieveTerms(int docNum)
+ /// <exception cref="IOException"/>
+ public Util.PriorityQueue<object[]> RetrieveTerms(int docNum)
{
IDictionary<string, Int> termFreqMap = new Dictionary<string, Int>();
foreach (string fieldName in FieldNames)
{
- //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
- //ORIGINAL LINE: final org.apache.lucene.index.Fields vectors = ir.getTermVectors(docNum);
Fields vectors = ir.GetTermVectors(docNum);
- //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
- //ORIGINAL LINE: final org.apache.lucene.index.Terms vector;
Terms vector;
if (vectors != null)
{
@@ -686,10 +690,9 @@ namespace Lucene.Net.Queries.Mlt
/// <param name="r"> the reader that has the content of the document </param>
/// <param name="fieldName"> field passed to the analyzer to use when analyzing the content </param>
/// <returns> the most interesting words in the document ordered by score, with the highest scoring, or best entry, first </returns>
+ /// <exception cref="IOException"/>
/// <seealso cref= #retrieveInterestingTerms </seealso>
- //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
- //ORIGINAL LINE: public org.apache.lucene.util.PriorityQueue<Object[]> retrieveTerms(Reader r, String fieldName) throws IOException
- public PriorityQueue<object[]> RetrieveTerms(Reader r, string fieldName)
+ public Util.PriorityQueue<object[]> RetrieveTerms(Reader r, string fieldName)
{
IDictionary<string, Int> words = new Dictionary<string, Int>();
AddTermFrequencies(r, words, fieldName);
@@ -724,7 +727,7 @@ namespace Lucene.Net.Queries.Mlt
public string[] RetrieveInterestingTerms(Reader r, string fieldName)
{
var al = new List<string>(MaxQueryTerms);
- PriorityQueue<object[]> pq = RetrieveTerms(r, fieldName);
+ Util.PriorityQueue<object[]> pq = RetrieveTerms(r, fieldName);
object cur;
int lim = MaxQueryTerms; // have to be careful, retrieveTerms returns all words but that's probably not useful to our caller...
// we just want to return the top words
@@ -739,7 +742,7 @@ namespace Lucene.Net.Queries.Mlt
/// <summary>
/// PriorityQueue that orders words by score.
/// </summary>
- private class FreqQ : PriorityQueue<object[]>
+ private class FreqQ : Util.PriorityQueue<object[]>
{
internal FreqQ(int s)
: base(s)
@@ -767,5 +770,4 @@ namespace Lucene.Net.Queries.Mlt
}
}
}
-
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/Mlt/MoreLikeThisQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Mlt/MoreLikeThisQuery.cs b/src/Lucene.Net.Queries/Mlt/MoreLikeThisQuery.cs
index a7cbd50..af91546 100644
--- a/src/Lucene.Net.Queries/Mlt/MoreLikeThisQuery.cs
+++ b/src/Lucene.Net.Queries/Mlt/MoreLikeThisQuery.cs
@@ -35,7 +35,15 @@ namespace Lucene.Net.Queries.Mlt
/// </summary>
public class MoreLikeThisQuery : Query
{
+ private string likeText;
+ private string[] moreLikeFields;
+ private Analyzer analyzer;
private readonly string fieldName;
+ private float percentTermsToMatch = 0.3f;
+ private int minTermFrequency = 1;
+ private int maxQueryTerms = 5;
+ private ISet<string> stopWords = null;
+ private int minDocFreq = -1;
/// <param name="moreLikeFields"> fields used for similarity measure </param>
public MoreLikeThisQuery(string likeText, string[] moreLikeFields, Analyzer analyzer, string fieldName)
@@ -44,28 +52,27 @@ namespace Lucene.Net.Queries.Mlt
this.MoreLikeFields = moreLikeFields;
this.Analyzer = analyzer;
this.fieldName = fieldName;
- StopWords = null;
-
- PercentTermsToMatch = 0.3f;
- MinTermFrequency = 1;
- MaxQueryTerms = 5;
- MinDocFreq = -1;
}
public override Query Rewrite(IndexReader reader)
{
- var mlt = new MoreLikeThis(reader) { FieldNames = MoreLikeFields, Analyzer = Analyzer, MinTermFreq = MinTermFrequency };
+ var mlt = new MoreLikeThis(reader)
+ {
+ FieldNames = moreLikeFields,
+ Analyzer = analyzer,
+ MinTermFreq = minTermFrequency
+ };
if (MinDocFreq >= 0)
{
- mlt.MinDocFreq = MinDocFreq;
+ mlt.MinDocFreq = minDocFreq;
}
- mlt.MaxQueryTerms = MaxQueryTerms;
- mlt.StopWords = StopWords;
- var bq = (BooleanQuery)mlt.Like(new StringReader(LikeText), fieldName);
+ mlt.MaxQueryTerms = maxQueryTerms;
+ mlt.StopWords = stopWords;
+ var bq = (BooleanQuery)mlt.Like(new StringReader(likeText), fieldName);
var clauses = bq.GetClauses();
//make at least half the terms match
- bq.MinimumNumberShouldMatch = (int)(clauses.Length * PercentTermsToMatch);
+ bq.MinimumNumberShouldMatch = (int)(clauses.Length * percentTermsToMatch);
return bq;
}
@@ -77,35 +84,68 @@ namespace Lucene.Net.Queries.Mlt
return "like:" + LikeText;
}
- public float PercentTermsToMatch { get; set; }
+ public virtual float PercentTermsToMatch
+ {
+ get { return percentTermsToMatch; }
+ set { percentTermsToMatch = value; }
+ }
- public Analyzer Analyzer { get; set; }
+ public virtual Analyzer Analyzer
+ {
+ get { return analyzer; }
+ set { analyzer = value; }
+ }
- public string LikeText { get; set; }
+ public virtual string LikeText
+ {
+ get { return likeText; }
+ set { likeText = value; }
+ }
- public int MaxQueryTerms { get; set; }
+ public virtual int MaxQueryTerms
+ {
+ get { return maxQueryTerms; }
+ set { maxQueryTerms = value; }
+ }
- public int MinTermFrequency { get; set; }
+ public virtual int MinTermFrequency
+ {
+ get { return minTermFrequency; }
+ set { minTermFrequency = value; }
+ }
- public string[] MoreLikeFields { get; set; }
+ [WritableArray]
+ public virtual string[] MoreLikeFields
+ {
+ get { return moreLikeFields; }
+ set { moreLikeFields = value; }
+ }
- public ISet<string> StopWords { get; set; }
+ public virtual ISet<string> StopWords
+ {
+ get { return stopWords; }
+ set { stopWords = value; }
+ }
- public int MinDocFreq { get; set; }
+ public virtual int MinDocFreq
+ {
+ get { return minDocFreq; }
+ set { minDocFreq = value; }
+ }
public override int GetHashCode()
{
const int prime = 31;
int result = base.GetHashCode();
- result = prime * result + ((Analyzer == null) ? 0 : Analyzer.GetHashCode());
+ result = prime * result + ((analyzer == null) ? 0 : analyzer.GetHashCode());
result = prime * result + ((fieldName == null) ? 0 : fieldName.GetHashCode());
- result = prime * result + ((LikeText == null) ? 0 : LikeText.GetHashCode());
- result = prime * result + MaxQueryTerms;
- result = prime * result + MinDocFreq;
- result = prime * result + MinTermFrequency;
- result = prime * result + Arrays.GetHashCode(MoreLikeFields);
- result = prime * result + Number.FloatToIntBits(PercentTermsToMatch);
- result = prime * result + ((StopWords == null) ? 0 : StopWords.GetHashCode());
+ result = prime * result + ((likeText == null) ? 0 : likeText.GetHashCode());
+ result = prime * result + maxQueryTerms;
+ result = prime * result + minDocFreq;
+ result = prime * result + minTermFrequency;
+ result = prime * result + Arrays.GetHashCode(moreLikeFields);
+ result = prime * result + Number.FloatToIntBits(percentTermsToMatch);
+ result = prime * result + ((stopWords == null) ? 0 : stopWords.GetValueHashCode());
return result;
}
@@ -124,14 +164,14 @@ namespace Lucene.Net.Queries.Mlt
return false;
}
var other = (MoreLikeThisQuery)obj;
- if (Analyzer == null)
+ if (analyzer == null)
{
- if (other.Analyzer != null)
+ if (other.analyzer != null)
{
return false;
}
}
- else if (!Analyzer.Equals(other.Analyzer))
+ else if (!analyzer.Equals(other.analyzer))
{
return false;
}
@@ -146,45 +186,45 @@ namespace Lucene.Net.Queries.Mlt
{
return false;
}
- if (LikeText == null)
+ if (likeText == null)
{
- if (other.LikeText != null)
+ if (other.likeText != null)
{
return false;
}
}
- else if (!LikeText.Equals(other.LikeText))
+ else if (!likeText.Equals(other.likeText))
{
return false;
}
- if (MaxQueryTerms != other.MaxQueryTerms)
+ if (maxQueryTerms != other.maxQueryTerms)
{
return false;
}
- if (MinDocFreq != other.MinDocFreq)
+ if (minDocFreq != other.minDocFreq)
{
return false;
}
- if (MinTermFrequency != other.MinTermFrequency)
+ if (minTermFrequency != other.minTermFrequency)
{
return false;
}
- if (!Arrays.Equals(MoreLikeFields, other.MoreLikeFields))
+ if (!Arrays.Equals(moreLikeFields, other.moreLikeFields))
{
return false;
}
- if (Number.FloatToIntBits(PercentTermsToMatch) != Number.FloatToIntBits(other.PercentTermsToMatch))
+ if (Number.FloatToIntBits(percentTermsToMatch) != Number.FloatToIntBits(other.percentTermsToMatch))
{
return false;
}
- if (StopWords == null)
+ if (stopWords == null)
{
- if (other.StopWords != null)
+ if (other.stopWords != null)
{
return false;
}
}
- else if (!StopWords.Equals(other.StopWords))
+ else if (!stopWords.Equals(other.stopWords))
{
return false;
}
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/TermFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/TermFilter.cs b/src/Lucene.Net.Queries/TermFilter.cs
index 74d3353..3f5e394 100644
--- a/src/Lucene.Net.Queries/TermFilter.cs
+++ b/src/Lucene.Net.Queries/TermFilter.cs
@@ -26,7 +26,6 @@ namespace Lucene.Net.Queries
/// </summary>
public sealed class TermFilter : Filter
{
-
private readonly Term term;
/// <param name="term"> The term documents need to have in order to be a match for this filter. </param>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fc457f59/src/Lucene.Net.Queries/TermsFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/TermsFilter.cs b/src/Lucene.Net.Queries/TermsFilter.cs
index 0b944d4..b70af95 100644
--- a/src/Lucene.Net.Queries/TermsFilter.cs
+++ b/src/Lucene.Net.Queries/TermsFilter.cs
@@ -35,7 +35,6 @@ namespace Lucene.Net.Queries
/// </summary>
public sealed class TermsFilter : Filter
{
-
/*
* this class is often used for large number of terms in a single field.
* to optimize for this case and to be filter-cache friendly we
@@ -218,7 +217,6 @@ namespace Lucene.Net.Queries
this.termsBytes = ArrayUtil.Shrink(serializedTerms, lastEndOffset);
this.termsAndFields = termsAndFields.ToArray();
this.hashCode_Renamed = hash;
-
}
public override DocIdSet GetDocIdSet(AtomicReaderContext context, IBits acceptDocs)
@@ -394,11 +392,11 @@ namespace Lucene.Net.Queries
public abstract BytesRef Next();
- protected FieldAndTermEnum()
+ public FieldAndTermEnum()
{
}
- protected FieldAndTermEnum(string field)
+ public FieldAndTermEnum(string field)
{
this.field = field;
}
[4/4] lucenenet git commit: Lucene.Net.Queries: usings and license
headers
Posted by ni...@apache.org.
Lucene.Net.Queries: usings and license headers
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/89171dcc
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/89171dcc
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/89171dcc
Branch: refs/heads/api-work
Commit: 89171dccdde7b999084b61eff76015e8a45d8157
Parents: fc457f5
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Fri Jan 27 11:18:45 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Fri Jan 27 11:18:45 2017 +0700
----------------------------------------------------------------------
src/Lucene.Net.Queries/BooleanFilter.cs | 10 ++---
src/Lucene.Net.Queries/BoostingQuery.cs | 1 -
src/Lucene.Net.Queries/ChainedFilter.cs | 6 +--
src/Lucene.Net.Queries/CommonTermsQuery.cs | 13 +++---
src/Lucene.Net.Queries/CustomScoreProvider.cs | 6 +--
src/Lucene.Net.Queries/CustomScoreQuery.cs | 7 ++--
src/Lucene.Net.Queries/FilterClause.cs | 2 +-
src/Lucene.Net.Queries/Function/BoostedQuery.cs | 11 +++--
.../Function/DocValues/BoolDocValues.cs | 2 +-
.../DocValues/DocTermsIndexDocValues.cs | 37 ++++++++---------
.../Function/DocValues/DoubleDocValues.cs | 6 +--
.../Function/DocValues/FloatDocValues.cs | 6 +--
.../Function/DocValues/IntDocValues.cs | 6 +--
.../Function/DocValues/LongDocValues.cs | 6 +--
.../Function/DocValues/StrDocValues.cs | 2 +-
.../Function/FunctionQuery.cs | 8 ++--
.../Function/FunctionValues.cs | 1 -
src/Lucene.Net.Queries/Function/ValueSource.cs | 9 ++---
.../Function/ValueSourceScorer.cs | 2 +-
.../Function/ValueSources/BoolFunction.cs | 36 ++++++++---------
.../Function/ValueSources/ByteFieldSource.cs | 7 ++--
.../ValueSources/BytesRefFieldSource.cs | 7 ++--
.../Function/ValueSources/ConstNumberSource.cs | 37 ++++++++---------
.../Function/ValueSources/ConstValueSource.cs | 37 ++++++++---------
.../Function/ValueSources/DefFunction.cs | 7 ++--
.../Function/ValueSources/DivFloatFunction.cs | 36 ++++++++---------
.../Function/ValueSources/DocFreqValueSource.cs | 39 +++++++++---------
.../ValueSources/DoubleConstValueSource.cs | 37 ++++++++---------
.../Function/ValueSources/DoubleFieldSource.cs | 37 ++++++++---------
.../Function/ValueSources/DualFloatFunction.cs | 37 ++++++++---------
.../Function/ValueSources/EnumFieldSource.cs | 12 +++---
.../Function/ValueSources/FieldCacheSource.cs | 36 ++++++++---------
.../Function/ValueSources/FloatFieldSource.cs | 37 ++++++++---------
.../Function/ValueSources/IDFValueSource.cs | 37 ++++++++---------
.../Function/ValueSources/IfFunction.cs | 37 ++++++++---------
.../Function/ValueSources/IntFieldSource.cs | 39 +++++++++---------
.../ValueSources/JoinDocFreqValueSource.cs | 41 +++++++++----------
.../ValueSources/LinearFloatFunction.cs | 37 ++++++++---------
.../Function/ValueSources/LiteralValueSource.cs | 5 ++-
.../Function/ValueSources/LongFieldSource.cs | 39 +++++++++---------
.../Function/ValueSources/MaxDocValueSource.cs | 37 ++++++++---------
.../Function/ValueSources/MaxFloatFunction.cs | 36 ++++++++---------
.../Function/ValueSources/MinFloatFunction.cs | 36 ++++++++---------
.../Function/ValueSources/MultiBoolFunction.cs | 39 +++++++++---------
.../Function/ValueSources/MultiFloatFunction.cs | 7 ++--
.../Function/ValueSources/MultiFunction.cs | 7 ++--
.../Function/ValueSources/MultiValueSource.cs | 1 -
.../Function/ValueSources/NormValueSource.cs | 37 ++++++++---------
.../Function/ValueSources/NumDocsValueSource.cs | 35 ++++++++--------
.../Function/ValueSources/OrdFieldSource.cs | 37 ++++++++---------
.../Function/ValueSources/PowFloatFunction.cs | 35 ++++++++--------
.../ValueSources/ProductFloatFunction.cs | 36 ++++++++---------
.../Function/ValueSources/QueryValueSource.cs | 41 +++++++++----------
.../ValueSources/RangeMapFloatFunction.cs | 37 ++++++++---------
.../ValueSources/ReciprocalFloatFunction.cs | 39 +++++++++---------
.../ValueSources/ReverseOrdFieldSource.cs | 37 ++++++++---------
.../Function/ValueSources/ScaleFloatFunction.cs | 38 +++++++++---------
.../Function/ValueSources/ShortFieldSource.cs | 8 ++--
.../Function/ValueSources/SimpleBoolFunction.cs | 37 ++++++++---------
.../ValueSources/SimpleFloatFunction.cs | 37 ++++++++---------
.../Function/ValueSources/SingleFunction.cs | 35 ++++++++--------
.../Function/ValueSources/SumFloatFunction.cs | 36 ++++++++---------
.../ValueSources/SumTotalTermFreqValueSource.cs | 37 ++++++++---------
.../Function/ValueSources/TFValueSource.cs | 11 +++--
.../ValueSources/TermFreqValueSource.cs | 41 +++++++++----------
.../ValueSources/TotalTermFreqValueSource.cs | 37 ++++++++---------
.../Function/ValueSources/VectorValueSource.cs | 7 ++--
src/Lucene.Net.Queries/Mlt/MoreLikeThis.cs | 42 ++++++++++----------
src/Lucene.Net.Queries/Mlt/MoreLikeThisQuery.cs | 5 +--
src/Lucene.Net.Queries/TermFilter.cs | 2 +-
src/Lucene.Net.Queries/TermsFilter.cs | 12 +++---
71 files changed, 841 insertions(+), 819 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/BooleanFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/BooleanFilter.cs b/src/Lucene.Net.Queries/BooleanFilter.cs
index d31da33..950d572 100644
--- a/src/Lucene.Net.Queries/BooleanFilter.cs
+++ b/src/Lucene.Net.Queries/BooleanFilter.cs
@@ -1,14 +1,13 @@
-\ufeffusing System.Collections;
+\ufeffusing Lucene.Net.Index;
+using Lucene.Net.Search;
+using Lucene.Net.Util;
+using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
-using Lucene.Net.Index;
-using Lucene.Net.Search;
-using Lucene.Net.Util;
namespace Lucene.Net.Queries
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -25,6 +24,7 @@ namespace Lucene.Net.Queries
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// A container Filter that allows Boolean composition of Filters.
/// Filters are allocated into one of three logical constructs;
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/BoostingQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/BoostingQuery.cs b/src/Lucene.Net.Queries/BoostingQuery.cs
index b53da71..d74870a 100644
--- a/src/Lucene.Net.Queries/BoostingQuery.cs
+++ b/src/Lucene.Net.Queries/BoostingQuery.cs
@@ -4,7 +4,6 @@ using Lucene.Net.Support;
namespace Lucene.Net.Queries
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/ChainedFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/ChainedFilter.cs b/src/Lucene.Net.Queries/ChainedFilter.cs
index ea4f7d7..8f85d63 100644
--- a/src/Lucene.Net.Queries/ChainedFilter.cs
+++ b/src/Lucene.Net.Queries/ChainedFilter.cs
@@ -1,11 +1,10 @@
-\ufeffusing System.Text;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Search;
using Lucene.Net.Util;
+using System.Text;
namespace Lucene.Net.Queries
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -22,6 +21,7 @@ namespace Lucene.Net.Queries
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// <para>
/// Allows multiple <seealso cref="Filter"/>s to be chained.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/CommonTermsQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/CommonTermsQuery.cs b/src/Lucene.Net.Queries/CommonTermsQuery.cs
index cd60a0b..e0429ac 100644
--- a/src/Lucene.Net.Queries/CommonTermsQuery.cs
+++ b/src/Lucene.Net.Queries/CommonTermsQuery.cs
@@ -1,18 +1,16 @@
-\ufeffusing System;
+\ufeffusing Lucene.Net.Index;
+using Lucene.Net.Search;
+using Lucene.Net.Support;
+using Lucene.Net.Util;
+using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Linq;
using System.Text;
-using Lucene.Net.Index;
-using Lucene.Net.Search;
-using Lucene.Net.Search.Similarities;
-using Lucene.Net.Support;
-using Lucene.Net.Util;
namespace Lucene.Net.Queries
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -29,6 +27,7 @@ namespace Lucene.Net.Queries
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// A query that executes high-frequency terms in a optional sub-query to prevent
/// slow queries due to "common" terms like stopwords. This query
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/CustomScoreProvider.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/CustomScoreProvider.cs b/src/Lucene.Net.Queries/CustomScoreProvider.cs
index 7ff1b6e..4347d96 100644
--- a/src/Lucene.Net.Queries/CustomScoreProvider.cs
+++ b/src/Lucene.Net.Queries/CustomScoreProvider.cs
@@ -1,11 +1,9 @@
-\ufeffusing System.Linq;
-using Lucene.Net.Index;
-using Lucene.Net.Queries.Function;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Search;
+using System.Linq;
namespace Lucene.Net.Queries
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/CustomScoreQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/CustomScoreQuery.cs b/src/Lucene.Net.Queries/CustomScoreQuery.cs
index 3699d56..26b4a02 100644
--- a/src/Lucene.Net.Queries/CustomScoreQuery.cs
+++ b/src/Lucene.Net.Queries/CustomScoreQuery.cs
@@ -1,14 +1,13 @@
-\ufeffusing System.Collections.Generic;
-using System.Text;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function;
using Lucene.Net.Search;
using Lucene.Net.Support;
using Lucene.Net.Util;
+using System.Collections.Generic;
+using System.Text;
namespace Lucene.Net.Queries
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/FilterClause.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/FilterClause.cs b/src/Lucene.Net.Queries/FilterClause.cs
index 89bc8f3..0cbb370 100644
--- a/src/Lucene.Net.Queries/FilterClause.cs
+++ b/src/Lucene.Net.Queries/FilterClause.cs
@@ -2,7 +2,6 @@
namespace Lucene.Net.Queries
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -19,6 +18,7 @@ namespace Lucene.Net.Queries
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// A Filter that wrapped with an indication of how that filter
/// is used when composed with another filter.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/BoostedQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/BoostedQuery.cs b/src/Lucene.Net.Queries/Function/BoostedQuery.cs
index 8bfe86c..9efb4f6 100644
--- a/src/Lucene.Net.Queries/Function/BoostedQuery.cs
+++ b/src/Lucene.Net.Queries/Function/BoostedQuery.cs
@@ -1,15 +1,13 @@
-\ufeffusing System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Text;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Search;
using Lucene.Net.Support;
using Lucene.Net.Util;
+using System.Collections;
+using System.Collections.Generic;
+using System.Text;
namespace Lucene.Net.Queries.Function
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -26,6 +24,7 @@ namespace Lucene.Net.Queries.Function
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// Query that is boosted by a ValueSource
/// </summary>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/DocValues/BoolDocValues.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/DocValues/BoolDocValues.cs b/src/Lucene.Net.Queries/Function/DocValues/BoolDocValues.cs
index 5303cc4..05611e9 100644
--- a/src/Lucene.Net.Queries/Function/DocValues/BoolDocValues.cs
+++ b/src/Lucene.Net.Queries/Function/DocValues/BoolDocValues.cs
@@ -3,7 +3,6 @@ using Lucene.Net.Util.Mutable;
namespace Lucene.Net.Queries.Function.DocValues
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -20,6 +19,7 @@ namespace Lucene.Net.Queries.Function.DocValues
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// Abstract <seealso cref="FunctionValues"/> implementation which supports retrieving boolean values.
/// Implementations can control how the boolean values are loaded through <seealso cref="#BoolVal(int)"/>}
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/DocValues/DocTermsIndexDocValues.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/DocValues/DocTermsIndexDocValues.cs b/src/Lucene.Net.Queries/Function/DocValues/DocTermsIndexDocValues.cs
index f717faa..4cf5e94 100644
--- a/src/Lucene.Net.Queries/Function/DocValues/DocTermsIndexDocValues.cs
+++ b/src/Lucene.Net.Queries/Function/DocValues/DocTermsIndexDocValues.cs
@@ -1,27 +1,28 @@
-\ufeff/*
- * 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 System;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Search;
using Lucene.Net.Util;
using Lucene.Net.Util.Mutable;
+using System;
namespace Lucene.Net.Queries.Function.DocValues
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// Serves as base class for FunctionValues based on DocTermsIndex.
/// @lucene.internal
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/DocValues/DoubleDocValues.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/DocValues/DoubleDocValues.cs b/src/Lucene.Net.Queries/Function/DocValues/DoubleDocValues.cs
index 3267517..400681d 100644
--- a/src/Lucene.Net.Queries/Function/DocValues/DoubleDocValues.cs
+++ b/src/Lucene.Net.Queries/Function/DocValues/DoubleDocValues.cs
@@ -1,10 +1,9 @@
-\ufeffusing System;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Util.Mutable;
+using System;
namespace Lucene.Net.Queries.Function.DocValues
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -21,6 +20,7 @@ namespace Lucene.Net.Queries.Function.DocValues
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// Abstract <seealso cref="FunctionValues"/> implementation which supports retrieving double values.
/// Implementations can control how the double values are loaded through <seealso cref="#DoubleVal(int)"/>}
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/DocValues/FloatDocValues.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/DocValues/FloatDocValues.cs b/src/Lucene.Net.Queries/Function/DocValues/FloatDocValues.cs
index a7c3435..ab41ba0 100644
--- a/src/Lucene.Net.Queries/Function/DocValues/FloatDocValues.cs
+++ b/src/Lucene.Net.Queries/Function/DocValues/FloatDocValues.cs
@@ -1,9 +1,8 @@
-\ufeffusing System;
-using Lucene.Net.Util.Mutable;
+\ufeffusing Lucene.Net.Util.Mutable;
+using System;
namespace Lucene.Net.Queries.Function.DocValues
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -20,6 +19,7 @@ namespace Lucene.Net.Queries.Function.DocValues
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// Abstract <seealso cref="FunctionValues"/> implementation which supports retrieving float values.
/// Implementations can control how the float values are loaded through <seealso cref="#FloatVal(int)"/>}
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/DocValues/IntDocValues.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/DocValues/IntDocValues.cs b/src/Lucene.Net.Queries/Function/DocValues/IntDocValues.cs
index d3dea1d..a306656 100644
--- a/src/Lucene.Net.Queries/Function/DocValues/IntDocValues.cs
+++ b/src/Lucene.Net.Queries/Function/DocValues/IntDocValues.cs
@@ -1,10 +1,9 @@
-\ufeffusing System;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Util.Mutable;
+using System;
namespace Lucene.Net.Queries.Function.DocValues
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -21,6 +20,7 @@ namespace Lucene.Net.Queries.Function.DocValues
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// Abstract <seealso cref="FunctionValues"/> implementation which supports retrieving int values.
/// Implementations can control how the int values are loaded through <seealso cref="#IntVal(int)"/>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/DocValues/LongDocValues.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/DocValues/LongDocValues.cs b/src/Lucene.Net.Queries/Function/DocValues/LongDocValues.cs
index 8e42c78..6bf1813 100644
--- a/src/Lucene.Net.Queries/Function/DocValues/LongDocValues.cs
+++ b/src/Lucene.Net.Queries/Function/DocValues/LongDocValues.cs
@@ -1,10 +1,9 @@
-\ufeffusing System;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Util.Mutable;
+using System;
namespace Lucene.Net.Queries.Function.DocValues
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -21,6 +20,7 @@ namespace Lucene.Net.Queries.Function.DocValues
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// Abstract <seealso cref="FunctionValues"/> implementation which supports retrieving long values.
/// Implementations can control how the long values are loaded through <seealso cref="#LongVal(int)"/>}
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/DocValues/StrDocValues.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/DocValues/StrDocValues.cs b/src/Lucene.Net.Queries/Function/DocValues/StrDocValues.cs
index e6b1e52..8601f78 100644
--- a/src/Lucene.Net.Queries/Function/DocValues/StrDocValues.cs
+++ b/src/Lucene.Net.Queries/Function/DocValues/StrDocValues.cs
@@ -2,7 +2,6 @@
namespace Lucene.Net.Queries.Function.DocValues
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -19,6 +18,7 @@ namespace Lucene.Net.Queries.Function.DocValues
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// Abstract <seealso cref="FunctionValues"/> implementation which supports retrieving String values.
/// Implementations can control how the String values are loaded through <seealso cref="#StrVal(int)"/>}
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/FunctionQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/FunctionQuery.cs b/src/Lucene.Net.Queries/Function/FunctionQuery.cs
index f01c981..e3bfce3 100644
--- a/src/Lucene.Net.Queries/Function/FunctionQuery.cs
+++ b/src/Lucene.Net.Queries/Function/FunctionQuery.cs
@@ -1,13 +1,12 @@
-\ufeffusing System.Collections;
-using System.Collections.Generic;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Search;
using Lucene.Net.Support;
using Lucene.Net.Util;
+using System.Collections;
+using System.Collections.Generic;
namespace Lucene.Net.Queries.Function
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -24,6 +23,7 @@ namespace Lucene.Net.Queries.Function
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// Returns a score for each document based on a ValueSource,
/// often some function of the value of a field.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/FunctionValues.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/FunctionValues.cs b/src/Lucene.Net.Queries/Function/FunctionValues.cs
index fd0a431..b282657 100644
--- a/src/Lucene.Net.Queries/Function/FunctionValues.cs
+++ b/src/Lucene.Net.Queries/Function/FunctionValues.cs
@@ -6,7 +6,6 @@ using Lucene.Net.Util.Mutable;
namespace Lucene.Net.Queries.Function
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSource.cs
index 100e383..e76a288 100644
--- a/src/Lucene.Net.Queries/Function/ValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSource.cs
@@ -1,13 +1,11 @@
-\ufeffusing System;
-using System.Collections;
-using System.Collections.Generic;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Search;
using Lucene.Net.Support;
+using System;
+using System.Collections;
namespace Lucene.Net.Queries.Function
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -24,6 +22,7 @@ namespace Lucene.Net.Queries.Function
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// Instantiates <seealso cref="FunctionValues"/> for a particular reader.
/// <br>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSourceScorer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSourceScorer.cs b/src/Lucene.Net.Queries/Function/ValueSourceScorer.cs
index cb032ea..d7ad046 100644
--- a/src/Lucene.Net.Queries/Function/ValueSourceScorer.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSourceScorer.cs
@@ -4,7 +4,6 @@ using Lucene.Net.Util;
namespace Lucene.Net.Queries.Function
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -21,6 +20,7 @@ namespace Lucene.Net.Queries.Function
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// <seealso cref="Scorer"/> which returns the result of <seealso cref="FunctionValues#FloatVal(int)"/> as
/// the score for a document.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/BoolFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/BoolFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/BoolFunction.cs
index d166b6c..73390b9 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/BoolFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/BoolFunction.cs
@@ -1,22 +1,22 @@
-\ufeff/*
- * 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.
- */
-
-namespace Lucene.Net.Queries.Function.ValueSources
+\ufeffnamespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// Abstract parent class for those <seealso cref="ValueSource"/> implementations which
/// apply boolean logic to their values
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/ByteFieldSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/ByteFieldSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/ByteFieldSource.cs
index df00647..b3b5a1b 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/ByteFieldSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/ByteFieldSource.cs
@@ -1,7 +1,7 @@
-\ufeffusing System;
-using System.Collections;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Search;
+using System;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
@@ -21,6 +21,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// Obtains int field values from the <seealso cref="org.apache.lucene.search.FieldCache"/>
/// using <code>getInts()</code>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/BytesRefFieldSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/BytesRefFieldSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/BytesRefFieldSource.cs
index c5ba904..d796419 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/BytesRefFieldSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/BytesRefFieldSource.cs
@@ -1,12 +1,10 @@
-\ufeffusing System.Collections;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
-using Lucene.Net.Search;
using Lucene.Net.Util;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -23,6 +21,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// An implementation for retrieving <seealso cref="FunctionValues"/> instances for str based fields.
/// </summary>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/ConstNumberSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/ConstNumberSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/ConstNumberSource.cs
index a2f1431..5445296 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/ConstNumberSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/ConstNumberSource.cs
@@ -1,24 +1,21 @@
-\ufeff/*
- * 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 Lucene.Net.Support;
-
-namespace Lucene.Net.Queries.Function.ValueSources
+\ufeffnamespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
/// <summary>
/// <code>ConstNumberSource</code> is the base class for all constant numbers
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/ConstValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/ConstValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/ConstValueSource.cs
index eb6f0b5..507f14a 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/ConstValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/ConstValueSource.cs
@@ -1,26 +1,27 @@
-\ufeff/*
- * 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 System.Collections;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Support;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// <code>ConstValueSource</code> returns a constant for all documents
/// </summary>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/DefFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/DefFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/DefFunction.cs
index f19ae8f..5f90ada 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/DefFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/DefFunction.cs
@@ -1,8 +1,8 @@
-\ufeffusing System.Collections;
+\ufeffusing Lucene.Net.Index;
+using Lucene.Net.Util;
+using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using Lucene.Net.Index;
-using Lucene.Net.Util;
namespace Lucene.Net.Queries.Function.ValueSources
{
@@ -22,6 +22,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// <seealso cref="ValueSource"/> implementation which only returns the values from the provided
/// ValueSources which are available for a particular docId. Consequently, when combined
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/DivFloatFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/DivFloatFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/DivFloatFunction.cs
index ca89f47..d52340d 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/DivFloatFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/DivFloatFunction.cs
@@ -1,22 +1,22 @@
-\ufeff/*
- * 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.
- */
-
-namespace Lucene.Net.Queries.Function.ValueSources
+\ufeffnamespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// Function to divide "a" by "b"
/// </summary>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/DocFreqValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/DocFreqValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/DocFreqValueSource.cs
index 070f9c5..f1bbd24 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/DocFreqValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/DocFreqValueSource.cs
@@ -1,28 +1,29 @@
-\ufeff/*
- * 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 System;
-using System.Collections;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Search;
using Lucene.Net.Util;
+using System;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
internal class ConstIntDocValues : IntDocValues
{
internal readonly int ival;
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/DoubleConstValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/DoubleConstValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/DoubleConstValueSource.cs
index b995a36..2003dab 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/DoubleConstValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/DoubleConstValueSource.cs
@@ -1,26 +1,27 @@
-\ufeff/*
- * 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.
- */
+\ufeffusing Lucene.Net.Index;
+using Lucene.Net.Queries.Function.DocValues;
using System;
using System.Collections;
-using Lucene.Net.Index;
-using Lucene.Net.Queries.Function.DocValues;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// Function that returns a constant double value for every document.
/// </summary>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/DoubleFieldSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/DoubleFieldSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/DoubleFieldSource.cs
index 389d870..6b35d47 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/DoubleFieldSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/DoubleFieldSource.cs
@@ -1,28 +1,29 @@
-\ufeffusing System.Collections;
-/*
- * 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 Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Search;
using Lucene.Net.Util;
using Lucene.Net.Util.Mutable;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// Obtains double field values from <seealso cref="IFieldCache#getDoubles"/> and makes
/// those values available as other numeric types, casting as needed.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/DualFloatFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/DualFloatFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/DualFloatFunction.cs
index 22a7481..369dc4e 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/DualFloatFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/DualFloatFunction.cs
@@ -1,26 +1,27 @@
-\ufeff/*
- * 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 System.Collections;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Search;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// Abstract <seealso cref="ValueSource"/> implementation which wraps two ValueSources
/// and applies an extendible float function to their values.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/EnumFieldSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/EnumFieldSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/EnumFieldSource.cs
index 63099f5..84a89c0 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/EnumFieldSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/EnumFieldSource.cs
@@ -1,16 +1,15 @@
-\ufeffusing System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Globalization;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Search;
using Lucene.Net.Util;
using Lucene.Net.Util.Mutable;
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Globalization;
namespace Lucene.Net.Queries.Function.ValueSources
{
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -27,6 +26,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// Obtains int field values from <seealso cref="IFieldCache#getInts"/> and makes
/// those values available as other numeric types, casting as needed.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/FieldCacheSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/FieldCacheSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/FieldCacheSource.cs
index d82c0fa..9c8eb5a 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/FieldCacheSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/FieldCacheSource.cs
@@ -1,24 +1,24 @@
-\ufeff/*
- * 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 Lucene.Net.Search;
+\ufeffusing Lucene.Net.Search;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// A base class for ValueSource implementations that retrieve values for
/// a single field from the <seealso cref="org.apache.lucene.search.FieldCache"/>.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/FloatFieldSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/FloatFieldSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/FloatFieldSource.cs
index b09713a..b1aa5ba 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/FloatFieldSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/FloatFieldSource.cs
@@ -1,28 +1,29 @@
-\ufeff/*
- * 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 System.Collections;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Search;
using Lucene.Net.Util;
using Lucene.Net.Util.Mutable;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// Obtains float field values from <seealso cref="IFieldCache#getFloats"/> and makes those
/// values available as other numeric types, casting as needed.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/IDFValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/IDFValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/IDFValueSource.cs
index 1b487a8..21df491 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/IDFValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/IDFValueSource.cs
@@ -1,27 +1,28 @@
-\ufeff/*
- * 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 System.Collections;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Search;
using Lucene.Net.Search.Similarities;
using Lucene.Net.Util;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// Function that returns <seealso cref="TFIDFSimilarity #idf(long, long)"/>
/// for every document.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/IfFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/IfFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/IfFunction.cs
index dc72acc..208d259 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/IfFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/IfFunction.cs
@@ -1,26 +1,27 @@
-\ufeff/*
- * 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 System.Collections;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Search;
using Lucene.Net.Util;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// Depending on the boolean value of the <code>ifSource</code> function,
/// returns the value of the <code>trueSource</code> or <code>falseSource</code> function.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/IntFieldSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/IntFieldSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/IntFieldSource.cs
index b60ae1d..45a7c74 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/IntFieldSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/IntFieldSource.cs
@@ -1,29 +1,30 @@
-\ufeff/*
- * 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 System;
-using System.Collections;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Search;
using Lucene.Net.Util;
using Lucene.Net.Util.Mutable;
+using System;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// Obtains int field values from <seealso cref="FieldCache#getInts"/> and makes those
/// values available as other numeric types, casting as needed.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/JoinDocFreqValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/JoinDocFreqValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/JoinDocFreqValueSource.cs
index c822df4..46327c3 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/JoinDocFreqValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/JoinDocFreqValueSource.cs
@@ -1,29 +1,30 @@
-\ufeff/*
- * 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 System;
-using System.Collections;
-using System.IO;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Util;
using Lucene.Net.Util.Packed;
+using System;
+using System.Collections;
+using System.IO;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// Use a field value and find the Document Frequency within another field.
///
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/LinearFloatFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/LinearFloatFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/LinearFloatFunction.cs
index 95235b0..558447d 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/LinearFloatFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/LinearFloatFunction.cs
@@ -1,27 +1,28 @@
-\ufeff/*
- * 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 System.Collections;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Search;
using Lucene.Net.Support;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// <code>LinearFloatFunction</code> implements a linear function over
/// another <seealso cref="ValueSource"/>.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/LiteralValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/LiteralValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/LiteralValueSource.cs
index a35e43a..2ae0fa8 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/LiteralValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/LiteralValueSource.cs
@@ -1,7 +1,7 @@
-\ufeffusing System.Collections;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Util;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
@@ -21,6 +21,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// Pass a the field value through as a String, no matter the type // Q: doesn't this mean it's a "str"?
///
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/LongFieldSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/LongFieldSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/LongFieldSource.cs
index bae2098..8623c3d 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/LongFieldSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/LongFieldSource.cs
@@ -1,29 +1,30 @@
-\ufeff/*
- * 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 System;
-using System.Collections;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Search;
using Lucene.Net.Util;
using Lucene.Net.Util.Mutable;
+using System;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// Obtains long field values from <seealso cref="FieldCache#getLongs"/> and makes those
/// values available as other numeric types, casting as needed.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/MaxDocValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/MaxDocValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/MaxDocValueSource.cs
index dc9d0d5..3439686 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/MaxDocValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/MaxDocValueSource.cs
@@ -1,25 +1,26 @@
-\ufeff/*
- * 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 System.Collections;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Search;
+using System.Collections;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// Returns the value of <seealso cref="IndexReader#maxDoc()"/>
/// for every document. This is the number of documents
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/MaxFloatFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/MaxFloatFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/MaxFloatFunction.cs
index d126343..97affed 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/MaxFloatFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/MaxFloatFunction.cs
@@ -1,24 +1,24 @@
-\ufeff/*
- * 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 System;
-using System.Linq;
+\ufeffusing System.Linq;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// <code>MaxFloatFunction</code> returns the max of it's components.
/// </summary>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/MinFloatFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/MinFloatFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/MinFloatFunction.cs
index 5c38c2d..daff8b1 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/MinFloatFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/MinFloatFunction.cs
@@ -1,24 +1,24 @@
-\ufeff/*
- * 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 System;
-using System.Linq;
+\ufeffusing System.Linq;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// <code>MinFloatFunction</code> returns the min of it's components.
/// </summary>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/MultiBoolFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/MultiBoolFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/MultiBoolFunction.cs
index e2fe91b..2fbdb8c 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/MultiBoolFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/MultiBoolFunction.cs
@@ -1,28 +1,29 @@
-\ufeff/*
- * 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.
- */
+\ufeffusing Lucene.Net.Index;
+using Lucene.Net.Queries.Function.DocValues;
+using Lucene.Net.Search;
using System.Collections;
using System.Collections.Generic;
using System.Text;
-using Lucene.Net.Index;
-using Lucene.Net.Queries.Function.DocValues;
-using Lucene.Net.Search;
namespace Lucene.Net.Queries.Function.ValueSources
{
+ /*
+ * 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.
+ */
+
/// <summary>
/// Abstract <seealso cref="ValueSource"/> implementation which wraps multiple ValueSources
/// and applies an extendible boolean function to their values.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/MultiFloatFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/MultiFloatFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/MultiFloatFunction.cs
index d65f4e3..e5cf748 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/MultiFloatFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/MultiFloatFunction.cs
@@ -1,9 +1,9 @@
-\ufeffusing System.Collections;
-using System.Text;
-using Lucene.Net.Index;
+\ufeffusing Lucene.Net.Index;
using Lucene.Net.Queries.Function.DocValues;
using Lucene.Net.Search;
using Lucene.Net.Support;
+using System.Collections;
+using System.Text;
namespace Lucene.Net.Queries.Function.ValueSources
{
@@ -23,6 +23,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// Abstract <seealso cref="ValueSource"/> implementation which wraps multiple ValueSources
/// and applies an extendible float function to their values.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/MultiFunction.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/MultiFunction.cs b/src/Lucene.Net.Queries/Function/ValueSources/MultiFunction.cs
index eb3c679..3d17835 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/MultiFunction.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/MultiFunction.cs
@@ -1,8 +1,8 @@
-\ufeffusing System.Collections;
+\ufeffusing Lucene.Net.Index;
+using Lucene.Net.Search;
+using System.Collections;
using System.Collections.Generic;
using System.Text;
-using Lucene.Net.Index;
-using Lucene.Net.Search;
namespace Lucene.Net.Queries.Function.ValueSources
{
@@ -22,6 +22,7 @@ namespace Lucene.Net.Queries.Function.ValueSources
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
/// <summary>
/// Abstract parent class for <seealso cref="ValueSource"/> implementations that wrap multiple
/// ValueSources and apply their own logic.
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/89171dcc/src/Lucene.Net.Queries/Function/ValueSources/MultiValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Function/ValueSources/MultiValueSource.cs b/src/Lucene.Net.Queries/Function/ValueSources/MultiValueSource.cs
index 72e4781..fe59cf9 100644
--- a/src/Lucene.Net.Queries/Function/ValueSources/MultiValueSource.cs
+++ b/src/Lucene.Net.Queries/Function/ValueSources/MultiValueSource.cs
@@ -17,7 +17,6 @@
* limitations under the License.
*/
-
/// <summary>
/// A <seealso cref="ValueSource"/> that abstractly represents <seealso cref="ValueSource"/>s for
/// poly fields, and other things.