Skip to content

Instantly share code, notes, and snippets.

@robinloxley1
robinloxley1 / gist:7ea7c4f37a3413b1ca16
Created February 29, 2016 03:36
sample elasticsearch query to sort parent based on child field
{
"query":{
"has_child":{
"query":{
"function_score":{
"functions":[
{
"field_value_factor":{
"factor":1,
"field":"count"
class first {
file {'testfile':
path => '/tmp/testfile',
ensure => present,
mode => 0640,
content => "I'm a test file by guopeng",
}
notify {"so that is it....":
require => File['testfile'],
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define :test_vm do |test_vm|
test_vm.vm.box = "ubuntu13.10_64"
test_vm.vm.network :private_network, ip: "192.168.32.2"
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
end