{
	"$schema" : "http://json-schema.org/draft-04/schema#",
	"title" : "QueryUsage",
	"type" : "object",
	"additionalProperties" : false,
	"description" : "EntityUserInsight .. query_usage object",
	"properties" : {
		"weight" : {
			"type" : "number",
			"description" : "weight associated with the entity"
		},
		
        "query" : {
          	"type" : "string",
          	"description" : "search term entered by user"
        },
        
        "query_location" : {
          	"type" : "string",
          	"description" : "query location (latitude, longitude)"
        },
        
        "clicked_entity_ids" : {
          	"type" : "array",
          	"items" : {
            	"$ref" : "/resources/schema/data/entity/user/insight/v1/SelectedEntity.json"
          	},
          	"description" : "the entities user chose"
        },
        
        "markers" : {
          	"type" : "array",
          	"items" : {
            	"$ref" : "/resources/schema/data/entity/user/insight/v1/Markers.json"
          	},
          	"description" : "array of associated markers"
        }
    },
      
    "required" : 
    [ 
	  	"weight", 
		"query", 
		"query_location"
    ]
      
}