-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Extend indexer-elastic-rest to support languages #257
Extend indexer-elastic-rest to support languages #257
Conversation
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.
+1
Anyone else?
Maybe add the new configuration option as well as a description to |
There is no new configuration option here. The new Lang field, if one is
present, is extracted from the NutchDocument and then appended to the
IndexBuilder for the ES document.
On Wed, Dec 13, 2017 at 22:41 Moreno Feltscher ***@***.***> wrote:
Maybe add the new configuration option as well as a description to
nutch-default.xml as well.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#257 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABHJly8h68rhapuh_wQOaUKyAWM0BOUiks5tAFKKgaJpZM4RAu_e>
.
--
http://home.apache.org/~lewismc/
@hectorMcSpector
http://www.linkedin.com/in/lmcgibbney
|
@lewismc IMO this isn't true (and if so this wasn't the intention) - the available languages can be defined using a configuration value - see https://github.com/apache/nutch/pull/257/files#diff-408fd2f17bc9791dcbf531ffe6574a6aR106 |
Apologies @mfeltscher your absolutely right. |
3d12189
to
2829ad2
Compare
2829ad2
to
74d3038
Compare
Thanks @lewismc and @mfeltscher for the feedback, I added the default and rebased the code. |
OK I'm +1 for this. Anyone else? |
} | ||
} | ||
if (exists) { | ||
index = defaultIndex + "_" + language; |
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.
Extract logic to determine index name into its own function since you could also reuse it in the delete action.
LGTM :) |
👍 |
Is there already a Jira issue for this pull-request? We need it for the release notes. Thanks! |
No description provided.