lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [Lucene.Net] svn commit: r1138770 - /incubator/lucene.net/trunk/src/contrib/FastVectorHighlighter/BaseFragmentsBuilder.cs
Date Thu, 23 Jun 2011 08:42:54 GMT
Author: digy
Date: Thu Jun 23 08:42:54 2011
New Revision: 1138770

URL: http://svn.apache.org/viewvc?rev=1138770&view=rev
Log:
[LUCENENET-426] protected -> protected virtual

Modified:
    incubator/lucene.net/trunk/src/contrib/FastVectorHighlighter/BaseFragmentsBuilder.cs

Modified: incubator/lucene.net/trunk/src/contrib/FastVectorHighlighter/BaseFragmentsBuilder.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/contrib/FastVectorHighlighter/BaseFragmentsBuilder.cs?rev=1138770&r1=1138769&r2=1138770&view=diff
==============================================================================
--- incubator/lucene.net/trunk/src/contrib/FastVectorHighlighter/BaseFragmentsBuilder.cs (original)
+++ incubator/lucene.net/trunk/src/contrib/FastVectorHighlighter/BaseFragmentsBuilder.cs Thu
Jun 23 08:42:54 2011
@@ -93,13 +93,13 @@ namespace Lucene.Net.Search.Vectorhighli
         }
 
         [Obsolete]
-        protected String[] GetFieldValues(IndexReader reader, int docId, String fieldName)
+        protected virtual String[] GetFieldValues(IndexReader reader, int docId, String fieldName)
         {
             Document doc = reader.Document(docId, new MapFieldSelector(new String[] { fieldName
}));
             return doc.GetValues(fieldName); // according to Document class javadoc, this
never returns null
         }
 
-        protected Field[] GetFields(IndexReader reader, int docId, String fieldName)
+        protected virtual Field[] GetFields(IndexReader reader, int docId, String fieldName)
         {
             // according to javadoc, doc.getFields(fieldName) cannot be used with lazy loaded
field???
             Document doc = reader.Document(docId, new MapFieldSelector(new String[] { fieldName
}));
@@ -107,13 +107,13 @@ namespace Lucene.Net.Search.Vectorhighli
         }
 
         [Obsolete]
-        protected String MakeFragment(StringBuilder buffer, int[] index, String[] values,
WeightedFragInfo fragInfo)
+        protected virtual String MakeFragment(StringBuilder buffer, int[] index, String[]
values, WeightedFragInfo fragInfo)
         {
             int s = fragInfo.startOffset;
             return MakeFragment(fragInfo, GetFragmentSource(buffer, index, values, s, fragInfo.endOffset),
s);
         }
 
-        protected String MakeFragment(StringBuilder buffer, int[] index, Field[] values,
WeightedFragInfo fragInfo)
+        protected virtual String MakeFragment(StringBuilder buffer, int[] index, Field[]
values, WeightedFragInfo fragInfo)
         {
             int s = fragInfo.startOffset;
             return MakeFragment(fragInfo, GetFragmentSource(buffer, index, values, s, fragInfo.endOffset),
s);
@@ -186,13 +186,13 @@ namespace Lucene.Net.Search.Vectorhighli
             return buffer.ToString().Substring(startOffset, eo - startOffset);
         }
 
-        protected String GetPreTag(int num)
+        protected virtual String GetPreTag(int num)
         {
             int n = num % preTags.Length;
             return preTags[n];
         }
 
-        protected String GetPostTag(int num)
+        protected virtual String GetPostTag(int num)
         {
             int n = num % postTags.Length;
             return postTags[n];



Mime
View raw message