lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1344556 [1/3] - in /incubator/lucene.net/trunk: lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/Minimal/ lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/ lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core...
Date Thu, 31 May 2012 04:12:44 GMT
Author: bodewig
Date: Thu May 31 04:12:43 2012
New Revision: 1344556

URL: http://svn.apache.org/viewvc?rev=1344556&view=rev
Log:
line-ends

Modified:
    incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/Minimal/Minimal.csproj   (props changed)
    incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtension.csproj   (props changed)
    incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/Tests/SampleFixtureExtensionTests.csproj   (props changed)
    incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleSuiteExtension/SampleSuiteExtension.csproj   (props changed)
    incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleSuiteExtension/Tests/SampleSuiteExtensionTests.csproj   (props changed)
    incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/csharp/failures/cs-failures.csproj   (contents, props changed)
    incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/csharp/money/cs-money.csproj   (contents, props changed)
    incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/csharp/syntax/cs-syntax.csproj   (contents, props changed)
    incubator/lucene.net/trunk/src/contrib/Highlighter/IEncoder.cs   (contents, props changed)
    incubator/lucene.net/trunk/src/contrib/Highlighter/IFormatter.cs   (contents, props changed)
    incubator/lucene.net/trunk/src/contrib/Highlighter/IFragmenter.cs   (contents, props changed)
    incubator/lucene.net/trunk/src/contrib/Highlighter/IScorer.cs   (contents, props changed)
    incubator/lucene.net/trunk/src/contrib/Highlighter/InvalidTokenOffsetsException.cs   (contents, props changed)
    incubator/lucene.net/trunk/src/contrib/Highlighter/QueryTermScorer.cs   (contents, props changed)
    incubator/lucene.net/trunk/src/contrib/Highlighter/SimpleSpanFragmenter.cs   (contents, props changed)
    incubator/lucene.net/trunk/src/contrib/Highlighter/WeightedSpanTerm.cs   (contents, props changed)
    incubator/lucene.net/trunk/src/contrib/Highlighter/WeightedSpanTermExtractor.cs   (contents, props changed)
    incubator/lucene.net/trunk/src/contrib/Memory/Contrib.Memory.csproj   (contents, props changed)
    incubator/lucene.net/trunk/src/core/Analysis/Tokenattributes/IFlagsAttribute.cs   (contents, props changed)
    incubator/lucene.net/trunk/src/core/Analysis/Tokenattributes/IOffsetAttribute.cs   (contents, props changed)
    incubator/lucene.net/trunk/src/core/Analysis/Tokenattributes/IPayloadAttribute.cs   (contents, props changed)
    incubator/lucene.net/trunk/src/core/Analysis/Tokenattributes/IPositionIncrementAttribute.cs   (contents, props changed)
    incubator/lucene.net/trunk/src/core/Analysis/Tokenattributes/ITermAttribute.cs   (contents, props changed)
    incubator/lucene.net/trunk/src/core/Analysis/Tokenattributes/ITypeAttribute.cs   (contents, props changed)
    incubator/lucene.net/trunk/src/core/Messages/INLSException.cs   (contents, props changed)
    incubator/lucene.net/trunk/src/core/Support/ThreadLock.cs   (contents, props changed)
    incubator/lucene.net/trunk/src/core/Util/IAttribute.cs   (contents, props changed)
    incubator/lucene.net/trunk/test/contrib/Memory/Contrib.Memory.Test.csproj   (contents, props changed)

Propchange: incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/Minimal/Minimal.csproj
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtension.csproj
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/Tests/SampleFixtureExtensionTests.csproj
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleSuiteExtension/SampleSuiteExtension.csproj
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleSuiteExtension/Tests/SampleSuiteExtensionTests.csproj
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/csharp/failures/cs-failures.csproj
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/csharp/failures/cs-failures.csproj?rev=1344556&r1=1344555&r2=1344556&view=diff
==============================================================================
--- incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/csharp/failures/cs-failures.csproj (original)
+++ incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/csharp/failures/cs-failures.csproj Thu May 31 04:12:43 2012
@@ -1,20 +1,20 @@
-<VisualStudioProject>
-  <CSHARP ProjectType="Local" ProductVersion="7.10.3077" SchemaVersion="2.0" ProjectGuid="{15D66EEE-A852-4A52-89C2-83E74ECF3770}">
-    <Build>
-      <Settings ApplicationIcon="" AssemblyKeyContainerName="" AssemblyName="cs-failures" AssemblyOriginatorKeyFile="" DefaultClientScript="JScript" DefaultHTMLPageLayout="Grid" DefaultTargetSchema="IE50" DelaySign="false" OutputType="Library" PreBuildEvent="" PostBuildEvent="" RootNamespace="csharp_sample" RunPostBuildEvent="OnBuildSuccess" StartupObject="">
-        <Config Name="Debug" AllowUnsafeBlocks="false" BaseAddress="285212672" CheckForOverflowUnderflow="false" ConfigurationOverrideFile="" DefineConstants="DEBUG;TRACE" DocumentationFile="" DebugSymbols="true" FileAlignment="4096" IncrementalBuild="true" NoStdLib="false" NoWarn="" Optimize="false" OutputPath="bin\Debug\" RegisterForComInterop="false" RemoveIntegerChecks="false" TreatWarningsAsErrors="false" WarningLevel="4" />
-        <Config Name="Release" AllowUnsafeBlocks="false" BaseAddress="285212672" CheckForOverflowUnderflow="false" ConfigurationOverrideFile="" DefineConstants="TRACE" DocumentationFile="" DebugSymbols="false" FileAlignment="4096" IncrementalBuild="false" NoStdLib="false" NoWarn="" Optimize="true" OutputPath="bin\Release\" RegisterForComInterop="false" RemoveIntegerChecks="false" TreatWarningsAsErrors="false" WarningLevel="4" />
-      </Settings>
-      <References>
-        <Reference Name="System" AssemblyName="System" />
-        <Reference Name="nunit.framework" AssemblyName="nunit.framework, Version=2.5, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" HintPath="..\..\..\bin\net-1.1\framework\nunit.framework.dll" />
-      </References>
-    </Build>
-    <Files>
-      <Include>
-        <File RelPath="AssemblyInfo.cs" SubType="Code" BuildAction="Compile" />
-        <File RelPath="CSharpTest.cs" SubType="Code" BuildAction="Compile" />
-      </Include>
-    </Files>
-  </CSHARP>
+<VisualStudioProject>
+  <CSHARP ProjectType="Local" ProductVersion="7.10.3077" SchemaVersion="2.0" ProjectGuid="{15D66EEE-A852-4A52-89C2-83E74ECF3770}">
+    <Build>
+      <Settings ApplicationIcon="" AssemblyKeyContainerName="" AssemblyName="cs-failures" AssemblyOriginatorKeyFile="" DefaultClientScript="JScript" DefaultHTMLPageLayout="Grid" DefaultTargetSchema="IE50" DelaySign="false" OutputType="Library" PreBuildEvent="" PostBuildEvent="" RootNamespace="csharp_sample" RunPostBuildEvent="OnBuildSuccess" StartupObject="">
+        <Config Name="Debug" AllowUnsafeBlocks="false" BaseAddress="285212672" CheckForOverflowUnderflow="false" ConfigurationOverrideFile="" DefineConstants="DEBUG;TRACE" DocumentationFile="" DebugSymbols="true" FileAlignment="4096" IncrementalBuild="true" NoStdLib="false" NoWarn="" Optimize="false" OutputPath="bin\Debug\" RegisterForComInterop="false" RemoveIntegerChecks="false" TreatWarningsAsErrors="false" WarningLevel="4" />
+        <Config Name="Release" AllowUnsafeBlocks="false" BaseAddress="285212672" CheckForOverflowUnderflow="false" ConfigurationOverrideFile="" DefineConstants="TRACE" DocumentationFile="" DebugSymbols="false" FileAlignment="4096" IncrementalBuild="false" NoStdLib="false" NoWarn="" Optimize="true" OutputPath="bin\Release\" RegisterForComInterop="false" RemoveIntegerChecks="false" TreatWarningsAsErrors="false" WarningLevel="4" />
+      </Settings>
+      <References>
+        <Reference Name="System" AssemblyName="System" />
+        <Reference Name="nunit.framework" AssemblyName="nunit.framework, Version=2.5, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" HintPath="..\..\..\bin\net-1.1\framework\nunit.framework.dll" />
+      </References>
+    </Build>
+    <Files>
+      <Include>
+        <File RelPath="AssemblyInfo.cs" SubType="Code" BuildAction="Compile" />
+        <File RelPath="CSharpTest.cs" SubType="Code" BuildAction="Compile" />
+      </Include>
+    </Files>
+  </CSHARP>
 </VisualStudioProject>
\ No newline at end of file

Propchange: incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/csharp/failures/cs-failures.csproj
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/csharp/money/cs-money.csproj
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/csharp/money/cs-money.csproj?rev=1344556&r1=1344555&r2=1344556&view=diff
==============================================================================
--- incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/csharp/money/cs-money.csproj (original)
+++ incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/csharp/money/cs-money.csproj Thu May 31 04:12:43 2012
@@ -1,23 +1,23 @@
-<VisualStudioProject>
-  <CSHARP ProjectType="Local" ProductVersion="7.10.3077" SchemaVersion="2.0" ProjectGuid="{11EDF872-A04D-4F75-A1BF-71168DC86AF3}">
-    <Build>
-      <Settings ApplicationIcon="" AssemblyKeyContainerName="" AssemblyName="cs-money" AssemblyOriginatorKeyFile="" DefaultClientScript="JScript" DefaultHTMLPageLayout="Grid" DefaultTargetSchema="IE50" DelaySign="false" OutputType="Library" PreBuildEvent="" PostBuildEvent="" RootNamespace="money" RunPostBuildEvent="OnBuildSuccess" StartupObject="">
-        <Config Name="Debug" AllowUnsafeBlocks="false" BaseAddress="285212672" CheckForOverflowUnderflow="false" ConfigurationOverrideFile="" DefineConstants="DEBUG;TRACE" DocumentationFile="" DebugSymbols="true" FileAlignment="4096" IncrementalBuild="true" NoStdLib="false" NoWarn="" Optimize="false" OutputPath="bin\Debug\" RegisterForComInterop="false" RemoveIntegerChecks="false" TreatWarningsAsErrors="false" WarningLevel="4" />
-        <Config Name="Release" AllowUnsafeBlocks="false" BaseAddress="285212672" CheckForOverflowUnderflow="false" ConfigurationOverrideFile="" DefineConstants="TRACE" DocumentationFile="" DebugSymbols="false" FileAlignment="4096" IncrementalBuild="false" NoStdLib="false" NoWarn="" Optimize="true" OutputPath="bin\Release\" RegisterForComInterop="false" RemoveIntegerChecks="false" TreatWarningsAsErrors="false" WarningLevel="4" />
-      </Settings>
-      <References>
-        <Reference Name="System" AssemblyName="System" />
-        <Reference Name="nunit.framework" AssemblyName="nunit.framework, Version=2.5, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" HintPath="..\..\..\bin\net-1.1\framework\nunit.framework.dll" />
-      </References>
-    </Build>
-    <Files>
-      <Include>
-        <File RelPath="AssemblyInfo.cs" SubType="Code" BuildAction="Compile" />
-        <File RelPath="IMoney.cs" SubType="Code" BuildAction="Compile" />
-        <File RelPath="Money.cs" SubType="Code" BuildAction="Compile" />
-        <File RelPath="MoneyBag.cs" SubType="Code" BuildAction="Compile" />
-        <File RelPath="MoneyTest.cs" SubType="Code" BuildAction="Compile" />
-      </Include>
-    </Files>
-  </CSHARP>
+<VisualStudioProject>
+  <CSHARP ProjectType="Local" ProductVersion="7.10.3077" SchemaVersion="2.0" ProjectGuid="{11EDF872-A04D-4F75-A1BF-71168DC86AF3}">
+    <Build>
+      <Settings ApplicationIcon="" AssemblyKeyContainerName="" AssemblyName="cs-money" AssemblyOriginatorKeyFile="" DefaultClientScript="JScript" DefaultHTMLPageLayout="Grid" DefaultTargetSchema="IE50" DelaySign="false" OutputType="Library" PreBuildEvent="" PostBuildEvent="" RootNamespace="money" RunPostBuildEvent="OnBuildSuccess" StartupObject="">
+        <Config Name="Debug" AllowUnsafeBlocks="false" BaseAddress="285212672" CheckForOverflowUnderflow="false" ConfigurationOverrideFile="" DefineConstants="DEBUG;TRACE" DocumentationFile="" DebugSymbols="true" FileAlignment="4096" IncrementalBuild="true" NoStdLib="false" NoWarn="" Optimize="false" OutputPath="bin\Debug\" RegisterForComInterop="false" RemoveIntegerChecks="false" TreatWarningsAsErrors="false" WarningLevel="4" />
+        <Config Name="Release" AllowUnsafeBlocks="false" BaseAddress="285212672" CheckForOverflowUnderflow="false" ConfigurationOverrideFile="" DefineConstants="TRACE" DocumentationFile="" DebugSymbols="false" FileAlignment="4096" IncrementalBuild="false" NoStdLib="false" NoWarn="" Optimize="true" OutputPath="bin\Release\" RegisterForComInterop="false" RemoveIntegerChecks="false" TreatWarningsAsErrors="false" WarningLevel="4" />
+      </Settings>
+      <References>
+        <Reference Name="System" AssemblyName="System" />
+        <Reference Name="nunit.framework" AssemblyName="nunit.framework, Version=2.5, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" HintPath="..\..\..\bin\net-1.1\framework\nunit.framework.dll" />
+      </References>
+    </Build>
+    <Files>
+      <Include>
+        <File RelPath="AssemblyInfo.cs" SubType="Code" BuildAction="Compile" />
+        <File RelPath="IMoney.cs" SubType="Code" BuildAction="Compile" />
+        <File RelPath="Money.cs" SubType="Code" BuildAction="Compile" />
+        <File RelPath="MoneyBag.cs" SubType="Code" BuildAction="Compile" />
+        <File RelPath="MoneyTest.cs" SubType="Code" BuildAction="Compile" />
+      </Include>
+    </Files>
+  </CSHARP>
 </VisualStudioProject>
\ No newline at end of file

Propchange: incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/csharp/money/cs-money.csproj
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/csharp/syntax/cs-syntax.csproj
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/csharp/syntax/cs-syntax.csproj?rev=1344556&r1=1344555&r2=1344556&view=diff
==============================================================================
--- incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/csharp/syntax/cs-syntax.csproj (original)
+++ incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/csharp/syntax/cs-syntax.csproj Thu May 31 04:12:43 2012
@@ -1,20 +1,20 @@
-<VisualStudioProject>
-  <CSHARP ProjectType="Local" ProductVersion="7.10.3077" SchemaVersion="2.0" ProjectGuid="{06F46FA2-687B-4B46-A912-C1B0B4CC1B20}">
-    <Build>
-      <Settings ApplicationIcon="" AssemblyKeyContainerName="" AssemblyName="cs-syntax" AssemblyOriginatorKeyFile="" DefaultClientScript="JScript" DefaultHTMLPageLayout="Grid" DefaultTargetSchema="IE50" DelaySign="false" OutputType="Library" PreBuildEvent="" PostBuildEvent="" RootNamespace="cs_syntax" RunPostBuildEvent="OnBuildSuccess" StartupObject="">
-        <Config Name="Debug" AllowUnsafeBlocks="false" BaseAddress="285212672" CheckForOverflowUnderflow="false" ConfigurationOverrideFile="" DefineConstants="DEBUG;TRACE" DocumentationFile="" DebugSymbols="true" FileAlignment="4096" IncrementalBuild="false" NoStdLib="false" NoWarn="" Optimize="false" OutputPath="bin\Debug\" RegisterForComInterop="false" RemoveIntegerChecks="false" TreatWarningsAsErrors="false" WarningLevel="4" />
-        <Config Name="Release" AllowUnsafeBlocks="false" BaseAddress="285212672" CheckForOverflowUnderflow="false" ConfigurationOverrideFile="" DefineConstants="TRACE" DocumentationFile="" DebugSymbols="false" FileAlignment="4096" IncrementalBuild="false" NoStdLib="false" NoWarn="" Optimize="true" OutputPath="bin\Release\" RegisterForComInterop="false" RemoveIntegerChecks="false" TreatWarningsAsErrors="false" WarningLevel="4" />
-      </Settings>
-      <References>
-        <Reference Name="System" AssemblyName="System" />
-        <Reference Name="nunit.framework" AssemblyName="nunit.framework, Version=2.5, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" HintPath="..\..\..\bin\net-1.1\framework\nunit.framework.dll" />
-      </References>
-    </Build>
-    <Files>
-      <Include>
-        <File RelPath="AssemblyInfo.cs" SubType="Code" BuildAction="Compile" />
-        <File RelPath="AssertSyntaxTests.cs" SubType="Code" BuildAction="Compile" />
-      </Include>
-    </Files>
-  </CSHARP>
+<VisualStudioProject>
+  <CSHARP ProjectType="Local" ProductVersion="7.10.3077" SchemaVersion="2.0" ProjectGuid="{06F46FA2-687B-4B46-A912-C1B0B4CC1B20}">
+    <Build>
+      <Settings ApplicationIcon="" AssemblyKeyContainerName="" AssemblyName="cs-syntax" AssemblyOriginatorKeyFile="" DefaultClientScript="JScript" DefaultHTMLPageLayout="Grid" DefaultTargetSchema="IE50" DelaySign="false" OutputType="Library" PreBuildEvent="" PostBuildEvent="" RootNamespace="cs_syntax" RunPostBuildEvent="OnBuildSuccess" StartupObject="">
+        <Config Name="Debug" AllowUnsafeBlocks="false" BaseAddress="285212672" CheckForOverflowUnderflow="false" ConfigurationOverrideFile="" DefineConstants="DEBUG;TRACE" DocumentationFile="" DebugSymbols="true" FileAlignment="4096" IncrementalBuild="false" NoStdLib="false" NoWarn="" Optimize="false" OutputPath="bin\Debug\" RegisterForComInterop="false" RemoveIntegerChecks="false" TreatWarningsAsErrors="false" WarningLevel="4" />
+        <Config Name="Release" AllowUnsafeBlocks="false" BaseAddress="285212672" CheckForOverflowUnderflow="false" ConfigurationOverrideFile="" DefineConstants="TRACE" DocumentationFile="" DebugSymbols="false" FileAlignment="4096" IncrementalBuild="false" NoStdLib="false" NoWarn="" Optimize="true" OutputPath="bin\Release\" RegisterForComInterop="false" RemoveIntegerChecks="false" TreatWarningsAsErrors="false" WarningLevel="4" />
+      </Settings>
+      <References>
+        <Reference Name="System" AssemblyName="System" />
+        <Reference Name="nunit.framework" AssemblyName="nunit.framework, Version=2.5, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" HintPath="..\..\..\bin\net-1.1\framework\nunit.framework.dll" />
+      </References>
+    </Build>
+    <Files>
+      <Include>
+        <File RelPath="AssemblyInfo.cs" SubType="Code" BuildAction="Compile" />
+        <File RelPath="AssertSyntaxTests.cs" SubType="Code" BuildAction="Compile" />
+      </Include>
+    </Files>
+  </CSHARP>
 </VisualStudioProject>
\ No newline at end of file

Propchange: incubator/lucene.net/trunk/lib/NUnit.org/NUnit/2.5.9/samples/csharp/syntax/cs-syntax.csproj
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/lucene.net/trunk/src/contrib/Highlighter/IEncoder.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/contrib/Highlighter/IEncoder.cs?rev=1344556&r1=1344555&r2=1344556&view=diff
==============================================================================
--- incubator/lucene.net/trunk/src/contrib/Highlighter/IEncoder.cs (original)
+++ incubator/lucene.net/trunk/src/contrib/Highlighter/IEncoder.cs Thu May 31 04:12:43 2012
@@ -1,26 +1,26 @@
-/*
- * 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.Search.Highlight
-{
-	/// <summary>Encodes original text. The IEncoder works with the Formatter to generate the output.</summary>
-	public interface IEncoder
-	{
-		/// <param name="originalText">The section of text being output</param>
-		string EncodeText(System.String originalText);
-	}
+/*
+ * 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.Search.Highlight
+{
+	/// <summary>Encodes original text. The IEncoder works with the Formatter to generate the output.</summary>
+	public interface IEncoder
+	{
+		/// <param name="originalText">The section of text being output</param>
+		string EncodeText(System.String originalText);
+	}
 }
\ No newline at end of file

Propchange: incubator/lucene.net/trunk/src/contrib/Highlighter/IEncoder.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/lucene.net/trunk/src/contrib/Highlighter/IFormatter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/contrib/Highlighter/IFormatter.cs?rev=1344556&r1=1344555&r2=1344556&view=diff
==============================================================================
--- incubator/lucene.net/trunk/src/contrib/Highlighter/IFormatter.cs (original)
+++ incubator/lucene.net/trunk/src/contrib/Highlighter/IFormatter.cs Thu May 31 04:12:43 2012
@@ -1,29 +1,29 @@
-/*
- * 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.Search.Highlight
-{
-	/// <summary> Processes terms found in the original text, typically by applying some form 
-	/// of mark-up to highlight terms in HTML search results pages.</summary>
-	public interface IFormatter
-	{
-		/// <param name="originalText">The section of text being considered for markup</param>
-		/// <param name="tokenGroup">contains one or several overlapping Tokens along with
-		/// their scores and positions.</param>
-		string HighlightTerm(System.String originalText, TokenGroup tokenGroup);
-	}
+/*
+ * 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.Search.Highlight
+{
+	/// <summary> Processes terms found in the original text, typically by applying some form 
+	/// of mark-up to highlight terms in HTML search results pages.</summary>
+	public interface IFormatter
+	{
+		/// <param name="originalText">The section of text being considered for markup</param>
+		/// <param name="tokenGroup">contains one or several overlapping Tokens along with
+		/// their scores and positions.</param>
+		string HighlightTerm(System.String originalText, TokenGroup tokenGroup);
+	}
 }
\ No newline at end of file

Propchange: incubator/lucene.net/trunk/src/contrib/Highlighter/IFormatter.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/lucene.net/trunk/src/contrib/Highlighter/IFragmenter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/contrib/Highlighter/IFragmenter.cs?rev=1344556&r1=1344555&r2=1344556&view=diff
==============================================================================
--- incubator/lucene.net/trunk/src/contrib/Highlighter/IFragmenter.cs (original)
+++ incubator/lucene.net/trunk/src/contrib/Highlighter/IFragmenter.cs Thu May 31 04:12:43 2012
@@ -1,46 +1,46 @@
-/*
- * 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.Analysis;
-
-namespace Lucene.Net.Search.Highlight
-{
-
-    /// <summary> Implements the policy for breaking text into multiple fragments for consideration
-    /// by the <see cref="Highlighter"/> class. A sophisticated implementation may do this on the basis
-    /// of detecting end of sentences in the text. 
-    /// </summary>
-    /// <author>  mark@searcharea.co.uk
-    /// </author>
-    public interface IFragmenter
-    {
-        /// <summary>
-        /// Initializes the Fragmenter. You can grab references to the Attributes you are
-        /// interested in from tokenStream and then access the values in {@link #isNewFragment()}.
-        /// </summary>
-        /// <param name="originalText">the original source text</param>
-        ///<param name="tokenStream">tokenStream the <see cref="TokenStream" /> to be fragmented</param>
-        void Start(string originalText, TokenStream tokenStream);
-
-        /// <summary>
-        /// Test to see if this token from the stream should be held in a new
-        /// TextFragment. Every time this is called, the TokenStream
-        /// passed to start(String, TokenStream) will have been incremented.
-        /// </summary>
-        bool IsNewFragment();
-    }
+/*
+ * 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.Analysis;
+
+namespace Lucene.Net.Search.Highlight
+{
+
+    /// <summary> Implements the policy for breaking text into multiple fragments for consideration
+    /// by the <see cref="Highlighter"/> class. A sophisticated implementation may do this on the basis
+    /// of detecting end of sentences in the text. 
+    /// </summary>
+    /// <author>  mark@searcharea.co.uk
+    /// </author>
+    public interface IFragmenter
+    {
+        /// <summary>
+        /// Initializes the Fragmenter. You can grab references to the Attributes you are
+        /// interested in from tokenStream and then access the values in {@link #isNewFragment()}.
+        /// </summary>
+        /// <param name="originalText">the original source text</param>
+        ///<param name="tokenStream">tokenStream the <see cref="TokenStream" /> to be fragmented</param>
+        void Start(string originalText, TokenStream tokenStream);
+
+        /// <summary>
+        /// Test to see if this token from the stream should be held in a new
+        /// TextFragment. Every time this is called, the TokenStream
+        /// passed to start(String, TokenStream) will have been incremented.
+        /// </summary>
+        bool IsNewFragment();
+    }
 }
\ No newline at end of file

Propchange: incubator/lucene.net/trunk/src/contrib/Highlighter/IFragmenter.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/lucene.net/trunk/src/contrib/Highlighter/IScorer.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/contrib/Highlighter/IScorer.cs?rev=1344556&r1=1344555&r2=1344556&view=diff
==============================================================================
--- incubator/lucene.net/trunk/src/contrib/Highlighter/IScorer.cs (original)
+++ incubator/lucene.net/trunk/src/contrib/Highlighter/IScorer.cs Thu May 31 04:12:43 2012
@@ -1,62 +1,62 @@
-/*
- * 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.IO;
-using Lucene.Net.Analysis;
-
-namespace Lucene.Net.Search.Highlight
-{
-    /// <summary> Adds to the score for a fragment based on its tokens</summary>
-    public interface IScorer
-    {
-        /// <summary>
-        /// Called to init the Scorer with a {@link TokenStream}. You can grab references to
-        /// the attributes you are interested in here and access them from {@link #getTokenScore()}.
-        /// </summary>
-        /// <param name="tokenStream">the {@link TokenStream} that will be scored.</param>
-        /// <returns>
-        /// either a {@link TokenStream} that the Highlighter should continue using (eg
-        /// if you read the tokenSream in this method) or null to continue
-        /// using the same {@link TokenStream} that was passed in.
-        /// </returns> 
-        /// <exception cref="IOException"></exception>
-        ///
-        TokenStream Init(TokenStream tokenStream);
-
-        /// <summary>
-        /// Called when a new fragment is started for consideration.
-        /// </summary>
-        /// <param name="newFragment">the fragment that will be scored next</param>
-        void StartFragment(TextFragment newFragment);
-
-        /// <summary>
-        /// Called for each token in the current fragment. The {@link Highlighter} will
-        /// increment the {@link TokenStream} passed to init on every call.
-        /// </summary>
-        /// <returns>a score which is passed to the {@link Highlighter} class to influence the
-        /// mark-up of the text (this return value is NOT used to score the
-        /// fragment)</returns> 
-        float GetTokenScore();
-
-        ///<summary>
-        /// Called when the {@link Highlighter} has no more tokens for the current fragment -
-        /// the Scorer returns the weighting it has derived for the most recent
-        /// fragment, typically based on the results of {@link #getTokenScore()}.
-        /// </summary>
-        float GetFragmentScore();
-    }
+/*
+ * 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.IO;
+using Lucene.Net.Analysis;
+
+namespace Lucene.Net.Search.Highlight
+{
+    /// <summary> Adds to the score for a fragment based on its tokens</summary>
+    public interface IScorer
+    {
+        /// <summary>
+        /// Called to init the Scorer with a {@link TokenStream}. You can grab references to
+        /// the attributes you are interested in here and access them from {@link #getTokenScore()}.
+        /// </summary>
+        /// <param name="tokenStream">the {@link TokenStream} that will be scored.</param>
+        /// <returns>
+        /// either a {@link TokenStream} that the Highlighter should continue using (eg
+        /// if you read the tokenSream in this method) or null to continue
+        /// using the same {@link TokenStream} that was passed in.
+        /// </returns> 
+        /// <exception cref="IOException"></exception>
+        ///
+        TokenStream Init(TokenStream tokenStream);
+
+        /// <summary>
+        /// Called when a new fragment is started for consideration.
+        /// </summary>
+        /// <param name="newFragment">the fragment that will be scored next</param>
+        void StartFragment(TextFragment newFragment);
+
+        /// <summary>
+        /// Called for each token in the current fragment. The {@link Highlighter} will
+        /// increment the {@link TokenStream} passed to init on every call.
+        /// </summary>
+        /// <returns>a score which is passed to the {@link Highlighter} class to influence the
+        /// mark-up of the text (this return value is NOT used to score the
+        /// fragment)</returns> 
+        float GetTokenScore();
+
+        ///<summary>
+        /// Called when the {@link Highlighter} has no more tokens for the current fragment -
+        /// the Scorer returns the weighting it has derived for the most recent
+        /// fragment, typically based on the results of {@link #getTokenScore()}.
+        /// </summary>
+        float GetFragmentScore();
+    }
 }
\ No newline at end of file

Propchange: incubator/lucene.net/trunk/src/contrib/Highlighter/IScorer.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/lucene.net/trunk/src/contrib/Highlighter/InvalidTokenOffsetsException.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/contrib/Highlighter/InvalidTokenOffsetsException.cs?rev=1344556&r1=1344555&r2=1344556&view=diff
==============================================================================
--- incubator/lucene.net/trunk/src/contrib/Highlighter/InvalidTokenOffsetsException.cs (original)
+++ incubator/lucene.net/trunk/src/contrib/Highlighter/InvalidTokenOffsetsException.cs Thu May 31 04:12:43 2012
@@ -1,30 +1,30 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Runtime.Serialization;
-using System.Text;
-
-namespace Lucene.Net.Search.Highlight
-{
-    [Serializable]
-    public class InvalidTokenOffsetsException : Exception
-    {
-        public InvalidTokenOffsetsException()
-        {
-        }
-
-        public InvalidTokenOffsetsException(string message) : base(message)
-        {
-        }
-
-        public InvalidTokenOffsetsException(string message, Exception inner) : base(message, inner)
-        {
-        }
-
-        protected InvalidTokenOffsetsException(
-            SerializationInfo info,
-            StreamingContext context) : base(info, context)
-        {
-        }
-    }
-}
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Runtime.Serialization;
+using System.Text;
+
+namespace Lucene.Net.Search.Highlight
+{
+    [Serializable]
+    public class InvalidTokenOffsetsException : Exception
+    {
+        public InvalidTokenOffsetsException()
+        {
+        }
+
+        public InvalidTokenOffsetsException(string message) : base(message)
+        {
+        }
+
+        public InvalidTokenOffsetsException(string message, Exception inner) : base(message, inner)
+        {
+        }
+
+        protected InvalidTokenOffsetsException(
+            SerializationInfo info,
+            StreamingContext context) : base(info, context)
+        {
+        }
+    }
+}

Propchange: incubator/lucene.net/trunk/src/contrib/Highlighter/InvalidTokenOffsetsException.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/lucene.net/trunk/src/contrib/Highlighter/QueryTermScorer.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/contrib/Highlighter/QueryTermScorer.cs?rev=1344556&r1=1344555&r2=1344556&view=diff
==============================================================================
--- incubator/lucene.net/trunk/src/contrib/Highlighter/QueryTermScorer.cs (original)
+++ incubator/lucene.net/trunk/src/contrib/Highlighter/QueryTermScorer.cs Thu May 31 04:12:43 2012
@@ -1,169 +1,169 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using Lucene.Net.Analysis;
-using Lucene.Net.Analysis.Tokenattributes;
-using Lucene.Net.Index;
-using Lucene.Net.Support;
-
-namespace Lucene.Net.Search.Highlight
-{
-    /**
- * {@link Scorer} implementation which scores text fragments by the number of
- * unique query terms found. This class uses the {@link QueryTermExtractor}
- * class to process determine the query terms and their boosts to be used.
- */
-    // TODO: provide option to boost score of fragments near beginning of document
-    // based on fragment.getFragNum()
-    public class QueryTermScorer : IScorer
-    {
-        private TextFragment currentTextFragment = null;
-        private HashSet<String> uniqueTermsInFragment;
-
-        private float totalScore = 0;
-        private float maxTermWeight = 0;
-        private HashMap<String, WeightedTerm> termsToFind;
-
-        private ITermAttribute termAtt;
-
-        /**
-         * 
-         * @param query a Lucene query (ideally rewritten using query.rewrite before
-         *        being passed to this class and the searcher)
-         */
-
-        public QueryTermScorer(Query query)
-            : this(QueryTermExtractor.GetTerms(query))
-        {
-        }
-
-        /**
-         * 
-         * @param query a Lucene query (ideally rewritten using query.rewrite before
-         *        being passed to this class and the searcher)
-         * @param fieldName the Field name which is used to match Query terms
-         */
-
-        public QueryTermScorer(Query query, String fieldName)
-            : this(QueryTermExtractor.GetTerms(query, false, fieldName))
-        {
-        }
-
-        /**
-         * 
-         * @param query a Lucene query (ideally rewritten using query.rewrite before
-         *        being passed to this class and the searcher)
-         * @param reader used to compute IDF which can be used to a) score selected
-         *        fragments better b) use graded highlights eg set font color
-         *        intensity
-         * @param fieldName the field on which Inverse Document Frequency (IDF)
-         *        calculations are based
-         */
-
-        public QueryTermScorer(Query query, IndexReader reader, String fieldName)
-            : this(QueryTermExtractor.GetIdfWeightedTerms(query, reader, fieldName))
-        {
-        }
-
-        public QueryTermScorer(WeightedTerm[] weightedTerms)
-        {
-            termsToFind = new HashMap<String, WeightedTerm>();
-            for (int i = 0; i < weightedTerms.Length; i++)
-            {
-                WeightedTerm existingTerm = termsToFind[weightedTerms[i].Term];
-                if ((existingTerm == null)
-                    || (existingTerm.Weight < weightedTerms[i].Weight))
-                {
-                    // if a term is defined more than once, always use the highest scoring
-                    // Weight
-                    termsToFind[weightedTerms[i].Term] = weightedTerms[i];
-                    maxTermWeight = Math.Max(maxTermWeight, weightedTerms[i].Weight);
-                }
-            }
-        }
-
-        /* (non-Javadoc)
-         * @see org.apache.lucene.search.highlight.Scorer#init(org.apache.lucene.analysis.TokenStream)
-         */
-
-        public TokenStream Init(TokenStream tokenStream)
-        {
-            termAtt = tokenStream.AddAttribute<ITermAttribute>();
-            return null;
-        }
-
-        /*
-         * (non-Javadoc)
-         * 
-         * @see
-         * org.apache.lucene.search.highlight.FragmentScorer#startFragment(org.apache
-         * .lucene.search.highlight.TextFragment)
-         */
-
-        public void StartFragment(TextFragment newFragment)
-        {
-            uniqueTermsInFragment = new HashSet<String>();
-            currentTextFragment = newFragment;
-            totalScore = 0;
-
-        }
-
-
-        /* (non-Javadoc)
-         * @see org.apache.lucene.search.highlight.Scorer#getTokenScore()
-         */
-
-        public float GetTokenScore()
-        {
-            String termText = termAtt.Term();
-
-            WeightedTerm queryTerm = termsToFind[termText];
-            if (queryTerm == null)
-            {
-                // not a query term - return
-                return 0;
-            }
-            // found a query term - is it unique in this doc?
-            if (!uniqueTermsInFragment.Contains(termText))
-            {
-                totalScore += queryTerm.Weight;
-                uniqueTermsInFragment.Add(termText);
-            }
-            return queryTerm.Weight;
-        }
-
-
-        /* (non-Javadoc)
-         * @see org.apache.lucene.search.highlight.Scorer#getFragmentScore()
-         */
-
-        public float GetFragmentScore()
-        {
-            return totalScore;
-        }
-
-        /*
-         * (non-Javadoc)
-         * 
-         * @see
-         * org.apache.lucene.search.highlight.FragmentScorer#allFragmentsProcessed()
-         */
-
-        public void AllFragmentsProcessed()
-        {
-            // this class has no special operations to perform at end of processing
-        }
-
-        /**
-         * 
-         * @return The highest weighted term (useful for passing to GradientFormatter
-         *         to set top end of coloring scale.
-         */
-
-        public float GetMaxTermWeight()
-        {
-            return maxTermWeight;
-        }
-    }
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using Lucene.Net.Analysis;
+using Lucene.Net.Analysis.Tokenattributes;
+using Lucene.Net.Index;
+using Lucene.Net.Support;
+
+namespace Lucene.Net.Search.Highlight
+{
+    /**
+ * {@link Scorer} implementation which scores text fragments by the number of
+ * unique query terms found. This class uses the {@link QueryTermExtractor}
+ * class to process determine the query terms and their boosts to be used.
+ */
+    // TODO: provide option to boost score of fragments near beginning of document
+    // based on fragment.getFragNum()
+    public class QueryTermScorer : IScorer
+    {
+        private TextFragment currentTextFragment = null;
+        private HashSet<String> uniqueTermsInFragment;
+
+        private float totalScore = 0;
+        private float maxTermWeight = 0;
+        private HashMap<String, WeightedTerm> termsToFind;
+
+        private ITermAttribute termAtt;
+
+        /**
+         * 
+         * @param query a Lucene query (ideally rewritten using query.rewrite before
+         *        being passed to this class and the searcher)
+         */
+
+        public QueryTermScorer(Query query)
+            : this(QueryTermExtractor.GetTerms(query))
+        {
+        }
+
+        /**
+         * 
+         * @param query a Lucene query (ideally rewritten using query.rewrite before
+         *        being passed to this class and the searcher)
+         * @param fieldName the Field name which is used to match Query terms
+         */
+
+        public QueryTermScorer(Query query, String fieldName)
+            : this(QueryTermExtractor.GetTerms(query, false, fieldName))
+        {
+        }
+
+        /**
+         * 
+         * @param query a Lucene query (ideally rewritten using query.rewrite before
+         *        being passed to this class and the searcher)
+         * @param reader used to compute IDF which can be used to a) score selected
+         *        fragments better b) use graded highlights eg set font color
+         *        intensity
+         * @param fieldName the field on which Inverse Document Frequency (IDF)
+         *        calculations are based
+         */
+
+        public QueryTermScorer(Query query, IndexReader reader, String fieldName)
+            : this(QueryTermExtractor.GetIdfWeightedTerms(query, reader, fieldName))
+        {
+        }
+
+        public QueryTermScorer(WeightedTerm[] weightedTerms)
+        {
+            termsToFind = new HashMap<String, WeightedTerm>();
+            for (int i = 0; i < weightedTerms.Length; i++)
+            {
+                WeightedTerm existingTerm = termsToFind[weightedTerms[i].Term];
+                if ((existingTerm == null)
+                    || (existingTerm.Weight < weightedTerms[i].Weight))
+                {
+                    // if a term is defined more than once, always use the highest scoring
+                    // Weight
+                    termsToFind[weightedTerms[i].Term] = weightedTerms[i];
+                    maxTermWeight = Math.Max(maxTermWeight, weightedTerms[i].Weight);
+                }
+            }
+        }
+
+        /* (non-Javadoc)
+         * @see org.apache.lucene.search.highlight.Scorer#init(org.apache.lucene.analysis.TokenStream)
+         */
+
+        public TokenStream Init(TokenStream tokenStream)
+        {
+            termAtt = tokenStream.AddAttribute<ITermAttribute>();
+            return null;
+        }
+
+        /*
+         * (non-Javadoc)
+         * 
+         * @see
+         * org.apache.lucene.search.highlight.FragmentScorer#startFragment(org.apache
+         * .lucene.search.highlight.TextFragment)
+         */
+
+        public void StartFragment(TextFragment newFragment)
+        {
+            uniqueTermsInFragment = new HashSet<String>();
+            currentTextFragment = newFragment;
+            totalScore = 0;
+
+        }
+
+
+        /* (non-Javadoc)
+         * @see org.apache.lucene.search.highlight.Scorer#getTokenScore()
+         */
+
+        public float GetTokenScore()
+        {
+            String termText = termAtt.Term();
+
+            WeightedTerm queryTerm = termsToFind[termText];
+            if (queryTerm == null)
+            {
+                // not a query term - return
+                return 0;
+            }
+            // found a query term - is it unique in this doc?
+            if (!uniqueTermsInFragment.Contains(termText))
+            {
+                totalScore += queryTerm.Weight;
+                uniqueTermsInFragment.Add(termText);
+            }
+            return queryTerm.Weight;
+        }
+
+
+        /* (non-Javadoc)
+         * @see org.apache.lucene.search.highlight.Scorer#getFragmentScore()
+         */
+
+        public float GetFragmentScore()
+        {
+            return totalScore;
+        }
+
+        /*
+         * (non-Javadoc)
+         * 
+         * @see
+         * org.apache.lucene.search.highlight.FragmentScorer#allFragmentsProcessed()
+         */
+
+        public void AllFragmentsProcessed()
+        {
+            // this class has no special operations to perform at end of processing
+        }
+
+        /**
+         * 
+         * @return The highest weighted term (useful for passing to GradientFormatter
+         *         to set top end of coloring scale.
+         */
+
+        public float GetMaxTermWeight()
+        {
+            return maxTermWeight;
+        }
+    }
 }
\ No newline at end of file

Propchange: incubator/lucene.net/trunk/src/contrib/Highlighter/QueryTermScorer.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/lucene.net/trunk/src/contrib/Highlighter/SimpleSpanFragmenter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/contrib/Highlighter/SimpleSpanFragmenter.cs?rev=1344556&r1=1344555&r2=1344556&view=diff
==============================================================================
--- incubator/lucene.net/trunk/src/contrib/Highlighter/SimpleSpanFragmenter.cs (original)
+++ incubator/lucene.net/trunk/src/contrib/Highlighter/SimpleSpanFragmenter.cs Thu May 31 04:12:43 2012
@@ -1,91 +1,91 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using Lucene.Net.Analysis;
-using Lucene.Net.Analysis.Tokenattributes;
-
-namespace Lucene.Net.Search.Highlight
-{
-    public class SimpleSpanFragmenter : IFragmenter
-    {
-        private static int DEFAULT_FRAGMENT_SIZE = 100;
-        private int fragmentSize;
-        private int currentNumFrags;
-        private int position = -1;
-        private QueryScorer queryScorer;
-        private int waitForPos = -1;
-        private int textSize;
-        private ITermAttribute termAtt;
-        private IPositionIncrementAttribute posIncAtt;
-        private IOffsetAttribute offsetAtt;
-
-        /// <param name="queryScorer">QueryScorer that was used to score hits</param>
-        public SimpleSpanFragmenter(QueryScorer queryScorer)
-            : this(queryScorer, DEFAULT_FRAGMENT_SIZE)
-        {
-
-        }
-
-        /// <param name="queryScorer">QueryScorer that was used to score hits</param>
-        /// <param name="fragmentSize">size in bytes of each fragment</param>
-        public SimpleSpanFragmenter(QueryScorer queryScorer, int fragmentSize)
-        {
-            this.fragmentSize = fragmentSize;
-            this.queryScorer = queryScorer;
-        }
-
-        /// <seealso cref="IFragmenter.IsNewFragment"/>
-        public bool IsNewFragment()
-        {
-            position += posIncAtt.PositionIncrement;
-
-            if (waitForPos == position)
-            {
-                waitForPos = -1;
-            }
-            else if (waitForPos != -1)
-            {
-                return false;
-            }
-
-            WeightedSpanTerm wSpanTerm = queryScorer.GetWeightedSpanTerm(termAtt.Term());
-
-            if (wSpanTerm != null)
-            {
-                List<PositionSpan> positionSpans = wSpanTerm.GetPositionSpans();
-
-                for (int i = 0; i < positionSpans.Count; i++)
-                {
-                    if (positionSpans[i].Start == position)
-                    {
-                        waitForPos = positionSpans[i].End + 1;
-                        break;
-                    }
-                }
-            }
-
-            bool isNewFrag = offsetAtt.EndOffset >= (fragmentSize*currentNumFrags)
-                             && (textSize - offsetAtt.EndOffset) >= ((uint) fragmentSize >> 1);
-
-
-            if (isNewFrag)
-            {
-                currentNumFrags++;
-            }
-
-            return isNewFrag;
-        }
-
-        /// <seealso cref="IFragmenter.Start(string, TokenStream)"/>
-        public void Start(String originalText, TokenStream tokenStream)
-        {
-            position = -1;
-            currentNumFrags = 1;
-            textSize = originalText.Length;
-            termAtt = tokenStream.AddAttribute<ITermAttribute>();
-            posIncAtt = tokenStream.AddAttribute<IPositionIncrementAttribute>();
-            offsetAtt = tokenStream.AddAttribute<IOffsetAttribute>();
-        }
-    }
-}
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using Lucene.Net.Analysis;
+using Lucene.Net.Analysis.Tokenattributes;
+
+namespace Lucene.Net.Search.Highlight
+{
+    public class SimpleSpanFragmenter : IFragmenter
+    {
+        private static int DEFAULT_FRAGMENT_SIZE = 100;
+        private int fragmentSize;
+        private int currentNumFrags;
+        private int position = -1;
+        private QueryScorer queryScorer;
+        private int waitForPos = -1;
+        private int textSize;
+        private ITermAttribute termAtt;
+        private IPositionIncrementAttribute posIncAtt;
+        private IOffsetAttribute offsetAtt;
+
+        /// <param name="queryScorer">QueryScorer that was used to score hits</param>
+        public SimpleSpanFragmenter(QueryScorer queryScorer)
+            : this(queryScorer, DEFAULT_FRAGMENT_SIZE)
+        {
+
+        }
+
+        /// <param name="queryScorer">QueryScorer that was used to score hits</param>
+        /// <param name="fragmentSize">size in bytes of each fragment</param>
+        public SimpleSpanFragmenter(QueryScorer queryScorer, int fragmentSize)
+        {
+            this.fragmentSize = fragmentSize;
+            this.queryScorer = queryScorer;
+        }
+
+        /// <seealso cref="IFragmenter.IsNewFragment"/>
+        public bool IsNewFragment()
+        {
+            position += posIncAtt.PositionIncrement;
+
+            if (waitForPos == position)
+            {
+                waitForPos = -1;
+            }
+            else if (waitForPos != -1)
+            {
+                return false;
+            }
+
+            WeightedSpanTerm wSpanTerm = queryScorer.GetWeightedSpanTerm(termAtt.Term());
+
+            if (wSpanTerm != null)
+            {
+                List<PositionSpan> positionSpans = wSpanTerm.GetPositionSpans();
+
+                for (int i = 0; i < positionSpans.Count; i++)
+                {
+                    if (positionSpans[i].Start == position)
+                    {
+                        waitForPos = positionSpans[i].End + 1;
+                        break;
+                    }
+                }
+            }
+
+            bool isNewFrag = offsetAtt.EndOffset >= (fragmentSize*currentNumFrags)
+                             && (textSize - offsetAtt.EndOffset) >= ((uint) fragmentSize >> 1);
+
+
+            if (isNewFrag)
+            {
+                currentNumFrags++;
+            }
+
+            return isNewFrag;
+        }
+
+        /// <seealso cref="IFragmenter.Start(string, TokenStream)"/>
+        public void Start(String originalText, TokenStream tokenStream)
+        {
+            position = -1;
+            currentNumFrags = 1;
+            textSize = originalText.Length;
+            termAtt = tokenStream.AddAttribute<ITermAttribute>();
+            posIncAtt = tokenStream.AddAttribute<IPositionIncrementAttribute>();
+            offsetAtt = tokenStream.AddAttribute<IOffsetAttribute>();
+        }
+    }
+}

Propchange: incubator/lucene.net/trunk/src/contrib/Highlighter/SimpleSpanFragmenter.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/lucene.net/trunk/src/contrib/Highlighter/WeightedSpanTerm.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/contrib/Highlighter/WeightedSpanTerm.cs?rev=1344556&r1=1344555&r2=1344556&view=diff
==============================================================================
--- incubator/lucene.net/trunk/src/contrib/Highlighter/WeightedSpanTerm.cs (original)
+++ incubator/lucene.net/trunk/src/contrib/Highlighter/WeightedSpanTerm.cs Thu May 31 04:12:43 2012
@@ -1,104 +1,104 @@
-/**
- * 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.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Lucene.Net.Search.Highlight
-{
-    /// <summary>
-    /// Lightweight class to hold term, Weight, and positions used for scoring this term.
-    /// </summary>
-    public class WeightedSpanTerm : WeightedTerm
-    {
-        private bool _positionSensitive;
-        private readonly List<PositionSpan> _positionSpans = new List<PositionSpan>();
-
-        public WeightedSpanTerm(float weight, String term)
-            : base(weight, term)
-        {
-
-            this._positionSpans = new List<PositionSpan>();
-        }
-
-        public WeightedSpanTerm(float weight, String term, bool positionSensitive)
-            : base(weight, term)
-        {
-
-            this._positionSensitive = positionSensitive;
-        }
-
-        /// <summary>
-        /// Checks to see if this term is valid at <c>position</c>.
-        /// </summary>
-        /// <param name="position">to check against valid term postions</param>
-        /// <returns>true iff this term is a hit at this position</returns>
-        public bool CheckPosition(int position)
-        {
-            // There would probably be a slight speed improvement if PositionSpans
-            // where kept in some sort of priority queue - that way this method
-            // could
-            // bail early without checking each PositionSpan.
-
-            foreach (var positionSpan in _positionSpans)
-            {
-                if (((position >= positionSpan.Start) && (position <= positionSpan.End)))
-                {
-                    return true;
-                }
-            }
-
-            return false;
-        }
-
-        public void AddPositionSpans(List<PositionSpan> positionSpans)
-        {
-            this._positionSpans.AddRange(positionSpans);
-        }
-
-        public bool IsPositionSensitive()
-        {
-            return _positionSensitive;
-        }
-
-        public void SetPositionSensitive(bool positionSensitive)
-        {
-            this._positionSensitive = positionSensitive;
-        }
-
-        public List<PositionSpan> GetPositionSpans()
-        {
-            return _positionSpans;
-        }
-    }
-
-
-    // Utility class to store a Span
-    public class PositionSpan
-    {
-        public int Start { get; private set; }
-        public int End { get; private set; }
-
-        public PositionSpan(int start, int end)
-        {
-            this.Start = start;
-            this.End = end;
-        }
-    }
-}
+/**
+ * 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.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Lucene.Net.Search.Highlight
+{
+    /// <summary>
+    /// Lightweight class to hold term, Weight, and positions used for scoring this term.
+    /// </summary>
+    public class WeightedSpanTerm : WeightedTerm
+    {
+        private bool _positionSensitive;
+        private readonly List<PositionSpan> _positionSpans = new List<PositionSpan>();
+
+        public WeightedSpanTerm(float weight, String term)
+            : base(weight, term)
+        {
+
+            this._positionSpans = new List<PositionSpan>();
+        }
+
+        public WeightedSpanTerm(float weight, String term, bool positionSensitive)
+            : base(weight, term)
+        {
+
+            this._positionSensitive = positionSensitive;
+        }
+
+        /// <summary>
+        /// Checks to see if this term is valid at <c>position</c>.
+        /// </summary>
+        /// <param name="position">to check against valid term postions</param>
+        /// <returns>true iff this term is a hit at this position</returns>
+        public bool CheckPosition(int position)
+        {
+            // There would probably be a slight speed improvement if PositionSpans
+            // where kept in some sort of priority queue - that way this method
+            // could
+            // bail early without checking each PositionSpan.
+
+            foreach (var positionSpan in _positionSpans)
+            {
+                if (((position >= positionSpan.Start) && (position <= positionSpan.End)))
+                {
+                    return true;
+                }
+            }
+
+            return false;
+        }
+
+        public void AddPositionSpans(List<PositionSpan> positionSpans)
+        {
+            this._positionSpans.AddRange(positionSpans);
+        }
+
+        public bool IsPositionSensitive()
+        {
+            return _positionSensitive;
+        }
+
+        public void SetPositionSensitive(bool positionSensitive)
+        {
+            this._positionSensitive = positionSensitive;
+        }
+
+        public List<PositionSpan> GetPositionSpans()
+        {
+            return _positionSpans;
+        }
+    }
+
+
+    // Utility class to store a Span
+    public class PositionSpan
+    {
+        public int Start { get; private set; }
+        public int End { get; private set; }
+
+        public PositionSpan(int start, int end)
+        {
+            this.Start = start;
+            this.End = end;
+        }
+    }
+}

Propchange: incubator/lucene.net/trunk/src/contrib/Highlighter/WeightedSpanTerm.cs
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message