Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use facetGroup conjunction/disjunction/negation on non managed referenced groups #755

Closed
novoj opened this issue Dec 4, 2024 · 0 comments · Fixed by #756
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@novoj
Copy link
Collaborator

novoj commented Dec 4, 2024

This query which targets tags reference which si grouped by tagCategory which itself is not managed by evitaDB, cannot be switched to conjunction behavior for tags:

{
  queryProduct(
    filterBy: {
      entityLocaleEquals: cs
      userFilter: [
        {
          facetTagsHaving: [
            {
              entityHaving: {
                attributeCodeInSet: [
                  "new"
                ]
              }
            }
          ]
        }
      ]
    },
    require: {
      facetTagsGroupsConjunction: {
        filterBy: {
          
        }
      }
    }
  ) {
    extraResults {
      facetSummary {
        tags {
          count
          groupEntity {
            type
            primaryKey
          }
          facetStatistics(
            filterBy: 
            { attributeIsVisibleInFilterEquals: true }  
          ) {
            requested
            count
            impact {
              difference
              matchCount
              hasSense
            }
            facetEntity {
              primaryKey
              type
              attributes {
                name
                code
              }
            }
          }
        }
      }
    }
  }
}

We should also support filtering selecting tagCategory by primary keys even if it's not managed by evitaDB and there is no index for it. We could take the data from the facet index of the reference.

@novoj novoj added the bug Something isn't working label Dec 4, 2024
@novoj novoj added this to the Beta milestone Dec 4, 2024
@novoj novoj self-assigned this Dec 4, 2024
novoj added a commit that referenced this issue Dec 4, 2024
@novoj novoj closed this as completed in #756 Dec 4, 2024
novoj added a commit that referenced this issue Dec 4, 2024
…unctiondisjunctionnegation-on-non-managed-referenced-groups

fix(#755): Cannot use facetGroup conjunction/disjunction/negation on …
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant