How to use the searchkit.HasChildQuery function in searchkit

To help you get started, we’ve selected a few searchkit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github assembl / assembl / assembl / static2 / js / app / components / search.jsx View on Github external
'post',
                      BoolMust([TermQuery('discussion_id', discussionId), TermQuery('parent_id', 0)])
                    )}
                  />
github assembl / assembl / assembl / static2 / js / app / components / search.jsx View on Github external
filter={BoolMust([
                      HasChildQuery(
                        'post',
                        BoolMust([TermQuery('discussion_id', discussionId), RangeQuery('parent_id', { gt: 0 })])
                      ),
                      BoolMustNot(
                        HasChildQuery('post', BoolMust([TermQuery('discussion_id', discussionId), TermQuery('parent_id', 0)]))
                      )
                    ])}
                  />
                  
                  
                
              ) : null}
              
              
github assembl / assembl / assembl / static2 / js / app / components / search.jsx View on Github external
containerComponent={NoPanel}
                    id="creative-participants"
                    title={I18n.t('search.Creative participants')}
                    label={I18n.t('search.Creative participants')}
                    filter={HasChildQuery(
                      'post',
                      BoolMust([TermQuery('discussion_id', discussionId), TermQuery('parent_id', 0)])
                    )}
                  />