Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #145 from ONSdigital/FWMT-1655
Browse files Browse the repository at this point in the history
Removed root type and mapping workaround.
  • Loading branch information
steve-thorne-ONS authored Nov 27, 2019
2 parents c784515 + f452d1c commit c4b444f
Show file tree
Hide file tree
Showing 2 changed files with 810 additions and 815 deletions.
9 changes: 4 additions & 5 deletions batch/src/main/scala/uk/gov/ons/addressindex/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ For usage see below:

if (nisra) {
if (skinny) {
ElasticSearchWriter.saveSkinnyHybridNisraAddresses(s"$indexName/address", SqlHelper.aggregateHybridSkinnyNisraIndex(paf, nag, nisratxt, historical))
ElasticSearchWriter.saveSkinnyHybridNisraAddresses(s"$indexName", SqlHelper.aggregateHybridSkinnyNisraIndex(paf, nag, nisratxt, historical))
} else {
ElasticSearchWriter.saveHybridNisraAddresses(s"$indexName/address", SqlHelper.aggregateHybridNisraIndex(paf, nag, nisratxt, historical))
ElasticSearchWriter.saveHybridNisraAddresses(s"$indexName", SqlHelper.aggregateHybridNisraIndex(paf, nag, nisratxt, historical))
}
} else {
if (skinny) {
ElasticSearchWriter.saveSkinnyHybridAddresses(s"$indexName/address", SqlHelper.aggregateHybridSkinnyIndex(paf, nag, historical))
ElasticSearchWriter.saveSkinnyHybridAddresses(s"$indexName", SqlHelper.aggregateHybridSkinnyIndex(paf, nag, historical))
} else {
ElasticSearchWriter.saveHybridAddresses(s"$indexName/address", SqlHelper.aggregateHybridIndex(paf, nag, historical))
ElasticSearchWriter.saveHybridAddresses(s"$indexName", SqlHelper.aggregateHybridIndex(paf, nag, historical))
}
}
}
Expand All @@ -101,7 +101,6 @@ For usage see below:
} else {
Mappings.hybrid
})
.param("include_type_name", "true")
.header("Content-type", "application/json")
.header("Authorization", authHeader)
.asString
Expand Down
Loading

0 comments on commit c4b444f

Please sign in to comment.