You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by sy...@apache.org on 2016/09/11 21:30:35 UTC

[04/50] [abbrv] lucenenet git commit: Changed QueryParserTokenManager line back to the way it was in Lucene.Net 3.0.3, although it differs than the Java version, this appears to be correct in .NET.

Changed QueryParserTokenManager line back to the way it was in Lucene.Net 3.0.3, although it differs than the Java version, this appears to be correct in .NET.


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

Branch: refs/heads/master
Commit: c9b96c8d231e482d3e322f2546978c831c7eb08a
Parents: d5c4372
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Sun Jul 31 18:43:14 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Fri Sep 2 22:29:47 2016 +0700

----------------------------------------------------------------------
 Lucene.Net.QueryParser/Classic/QueryParserTokenManager.cs | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c9b96c8d/Lucene.Net.QueryParser/Classic/QueryParserTokenManager.cs
----------------------------------------------------------------------
diff --git a/Lucene.Net.QueryParser/Classic/QueryParserTokenManager.cs b/Lucene.Net.QueryParser/Classic/QueryParserTokenManager.cs
index 3a483bb..e92bcb8 100644
--- a/Lucene.Net.QueryParser/Classic/QueryParserTokenManager.cs
+++ b/Lucene.Net.QueryParser/Classic/QueryParserTokenManager.cs
@@ -335,9 +335,11 @@ namespace Lucene.Net.QueryParser.Classic
 				}
 				else if (curChar < 128)
 				{
-                    // TODO: This didn't change in Java from 3.0.1 to 4.8.0, but it is different in .NET
-                    //ulong l = (ulong) (1L << (curChar & 63)); 
-                    ulong l = (ulong)(1L << (curChar & 077));
+                    // NOTE: This didn't change in Java from 3.0.1 to 4.8.0, but it is different in .NET.
+                    // But changing it back made more tests pass, so I am working under the assumption 63
+                    // is the correct value.
+                    //ulong l = (ulong)(1L << (curChar & 077));
+                    ulong l = (ulong) (1L << (curChar & 63)); 
 					do 
 					{
 						switch (jjstateSet[--i])