Created
July 13, 2014 14:57
-
-
Save mukulgupta2507/22655b30d235c2e44339 to your computer and use it in GitHub Desktop.
Query_string for using full text search in autocompleter
This file contains hidden or 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 -XGET 'localhost:9200/booksindex/booksidx/_search?pretty=true' -d '{ | |
"query": { | |
"query_string": { | |
"query": "mastering by marek", | |
"fields": [ | |
"title.title_shingles^2", | |
"author.author_shingles" | |
] | |
} | |
} | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment