This repository was archived by the owner on Aug 18, 2021. It is now read-only.
Commit 467c566
Froilan Irizarry
Indexing improvements (#248)
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 index1 parent 15dcefc commit 467c566
File tree
19 files changed
+60019
-24158
lines changed- data/fetched
- indexes/status
- routes
- services
- indexer
- repo
- status
- term
- reporter
- searcher
- test/unit/services/indexer/repo
19 files changed
+60019
-24158
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
121 | 159 | | |
122 | 160 | | |
123 | 161 | | |
| |||
4098 | 4136 | | |
4099 | 4137 | | |
4100 | 4138 | | |
| 4139 | + | |
| 4140 | + | |
| 4141 | + | |
| 4142 | + | |
| 4143 | + | |
| 4144 | + | |
| 4145 | + | |
| 4146 | + | |
| 4147 | + | |
| 4148 | + | |
| 4149 | + | |
| 4150 | + | |
| 4151 | + | |
| 4152 | + | |
| 4153 | + | |
| 4154 | + | |
| 4155 | + | |
| 4156 | + | |
| 4157 | + | |
| 4158 | + | |
| 4159 | + | |
| 4160 | + | |
| 4161 | + | |
| 4162 | + | |
| 4163 | + | |
| 4164 | + | |
| 4165 | + | |
| 4166 | + | |
| 4167 | + | |
| 4168 | + | |
| 4169 | + | |
| 4170 | + | |
| 4171 | + | |
| 4172 | + | |
| 4173 | + | |
| 4174 | + | |
| 4175 | + | |
| 4176 | + | |
| 4177 | + | |
| 4178 | + | |
| 4179 | + | |
4101 | 4180 | | |
4102 | 4181 | | |
4103 | 4182 | | |
| |||
0 commit comments