Skip to content

Instantly share code, notes, and snippets.

{
location: {
city: "Austin",
state: "TX"
},
category: {
name: "Professional Services",
id: 42,
"description": "Welcome to Austin, Texas's best directory brought to you by the OwnLocal. Check out businesses like Dime Box Cattle Co...",
"images": [
@pib
pib / float_bug.go
Last active March 3, 2016 00:11
Demonstration of float scan bug in github.com/go-sql-driver/mysql
package main
import (
"database/sql"
"fmt"
"log"
_ "github.com/go-sql-driver/mysql"
)
{
"query": {
"bool": {
"should": [
{
"simple_query_string": {
"fields": [
"name^3",
"description",
"service_location",