api icon indicating copy to clipboard operation
api copied to clipboard

Layers and sources ignored results in ignored sources only

Open arnesetzer opened this issue 1 year ago • 0 comments

Describe the bug If you start a request and ignore some sources (eg: sources=-gn) and some layers (eg. layers=-macrocounty%2C-empire%2C-continent%2C-country%2C-region%2C-ocean%2C-venue) the negated layers are ignored every time.

Steps to Reproduce Create a query where some layers and sources are ignored. (eg. https://pelias.github.io/compare/#/v1/search?sources=-gn&layers=-macrocounty%2C-empire%2C-continent%2C-country%2C-region%2C-ocean%2C-venue&text=M%C3%BCnchen+Hbf&debug=1). As you can see in the results that venues are not ignored. If the query just ignores some layers (eg. https://pelias.github.io/compare/#/v1/search?layers=-macrocounty%2C-empire%2C-continent%2C-country%2C-region%2C-ocean%2C-venue&text=M%C3%BCnchen+Hbf&debug=1) everything looks good.

Expected behavior That the two parameters are combinded an return a result which suits the parameters. Or throws an error/warning that this combination isn't allowed.

Environment (please complete the following information):

  • OS: Debian/Ubuntu
  • Docker Version: 24.0.1
  • Docker compose version: 1.29.2/2.18.1 (with https://github.com/pelias/docker/pull/316) Since this error occurs on the offical geocode instance I don't think that it is OS dependent.

References

Didn't found any. Sorry, if I created a duplicate 🙈

arnesetzer avatar May 26 '23 10:05 arnesetzer