r13752 - in search_server/trunk/index/src: main/java/org/musicbrainz/search/index test/java/org/musicbrainz/search/index

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

r13752 - in search_server/trunk/index/src: main/java/org/musicbrainz/search/index test/java/org/musicbrainz/search/index

root-9
Author: ijabz
Date: 2014-05-13 08:21:52 +0000 (Tue, 13 May 2014)
New Revision: 13752

Modified:
   search_server/trunk/index/src/main/java/org/musicbrainz/search/index/EditorIndex.java
   search_server/trunk/index/src/test/java/org/musicbrainz/search/index/EditorIndexTest.java
Log:
SEARCH-265:Editor search remove filtering if confirm date null

Modified: search_server/trunk/index/src/main/java/org/musicbrainz/search/index/EditorIndex.java
===================================================================
--- search_server/trunk/index/src/main/java/org/musicbrainz/search/index/EditorIndex.java 2014-04-29 10:53:15 UTC (rev 13751)
+++ search_server/trunk/index/src/main/java/org/musicbrainz/search/index/EditorIndex.java 2014-05-13 08:21:52 UTC (rev 13752)
@@ -87,10 +87,7 @@
                 "SELECT editor.id, editor.name as name," +
                   "  editor.bio  " +
                 " FROM editor " +
-                " WHERE editor.id BETWEEN ? AND ?" +
-                " AND email_confirm_date is not NULL");
-
-
+                " WHERE editor.id BETWEEN ? AND ?");
     }
 
 

Modified: search_server/trunk/index/src/test/java/org/musicbrainz/search/index/EditorIndexTest.java
===================================================================
--- search_server/trunk/index/src/test/java/org/musicbrainz/search/index/EditorIndexTest.java 2014-04-29 10:53:15 UTC (rev 13751)
+++ search_server/trunk/index/src/test/java/org/musicbrainz/search/index/EditorIndexTest.java 2014-05-13 08:21:52 UTC (rev 13752)
@@ -77,14 +77,17 @@
     }
 
     @Test
-    public void testIndexEditorIgnoreBioIfNotConfirmed() throws Exception {
+    public void testIndexEditorDontIgnoreBioIfNotConfirmed() throws Exception {
 
         addEditorTwo();
         RAMDirectory ramDir = new RAMDirectory();
         createIndex(ramDir);
 
         IndexReader ir = DirectoryReader.open(ramDir);
-        assertEquals(1, ir.numDocs());
+        assertEquals(2, ir.numDocs());
+        {
+            checkTerm(ir, EditorIndexField.BIO, "janet");
+        }
         ir.close();
     }
 }
\ No newline at end of file


_______________________________________________
MusicBrainz-commits mailing list
[hidden email]
http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-commits