Skip to content

Instantly share code, notes, and snippets.

@chrisberkhout
Created July 3, 2011 06:46
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 chrisberkhout/5021c5c7ef129be73346 to your computer and use it in GitHub Desktop.
Save chrisberkhout/5021c5c7ef129be73346 to your computer and use it in GitHub Desktop.
stemming problem with snowball
curl -XPUT 'http://127.0.0.1:9200/test/?pretty=1' -d '
{
index: {
analyzer: "snowball"
}
}
'
curl -XPOST 'http://127.0.0.1:9200/test/document?pretty=1' -d '
{
"title" : "The quick brown fox jumps over the lazy log."
}
'
curl -XGET 'http://127.0.0.1:9200/test/_search?pretty=1' -d '
{
"query" : {
"field" : {
"_all" : "jump"
}
}
}
'
# {
# "took" : 1,
# "timed_out" : false,
# "_shards" : {
# "total" : 5,
# "successful" : 5,
# "failed" : 0
# },
# "hits" : {
# "total" : 0,
# "max_score" : null,
# "hits" : [ ]
# }
# }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment