get abroad gchange ads - filter inactive

This commit is contained in:
fred 2024-03-04 12:33:42 +01:00
parent 3cd2e186c2
commit d84d9ce1f4
1 changed files with 19 additions and 1 deletions

View File

@ -9,7 +9,25 @@ curl -sk -XPOST 'https://data.gchange.fr/market/record/_search?pretty&_source=ti
"size": 100,
"query": {
"bool": {
must: {
filter: [
{ term: { type: "offer" } }
,{
range: {
"stock": {
gte: 1
}
}
}
,{
range: {
price: {
gt: 0
}
}
}
]
, must: {
match_all: {}
},
"filter": [{