r13739 - search_server/trunk/index/src/main/java/org/musicbrainz/search/index

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

r13739 - search_server/trunk/index/src/main/java/org/musicbrainz/search/index

root-9
Author: ijabz
Date: 2014-04-25 12:17:51 +0000 (Fri, 25 Apr 2014)
New Revision: 13739

Added:
   search_server/trunk/index/src/main/java/org/musicbrainz/search/index/AreaBoostDoc.java
Modified:
   search_server/trunk/index/src/main/java/org/musicbrainz/search/index/AreaIndex.java
Log:
SEARCH-347:Countries should be sorted before cities in Area search

Modified: search_server/trunk/index/src/main/java/org/musicbrainz/search/index/AreaIndex.java
===================================================================
--- search_server/trunk/index/src/main/java/org/musicbrainz/search/index/AreaIndex.java 2014-04-25 11:43:41 UTC (rev 13738)
+++ search_server/trunk/index/src/main/java/org/musicbrainz/search/index/AreaIndex.java 2014-04-25 12:17:51 UTC (rev 13739)
@@ -403,6 +403,8 @@
 
         String store = MMDSerializer.serialize(areaList);
         doc.addField(AreaIndexField.AREA_STORE, store);
+
+        AreaBoostDoc.boost(area.getType(), doc.getLuceneDocument());
         return doc.getLuceneDocument();
     }
 


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