OSDN Git Service

Test for adding tags names to search index (currently commented out).
authorRandy Baumgarte <randy@fbn.cx>
Sat, 13 Oct 2012 11:10:38 +0000 (07:10 -0400)
committerRandy Baumgarte <randy@fbn.cx>
Sat, 13 Oct 2012 11:10:38 +0000 (07:10 -0400)
src/cx/fbn/nevernote/threads/IndexRunner.java

index 6a25802..3c63f5d 100644 (file)
@@ -201,6 +201,13 @@ public class IndexRunner extends QObject implements Runnable {
                                addToIndex(guid, result[j], "CONTENT");\r
                        }\r
                }\r
+               \r
+               // Add tags\r
+               for (int j=0; j<n.getTagNamesSize(); j++) {\r
+                       if (n.getTagNames() != null && n.getTagNames().get(j) != null && !n.getTagNames().get(j).trim().equals(""))\r
+                               addToIndex(guid, n.getTagNames().get(j), "CONTENT");\r
+               }\r
+               \r
                // If we were interrupted, we will reindex this note next time\r
                if (Global.keepRunning) {\r
                        logger.log(logger.EXTREME, "Resetting note guid needed");\r