Skip to content

Have search use search_raw and count use search - #91

Closed
Treora wants to merge 5 commits into
openannotation:masterfrom
Treora:revise_search_raw
Closed

Have search use search_raw and count use search#91
Treora wants to merge 5 commits into
openannotation:masterfrom
Treora:revise_search_raw

Conversation

@Treora

@Treora Treora commented Aug 19, 2014

Copy link
Copy Markdown
Contributor

Let's clean up this stuff.
Note this also allows passing keyword arguments for search_raw to search and count.

@tilgovi

tilgovi commented Aug 19, 2014

Copy link
Copy Markdown
Member

Love it.

@tilgovi

tilgovi commented Aug 19, 2014

Copy link
Copy Markdown
Member

Needs a quick rebase after I merged your other PR first.

@Treora
Treora force-pushed the revise_search_raw branch from bc7610e to 89b1a8c Compare August 19, 2014 22:44
@Treora Treora mentioned this pull request Aug 20, 2014
5 tasks
Comment thread annotator/elasticsearch.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think it's okay to use search to implement count rather than the count call but let's update the kwargs with a limit of 0 so that the database isn't accessing the document source objects and serializing them back to us.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point, thanks. Done.

@tilgovi

tilgovi commented Sep 26, 2014

Copy link
Copy Markdown
Member

Closing because I've removed the last commit and rebased and I'm going to move this to a branch on this fork and give @Treora push access.

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.

2 participants