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

Custom synonyms #273

Merged
merged 4 commits into from
Mar 26, 2018
Merged

Custom synonyms #273

merged 4 commits into from
Mar 26, 2018

Conversation

missinglink
Copy link
Member

@missinglink missinglink commented Mar 23, 2018

note: this PR was branched off #272, please merge that PR first.

diff between this branch and the parent: synonyms...custom_synonyms

This PR follows on from the synonyms refactoring in #272 by adding user-modifiable synonyms files in-place, ready to be used:

$ ls -1 synonyms/custom_*
synonyms/custom_admin.txt
synonyms/custom_name.txt
synonyms/custom_street.txt

For now, these files are empty, we will be accepting community PRs to improve the synonyms that end up in these files.

The idea with the naming is that the 'custom_name.txt' file applies to the 'name' field in the mapping, same for 'street' and 'admin'.

settings.js Outdated
'object' == typeof config.elasticsearch.settings ){
if( 'object' === typeof config &&
'object' === typeof config.elasticsearch &&
'object' === typeof config.elasticsearch.settings ){
Copy link
Member

Choose a reason for hiding this comment

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

please tell me this wasn't causing some subtle issue :P

Copy link
Member Author

Choose a reason for hiding this comment

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

doubt it, just got caught by the linter :)

@missinglink missinglink merged commit 1d69bdf into master Mar 26, 2018
@orangejulius orangejulius deleted the custom_synonyms branch April 16, 2018 00:05
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