OSDN Git Service

Correct wildcard selection bug where serching searches starting with * would not...
authorRandy Baumgarte <randy@fbn.cx>
Sun, 11 Sep 2011 13:36:39 +0000 (09:36 -0400)
committerRandy Baumgarte <randy@fbn.cx>
Sun, 11 Sep 2011 13:36:39 +0000 (09:36 -0400)
src/cx/fbn/nevernote/sql/REnSearch.java

index abb6c85..3fbbaa8 100644 (file)
@@ -716,7 +716,7 @@ public class REnSearch {
                \r
                if (subSelect) {\r
                        for (int i=0; i<getWords().size(); i++) {\r
-                               if (getWords().get(i).indexOf("*") == 0) {\r
+                               if (getWords().get(i).indexOf("*") == -1) {\r
                                        indexQuery.prepare("Select distinct guid from words where weight >= " +minimumRecognitionWeight +\r
                                                        " and word=:word");\r
                                        indexQuery.bindValue(":word", getWords().get(i));\r