diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6b6bb9f..ca0e484 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,6 +5,10 @@ on: [push] env: IMAGE: ghcr.io/${{ github.repository }}/rekrutteringsbistand-stilling-indekser:${{ github.sha }} +permissions: + contents: read + id-token: write + jobs: test: name: Run tests @@ -70,9 +74,6 @@ jobs: needs: deploy-to-dev if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest - permissions: - contents: read - id-token: write steps: - uses: actions/checkout@v3 - uses: nais/deploy/actions/deploy@v1 diff --git a/src/main/resources/stilling-mapping.json b/src/main/resources/stilling-mapping.json index aaa9584..db782f1 100644 --- a/src/main/resources/stilling-mapping.json +++ b/src/main/resources/stilling-mapping.json @@ -79,6 +79,14 @@ "type": "text", "analyzer": "norwegian" }, + "styrkEllerTittel": { + "type": "text", + "copy_to": "stilling.styrkEllerTittel_no" + }, + "styrkEllerTittel_no": { + "type": "text", + "analyzer": "norwegian" + }, "businessName": { "type": "text", "copy_to": "stilling.employername"