lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pnas...@apache.org
Subject [Lucene.Net] svn commit: r1195313 - /incubator/lucene.net/trunk/src/contrib/Similarity/Similar/MoreLikeThis.cs
Date Mon, 31 Oct 2011 02:39:36 GMT
Author: pnasser
Date: Mon Oct 31 02:39:35 2011
New Revision: 1195313

URL: http://svn.apache.org/viewvc?rev=1195313&view=rev
Log:
Lucenenet-450

Modified:
    incubator/lucene.net/trunk/src/contrib/Similarity/Similar/MoreLikeThis.cs

Modified: incubator/lucene.net/trunk/src/contrib/Similarity/Similar/MoreLikeThis.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/contrib/Similarity/Similar/MoreLikeThis.cs?rev=1195313&r1=1195312&r2=1195313&view=diff
==============================================================================
--- incubator/lucene.net/trunk/src/contrib/Similarity/Similar/MoreLikeThis.cs (original)
+++ incubator/lucene.net/trunk/src/contrib/Similarity/Similar/MoreLikeThis.cs Mon Oct 31 02:39:35
2011
@@ -769,7 +769,7 @@ namespace Similarity.Net
                     {
                         for (int j = 0; j < text.Length; j++)
                         {
-                            AddTermFrequencies(new System.IO.StreamReader(text[j]), termFreqMap,
fieldName);
+                            AddTermFrequencies(new System.IO.StringReader(text[j]), termFreqMap,
fieldName);
                         }
                     }
                 }
@@ -820,7 +820,7 @@ namespace Similarity.Net
         /// </param>
         /// <param name="fieldName">Used by analyzer for any special per-field analysis
         /// </param>
-        private void  AddTermFrequencies(System.IO.StreamReader r, System.Collections.IDictionary
termFreqMap, System.String fieldName)
+        private void  AddTermFrequencies(System.IO.TextReader r, System.Collections.IDictionary
termFreqMap, System.String fieldName)
         {
             TokenStream ts = analyzer.TokenStream(fieldName, r);
             Lucene.Net.Analysis.Token token;



Mime
View raw message