Awake supportIssue02 Sep, 2024
Last edited: 02 Sep, 2024, 11:00 AM
  Support post  

(Issue #AV-IS-0209-741) Filtering API is not working as expected

Referring to https://backend.shoptype.com/api/#/platform/get-platforms

One can form AND/OR combinations. Example,
tag1 and tag2 ==> tag1,tag2
tag1 or tag2 ==> tag1:tag2
(tag1 and tag2) or (tag3 and tag4) ==> tag1:tag2,tag3:tag4

But this does not make sense:

The first example shows tag1 and tag2 ==> tag1,tag2 (ie and is ,)

2nd examples shows tag1 or tag2 ==> tag1:tag2 (or is : )

So how can this be correct:

(tag1 and tag2) or (tag3 and tag4) ==> tag1:tag2,tag3:tag4

And then taking that 1 step forward, this query https://backend.shoptype.com/platforms/cb843ac5-7c50-9f31-f239-69f3a6ea410a/products?count=40&offset=0&tags=cannabinoid~thc,thc returns 79 products.

But this https://backend.shoptype.com/platforms/cb843ac5-7c50-9f31-f239-69f3a6ea410a/products?count=40&offset=0&tags=cannabinoid~thc,thc:vape~cartridges return 10.

How can an OR condition return less than the original??? It may return the same or more.

Type

Bug
Feature

Status

Open
In progress
Resolved
Wont fix
Duplicate

Priority

High
Medium
Low
Save, embed, share, report
0comments

Explore more channels?Show all

Awake
Entrepreneurship
Resources
Technology
Venture Capital
Product
Accelerators
Pitching

More from this channel

Select between trending, latest and important content.