-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Upgrade search app to Elastic Search 5.4 #3373
Closed
Closed
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
f291550
Upgrade search app to Elastic Search 5.4
ericholscher a922986
Update ES dep
ericholscher b7e1189
Integrate ext search
ericholscher 848ee3c
Don't require ext search
ericholscher e5c42c0
Fix URL insertion
ericholscher 4cf429f
Merge remote-tracking branch 'origin/master' into upgrade-es
ericholscher 1291961
Fix lint
ericholscher a4208de
Fix this here too, for now :)
ericholscher ec992c3
Use proper URL insert
ericholscher 8200055
Merge remote-tracking branch 'origin/master' into upgrade-es
ericholscher d0a8ce2
Use old append
ericholscher 0c538f8
Leave out unrelated change
ericholscher 75cf46f
Merge remote-tracking branch 'origin/master' into upgrade-es
ericholscher f2d0758
Default sections off and fix unicode on index
ericholscher ede0827
Merge remote-tracking branch 'origin/master' into upgrade-es
ericholscher 87c1c9d
Run task via celery to do concurrency
ericholscher 213a390
Lint reindex_elasticsearch
ericholscher 9dafb8b
Merge remote-tracking branch 'origin/master' into upgrade-es
ericholscher 07be69d
Lint utils
ericholscher dedf97f
fix up loggin
ericholscher 24f9776
Make reindexing better
ericholscher ba8c675
Fix lint
ericholscher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.12 on 2017-12-11 13:05 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('projects', '0021_add-webhook-deprecation-feature'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='domain', | ||
name='canonical', | ||
field=models.BooleanField(default=False, help_text='This Domain is the primary one where the documentation is served from'), | ||
), | ||
migrations.AlterField( | ||
model_name='domain', | ||
name='count', | ||
field=models.IntegerField(default=0, help_text='Number of times this domain has been hit'), | ||
), | ||
migrations.AlterField( | ||
model_name='project', | ||
name='allow_promos', | ||
field=models.BooleanField(default=True, help_text='If unchecked, users will still see community ads.', verbose_name='Allow paid advertising'), | ||
), | ||
migrations.AlterField( | ||
model_name='project', | ||
name='comment_moderation', | ||
field=models.BooleanField(default=False, verbose_name='Comment Moderation'), | ||
), | ||
migrations.AlterField( | ||
model_name='project', | ||
name='conf_py_file', | ||
field=models.CharField(blank=True, default=b'', help_text='Path from project root to <code>conf.py</code> file (ex. <code>docs/conf.py</code>). Leave blank if you want us to find it for you.', max_length=255, verbose_name='Python configuration file'), | ||
), | ||
migrations.AlterField( | ||
model_name='project', | ||
name='has_valid_webhook', | ||
field=models.BooleanField(default=False, help_text='This project has been built with a webhook'), | ||
), | ||
migrations.AlterField( | ||
model_name='project', | ||
name='programming_language', | ||
field=models.CharField(blank=True, choices=[('words', 'Only Words'), ('py', 'Python'), ('js', 'JavaScript'), ('php', 'PHP'), ('ruby', 'Ruby'), ('perl', 'Perl'), ('java', 'Java'), ('go', 'Go'), ('julia', 'Julia'), ('c', 'C'), ('csharp', 'C#'), ('cpp', 'C++'), ('objc', 'Objective-C'), ('other', 'Other')], default=b'words', help_text='The primary programming language the project is written in.', max_length=20, verbose_name='Programming Language'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is not
id
isinteger
orlong
?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.
I believe the new ES doesn't let these vary types, or something. I was getting an error, and it doesn't really need to be an ID, so we will just use it as a string like the others.
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.
@ericholscher Seems like they support it
https://www.elastic.co/guide/en/elasticsearch/reference/current/number.html
Without ID, what can be here?
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.
It does seem strange that we're coercing to string here, but I'm not familiar enough with ES to say why token/string is better.
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.
It's not that it's better, it just doesn't work otherwise. I don't fully understand it either.
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.
It throws this error:
RequestError: TransportError(400, u'illegal_argument_exception', u'mapper [id] cannot be changed from type [long] to [keyword]')