Created
          April 3, 2015 06:41 
        
      - 
      
- 
        Save alexmorozov/b4aa8aabc8df69731aab to your computer and use it in GitHub Desktop. 
Revisions
- 
        Alex Morozov created this gist Apr 3, 2015 .There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ "script_score":{ "params":{ "normalizer":15 }, "script":"_score+((doc.containsKey(\"hotel.eating_place.rating\") && !doc[\"hotel.eating_place.rating\"].empty ? doc[\"hotel.eating_place.rating\"].value : 0.0)+(doc.containsKey(\"hotel.basin.rating\") && !doc[\"hotel.basin.rating\"].empty ? doc[\"hotel.basin.rating\"].value : 0.0)+(doc.containsKey(\"hotel.room.rating\") && !doc[\"hotel.room.rating\"].empty ? doc[\"hotel.room.rating\"].value : 0.0))/normalizer" }, "boost_mode":"replace" 
 Alex Morozov
              created
            
            this gist
            
              Alex Morozov
              created
            
            this gist