lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r921924 - /lucene/lucene.net/trunk/C#/contrib/FastVectorHighlighter.Net/FastVectorHighlighter.Net/FieldQuery.cs
Date Thu, 11 Mar 2010 16:33:04 GMT
Author: digy
Date: Thu Mar 11 16:33:04 2010
New Revision: 921924

URL: http://svn.apache.org/viewvc?rev=921924&view=rev
Log:
LUCENENET-349 FieldMatch not working in FastVectorHighlighter

Modified:
    lucene/lucene.net/trunk/C#/contrib/FastVectorHighlighter.Net/FastVectorHighlighter.Net/FieldQuery.cs

Modified: lucene/lucene.net/trunk/C#/contrib/FastVectorHighlighter.Net/FastVectorHighlighter.Net/FieldQuery.cs
URL: http://svn.apache.org/viewvc/lucene/lucene.net/trunk/C%23/contrib/FastVectorHighlighter.Net/FastVectorHighlighter.Net/FieldQuery.cs?rev=921924&r1=921923&r2=921924&view=diff
==============================================================================
--- lucene/lucene.net/trunk/C#/contrib/FastVectorHighlighter.Net/FastVectorHighlighter.Net/FieldQuery.cs
(original)
+++ lucene/lucene.net/trunk/C#/contrib/FastVectorHighlighter.Net/FastVectorHighlighter.Net/FieldQuery.cs
Thu Mar 11 16:33:04 2010
@@ -282,8 +282,7 @@ namespace Lucene.Net.Search.Vectorhighli
 
         public List<String> getTermSet(String field)
         {
-            if (!fieldMatch) return null;
-            return termSetMap.Get(field);
+            return termSetMap.Get(fieldMatch ? field : null);
         }
 
         /**
@@ -313,8 +312,7 @@ namespace Lucene.Net.Search.Vectorhighli
 
         private QueryPhraseMap GetRootMap(String fieldName)
         {
-            if (!fieldMatch) return null;
-            return rootMaps.Get(fieldName);
+            return rootMaps.Get(fieldMatch ? fieldName : null);
         }
 
         int NextTermOrPhraseNumber()



Mime
View raw message