plone / plone.app.querystring

Provides an queryparser, querybuilder and extra helper tools, to parse stored queries to actual results, used in new style Plone collections
https://pypi.org/project/plone.app.querystring/
2 stars 26 forks source link

Specifing multiple searches with the same field will overwrite the query #130

Closed robgietema closed 1 year ago

robgietema commented 1 year ago

When you specify multiple searches with the same field it will overwrite the query and the last value provided will "win".

Example when calling the querystring-search rest api endpoint:

[
  {
    "i": "myintfield",
    "o": "plone.app.querystring.operation.int.lessThan",
    "v": "200"
  },
  {
    "i": "myintfield",
    "o": "plone.app.querystring.operation.int.largerThan",
    "v": "100"
  },
]

In this case only one of these queries will be applied and not both.