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 Nov 29, 2024
1 parent c568436 commit 6658ccd
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 @@ -210,11 +211,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 @@ -269,11 +271,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 @@ -310,11 +313,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 @@ -363,11 +367,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 @@ -461,11 +466,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 @@ -576,11 +582,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 @@ -304,7 +304,6 @@ export class ElasticsearchService {
return {
bool: {
must,
must_not,
should,
filter,
},
Expand Down Expand Up @@ -353,14 +352,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 6658ccd

Please sign in to comment.