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

Search Implementation and Query Type #52

Merged
merged 1 commit into from Oct 11, 2014
Merged

Search Implementation and Query Type #52

merged 1 commit into from Oct 11, 2014

Conversation

spheromak
Copy link
Member

  • adds functionality to http.go for encoding querystrings
  • Consistency fis for JSONClass field name across the board (JsonClass)
  • new search.go and examples implementing standard search

TODO: Add partial, and figure out which way we want to go with the search service Do() vs Exec()

os.Stdout.Write(jsonData)
os.Stdout.WriteString("\n")

// build a seach query
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fujin looking for feedback on implementation:

There are 2 ways to search. One you create a query object and call Do() with a client, the other you call client.Search.Exec("index", "query") not 100% which way we want to go. I could leave the SearchQuery type and NewQuery, but add a new Search.Run( q SearchQuery) or something ? Sorta like attaching the method to the query, but It's not in line with how most of the rest of the api is done. Granted search is a bit unique in the api compared to other things.

* adds functionality to http.go for encoding querystrings
* Consistency fis for JSONClass field name across the board (JsonClass)
  Sorry bout this, but it came up while i was thinkinga bout decoding
  the returned objects. I can bust it out if it's anoying
* new search.go and examples implementing standard search
spheromak added a commit that referenced this pull request Oct 11, 2014
Search Implementation and Query Type
@spheromak spheromak merged commit fae84c9 into master Oct 11, 2014
@spheromak spheromak deleted the search branch October 11, 2014 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants