Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Indexing improvements #248

Merged
merged 9 commits into from
Aug 19, 2018
Merged

Indexing improvements #248

merged 9 commits into from
Aug 19, 2018

Conversation

froi
Copy link
Contributor

@froi froi commented Aug 19, 2018

Summary

Improvements to our indexing flow and separation or repos and status indexes.

Explain the motivation for making this change. What existing problem does the pull request solve?

Help future proof the harvesting process against Elasticsearch updates.

Test plan (required)

Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI.

Froilan Irizarry and others added 9 commits August 19, 2018 17:20
- changed from version 2.0.0 to 2.0.1
- Changed esAlias to status from repos
- Added the use of IndexOptimizer, AliasSwapper, and IndexCleaner
- Status report is now in its own index.
- Status document is now in its own index - status
- Added init function. This makes the code similar to that of the other indexers.
- Added logger to constructor.
@froi froi merged commit 467c566 into master Aug 19, 2018
@froi froi deleted the indexing-improvements branch August 29, 2018 21:12
seanstar12 pushed a commit to seanstar12/code-gov-api that referenced this pull request Aug 27, 2019
Reduction in test coverage is being accepted. The harvesting code is to be extracted in the next couple of sprints. the testing of that code will be done in version 2 of [code-gov-harvester](https://github.com/gsa/code-gov-harvester).

* Changed index mapping version for repos index
- changed from version 2.0.0 to 2.0.1

* Refactor indexReport function
- Changed esAlias to status from repos
- Added the use of IndexOptimizer, AliasSwapper, and IndexCleaner
- Status report is now in its own index.

* Status enpoint now searches the status index

* Add more robust index functionality
- Status document is now in its own index - status
- Added init function. This makes the code similar to that of the other indexers.
- Added logger to constructor.

* Made callback in init function optional

* Most recent data from harvester

* Added bunyan to npm scripts

* Added index.mapping.total_fields.limit to settings for status index
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant