lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [5/6] lucenenet git commit: Updated IndexableField references in Lucene.Net.Suggest\Suggest\DocumentDictionary
Date Mon, 15 Aug 2016 20:12:53 GMT
Updated IndexableField references in Lucene.Net.Suggest\Suggest\DocumentDictionary


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/73f6094d
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/73f6094d
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/73f6094d

Branch: refs/heads/master
Commit: 73f6094db4cde40343566d9c52398430f4ccbdc6
Parents: cf2396b
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sun Aug 7 23:13:41 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sun Aug 7 23:13:41 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Suggest/Suggest/DocumentDictionary.cs | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/73f6094d/src/Lucene.Net.Suggest/Suggest/DocumentDictionary.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Suggest/Suggest/DocumentDictionary.cs b/src/Lucene.Net.Suggest/Suggest/DocumentDictionary.cs
index 47cd026..fe51bb6 100644
--- a/src/Lucene.Net.Suggest/Suggest/DocumentDictionary.cs
+++ b/src/Lucene.Net.Suggest/Suggest/DocumentDictionary.cs
@@ -172,11 +172,11 @@ namespace Lucene.Net.Search.Suggest
                     if (hasPayloads)
                     {
                         IndexableField payload = doc.GetField(outerInstance.payloadField);
-                        if (payload == null || (payload.BinaryValue() == null &&
payload.StringValue == null))
+                        if (payload == null || (payload.BinaryValue == null && payload.StringValue
== null))
                         {
                             continue;
                         }
-                        tempPayload = payload.BinaryValue() ?? new BytesRef(payload.StringValue);
+                        tempPayload = payload.BinaryValue ?? new BytesRef(payload.StringValue);
                     }
 
                     if (hasContexts)
@@ -184,23 +184,23 @@ namespace Lucene.Net.Search.Suggest
                         IndexableField[] contextFields = doc.GetFields(outerInstance.contextsField);
                         foreach (IndexableField contextField in contextFields)
                         {
-                            if (contextField.BinaryValue() == null && contextField.StringValue
== null)
+                            if (contextField.BinaryValue == null && contextField.StringValue
== null)
                             {
                                 continue;
                             }
                             else
                             {
-                                tempContexts.Add(contextField.BinaryValue() ?? new BytesRef(contextField.StringValue));
+                                tempContexts.Add(contextField.BinaryValue ?? new BytesRef(contextField.StringValue));
                             }
                         }
                     }
 
                     IndexableField fieldVal = doc.GetField(outerInstance.field);
-                    if (fieldVal == null || (fieldVal.BinaryValue() == null && fieldVal.StringValue
== null))
+                    if (fieldVal == null || (fieldVal.BinaryValue == null && fieldVal.StringValue
== null))
                     {
                         continue;
                     }
-                    tempTerm = (fieldVal.StringValue != null) ? new BytesRef(fieldVal.StringValue)
: fieldVal.BinaryValue();
+                    tempTerm = (fieldVal.StringValue != null) ? new BytesRef(fieldVal.StringValue)
: fieldVal.BinaryValue;
 
                     currentPayload = tempPayload;
                     currentContexts = tempContexts;


Mime
View raw message