-
Notifications
You must be signed in to change notification settings - Fork 0
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
Changes to support the demo #60
Conversation
Signed-off-by: jzonthemtn <[email protected]>
@@ -276,6 +276,7 @@ public void indexClickthroughRates(final Map<String, Set<ClickthroughRate>> clic | |||
jsonMap.put("clicks", clickthroughRate.getClicks()); | |||
jsonMap.put("events", clickthroughRate.getEvents()); | |||
jsonMap.put("ctr", clickthroughRate.getClickthroughRate()); | |||
jsonMap.put("object_id", clickthroughRate.getObjectId()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The object_id
was not being indexed for a clickthrough rate.
|
||
request.add(indexRequest); | ||
|
||
} | ||
|
||
} | ||
|
||
client.bulk(request).get(); | ||
client.bulk(request, new ActionListener<>() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid a blocking thread.
Signed-off-by: jzonthemtn <[email protected]>
@@ -137,7 +135,10 @@ public String sample() throws Exception { | |||
// This may require generating more random numbers than what was requested | |||
// because removing duplicate user queries will require randomly picking more queries. | |||
int count = 1; | |||
while(querySet.size() < parameters.getQuerySetSize() && count < userQueries.size()) { | |||
|
|||
// TODO: How to short-circuit this such that if the same query gets picked over and over, the loop will never end. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue of short-circuiting the PPTSS sampling for when the same user query gets picked over and over and over...
No description provided.