-
-
Save chrisberkhout/5021c5c7ef129be73346 to your computer and use it in GitHub Desktop.
stemming problem with snowball
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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