Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated outdated README and comment #71

Merged
merged 1 commit into from
May 8, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ examples:
// api.Port = "9300"

// add single go struct entity
response, _ := core.Index(true, "twitter", "tweet", "1", Tweet{"kimchy", "Search is cool"})
response, _ := core.Index("twitter", "tweet", "1", nil, Tweet{"kimchy", "Search is cool"})

// you have bytes
tw := Tweet{"kimchy", "Search is cool part 2"}
bytesLine, err := json.Marshall(tw)
response, _ := core.Index(true, "twitter", "tweet", "2", bytesLine)
response, _ := core.Index("twitter", "tweet", "2", nil, bytesLine)

// Bulk Indexing
core.IndexBulk("twitter", "tweet", "3", &time.Now(), Tweet{"kimchy", "Search is now cooler"})
Expand Down
1 change: 0 additions & 1 deletion core/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ var (
// SearchRequest performs a very basic search on an index via the request URI API.
//
// params:
// @pretty: bool for pretty reply or not, a parameter to elasticsearch
// @index: the elasticsearch index
// @_type: optional ("" if not used) search specific type in this index
// @args: a map of URL parameters. Allows all the URI-request parameters allowed by ElasticSearch.
Expand Down