OSDN Git Service

Correct wildcard selection bug where serching searches starting with * would not...
[neighbornote/NeighborNote.git] / 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