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: r1136503 - /incubator/lucene.net/trunk/src/contrib/FastVectorHighlighter/BaseFragmentsBuilder.cs
Date Thu, 16 Jun 2011 15:58:27 GMT
Author: digy
Date: Thu Jun 16 15:58:27 2011
New Revision: 1136503

URL: http://svn.apache.org/viewvc?rev=1136503&view=rev
Log:
[LUCENENET-426] Mark BaseFragmentsBuilder methods as 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=1136503&r1=1136502&r2=1136503&view=diff
==============================================================================
--- incubator/lucene.net/trunk/src/contrib/FastVectorHighlighter/BaseFragmentsBuilder.cs (original)
+++ incubator/lucene.net/trunk/src/contrib/FastVectorHighlighter/BaseFragmentsBuilder.cs Thu
Jun 16 15:58:27 2011
@@ -65,14 +65,14 @@ namespace Lucene.Net.Search.Vectorhighli
 
         public abstract List<WeightedFragInfo> GetWeightedFragInfoList(List<WeightedFragInfo>
src);
 
-        public String CreateFragment(IndexReader reader, int docId, String fieldName, FieldFragList
fieldFragList)
+        public virtual String CreateFragment(IndexReader reader, int docId, String fieldName,
FieldFragList fieldFragList)
         {
             String[] fragments = CreateFragments(reader, docId, fieldName, fieldFragList,
1);
             if (fragments == null || fragments.Length == 0) return null;
             return fragments[0];
         }
 
-        public String[] CreateFragments(IndexReader reader, int docId, String fieldName,
FieldFragList fieldFragList, int maxNumFragments)
+        public virtual String[] CreateFragments(IndexReader reader, int docId, String fieldName,
FieldFragList fieldFragList, int maxNumFragments)
         {
             if (maxNumFragments < 0)
                 throw new ArgumentException("maxNumFragments(" + maxNumFragments + ") must
be positive number.");
@@ -160,7 +160,7 @@ namespace Lucene.Net.Search.Vectorhighli
 
 
         [Obsolete]
-        protected String GetFragmentSource(StringBuilder buffer, int[] index, String[] values,
int startOffset, int endOffset)
+        protected virtual String GetFragmentSource(StringBuilder buffer, int[] index, String[]
values, int startOffset, int endOffset)
         {
             while (buffer.Length < endOffset && index[0] < values.Length)
             {
@@ -173,7 +173,7 @@ namespace Lucene.Net.Search.Vectorhighli
             return buffer.ToString().Substring(startOffset, eo - startOffset);
         }
 
-        protected String GetFragmentSource(StringBuilder buffer, int[] index, Field[] values,
int startOffset, int endOffset)
+        protected virtual String GetFragmentSource(StringBuilder buffer, int[] index, Field[]
values, int startOffset, int endOffset)
         {
             while (buffer.Length < endOffset && index[0] < values.Length)
             {



Mime
View raw message