Skip to content

Commit

Permalink
geocat: do not exclude services or maps in search
Browse files Browse the repository at this point in the history
  • Loading branch information
fgravin authored and jahow committed Dec 13, 2024
1 parent 3e24f77 commit e38b370
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,12 @@ describe('ElasticsearchService', () => {
},
},
],
must_not: {
terms: {
resourceType: ['service', 'map', 'map/static', 'mapDigital'],
},
},
// SPECIFIC GEOCAT
// must_not: {
// terms: {
// resourceType: ['service', 'map', 'map/static', 'mapDigital'],
// },
// },
},
})
})
Expand Down Expand Up @@ -289,11 +290,12 @@ describe('ElasticsearchService', () => {
},
},
],
must_not: {
terms: {
resourceType: ['service', 'map', 'map/static', 'mapDigital'],
},
},
// SPECIFIC GEOCAT
// must_not: {
// terms: {
// resourceType: ['service', 'map', 'map/static', 'mapDigital'],
// },
// },
},
})
})
Expand Down Expand Up @@ -348,11 +350,12 @@ describe('ElasticsearchService', () => {
},
},
],
must_not: {
terms: {
resourceType: ['service', 'map', 'map/static', 'mapDigital'],
},
},
// SPECIFIC GEOCAT
// must_not: {
// terms: {
// resourceType: ['service', 'map', 'map/static', 'mapDigital'],
// },
// },
},
})
})
Expand Down Expand Up @@ -389,11 +392,12 @@ describe('ElasticsearchService', () => {
],
should: [],
must: [],
must_not: {
terms: {
resourceType: ['service', 'map', 'map/static', 'mapDigital'],
},
},
// SPECIFIC GEOCAT
// must_not: {
// terms: {
// resourceType: ['service', 'map', 'map/static', 'mapDigital'],
// },
// },
},
})
})
Expand Down Expand Up @@ -442,11 +446,12 @@ describe('ElasticsearchService', () => {
},
},
],
must_not: {
terms: {
resourceType: ['service', 'map', 'map/static', 'mapDigital'],
},
},
// SPECIFIC GEOCAT
// must_not: {
// terms: {
// resourceType: ['service', 'map', 'map/static', 'mapDigital'],
// },
// },
},
})
})
Expand Down Expand Up @@ -540,11 +545,12 @@ describe('ElasticsearchService', () => {
},
},
],
must_not: {
terms: {
resourceType: ['service', 'map', 'map/static', 'mapDigital'],
},
},
// SPECIFIC GEOCAT
// must_not: {
// terms: {
// resourceType: ['service', 'map', 'map/static', 'mapDigital'],
// },
// },
should: [
{
geo_shape: {
Expand Down Expand Up @@ -655,11 +661,12 @@ describe('ElasticsearchService', () => {
},
},
],
must_not: {
terms: {
resourceType: ['service', 'map', 'map/static', 'mapDigital'],
},
},
// SPECIFIC GEOCAT
// must_not: {
// terms: {
// resourceType: ['service', 'map', 'map/static', 'mapDigital'],
// },
// },
},
},
from: 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ export class ElasticsearchService {
return {
bool: {
must,
must_not,
should,
filter,
},
Expand Down Expand Up @@ -395,14 +394,6 @@ export class ElasticsearchService {
},
},
],
must_not: {
...this.queryFilterOnValues('resourceType', [
'service',
'map',
'map/static',
'mapDigital',
]),
},
},
},
_source: ['resourceTitleObject', 'uuid'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,16 +271,17 @@ describe.each(['4.2.2-00', '4.2.3-xx', '4.2.5-xx'])(
query: {
bool: {
must: [],
must_not: {
terms: {
resourceType: [
'service',
'map',
'map/static',
'mapDigital',
],
},
},
// SPECIFIC GEOCAT
// must_not: {
// terms: {
// resourceType: [
// 'service',
// 'map',
// 'map/static',
// 'mapDigital',
// ],
// },
// },
should: [],
filter: [{ terms: { isTemplate: ['n'] } }],
},
Expand Down

0 comments on commit e38b370

Please sign in to comment.