Skip to content
This repository has been archived by the owner. It is now read-only.

Add Bing connector #25

Merged
merged 2 commits into from Jun 22, 2017
Merged

Add Bing connector #25

merged 2 commits into from Jun 22, 2017

Conversation

@c-w
Copy link
Contributor

@c-w c-w commented Jun 22, 2017

Resolves #5

@c-w c-w requested a review from kevinhartman Jun 22, 2017
Copy link
Contributor

@jcjimenez jcjimenez left a comment

LGTM with minor observation

Map(
"accessToken" -> System.getenv("BING_ACCESS_TOKEN"),
"searchInstanceId" -> System.getenv("BING_SEARCH_INSTANCE_ID"),
"keywords" -> "isis|attack"
Copy link
Contributor

@jcjimenez jcjimenez Jun 22, 2017

Not a deal-breaker, but may I suggest Option(System.getenv("BING_SEARCH_KEYWORDS")).getOrElse("isis|attack") instead of the raw term?

Copy link
Contributor Author

@c-w c-w Jun 22, 2017

Good comment. These values are just here for testing purposes for now so they're fine to be hard-coded (see also all the other hard-coded values in this section). We'll get rid of them soon and in production, we'll populate the configs from Cassandra which is what Kevin is about to implement.

Copy link
Contributor

@jcjimenez jcjimenez Jun 22, 2017

Perfect!

@jcjimenez jcjimenez merged commit 3217caf into master Jun 22, 2017
2 checks passed
@c-w c-w deleted the bing-connector branch Jun 22, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants