diff --git a/HousingSearchApi/V1/Gateways/SearchGateway.cs b/HousingSearchApi/V1/Gateways/SearchGateway.cs index 7b2b747b..6fa2c95e 100644 --- a/HousingSearchApi/V1/Gateways/SearchGateway.cs +++ b/HousingSearchApi/V1/Gateways/SearchGateway.cs @@ -78,7 +78,7 @@ public async Task GetListOfAssetsSets(GetAllAssetListRe if (searchResponse == null) return assetListResponse; assetListResponse.Assets.AddRange(searchResponse.Documents.Select(queryableAsset => - queryableAsset.Create()) + queryableAsset.CreateAll()) ); assetListResponse.SetTotal(searchResponse.Total); diff --git a/HousingSearchApi/V1/Infrastructure/Factories/AssetQueryGenerator.cs b/HousingSearchApi/V1/Infrastructure/Factories/AssetQueryGenerator.cs index f607e6bd..88d073d1 100644 --- a/HousingSearchApi/V1/Infrastructure/Factories/AssetQueryGenerator.cs +++ b/HousingSearchApi/V1/Infrastructure/Factories/AssetQueryGenerator.cs @@ -29,6 +29,7 @@ public QueryContainer Create(TRequest request, QueryContainerDescripto .WithExactQuery(assetListRequest.SearchText, new List { + "parentAssetIds", "assetAddress.addressLine1", "assetAddress.uprn", "assetAddress.postCode" diff --git a/HousingSearchApi/V1/Infrastructure/IndexSelector.cs b/HousingSearchApi/V1/Infrastructure/IndexSelector.cs index 691f2043..a9169252 100644 --- a/HousingSearchApi/V1/Infrastructure/IndexSelector.cs +++ b/HousingSearchApi/V1/Infrastructure/IndexSelector.cs @@ -25,7 +25,7 @@ public Indices.ManyIndices Create() return Indices.Index(new List { "tenures" }); if (type == typeof(QueryableAsset)) - return Indices.Index(new List { "assets" }); + return Indices.Index(new List { "assetsnew" }); if (type == typeof(QueryableAccount)) return Indices.Index(new List { "accounts" });