Skip to content

Instantly share code, notes, and snippets.

@mente
Created November 29, 2011 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mente/1404391 to your computer and use it in GitHub Desktop.
Save mente/1404391 to your computer and use it in GitHub Desktop.
query_all with hyphens
{
...
"address": "9 Rue Saint - Hubert, Laval, QC H7G 2X7, Canada"
...
}
{
"development.place" : {
"entity" : {
"properties" : {
...
"address" : {
"analyzer" : "standard",
"type" : "string"
}
...
}
}
}
}
{
"query": {
"query_string": {
"query": "9 Rue Saint - Hubert, Laval, QC H7G 2X7, Canada",
"default_operator": "AND"
}
}
}
result is empty.
{
"query": {
"query_string": {
"query": "\"9 Rue Saint - Hubert, Laval, QC H7G 2X7, Canada\"",
"default_operator": "AND"
}
}
}
returns correctly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment