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

Update documentation with facet tags #7

Open
duartegarin opened this issue Oct 22, 2018 · 0 comments
Open

Update documentation with facet tags #7

duartegarin opened this issue Oct 22, 2018 · 0 comments
Labels
documentation Task related to documentation

Comments

@duartegarin
Copy link
Collaborator

duartegarin commented Oct 22, 2018

We can use tags to exclude certain conditions from being counted by facets.

The idea was to introduce the concept of facet exclusion. That is, to exclude facets from being altered by conditions of that same facet in the main query.

For example:

  searchAPISearch(index_id: "anabranch_connect_index", condition_group:{
    conjunction:AND,
    groups: [
        {
          conjunction: OR,
          tags:["facet:study_fields"],
          conditions: [
            {operator: "=", name: "study_fields", value: "Finance"},
          ]
        },
        {
          conjunction: OR,
          tags:["facet:article_type"],
          conditions: [
            {operator: "=", name: "article_type", value: "Advice"},
          ]
        },
      ]
    
  },

Need to update the docs with this.

@duartegarin duartegarin added the documentation Task related to documentation label Oct 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Task related to documentation
Projects
None yet
Development

No branches or pull requests

1 participant