Class JoinQuery

    • Constructor Detail

      • JoinQuery

        public JoinQuery​(Query subQuery,
                         String... joinPaths)
        Build a join query.
        Parameters:
        subQuery - The sub query.
        joinPaths - The field's join paths
      • JoinQuery

        public JoinQuery​(Query subQuery,
                         Collection<String> joinPaths)
        Build a join query.
        Parameters:
        subQuery - The sub query.
        joinPaths - The field's join paths
      • JoinQuery

        public JoinQuery​(JoinKey... joinKeys)
        Build a join query.
        Parameters:
        joinKeys - The join paths and optional nested queries
      • JoinQuery

        public JoinQuery​(Collection<JoinKey> joinKeys)
        Build a join query.
        Parameters:
        joinKeys - The join paths and optional nested queries
    • Method Detail

      • build

        public String build()
                     throws QuerySyntaxException
        Description copied from interface: Query
        Build the solr query string representing the Query object.
        Specified by:
        build in interface Query
        Returns:
        the solr query string representing the Query object.
        Throws:
        QuerySyntaxException - if the query can't be built because of a syntax error.
      • toString

        public String toString​(int indent)
        Description copied from interface: Query
        Gets a representation of this Query, for pretty-printing for logging and debugging purposes
        Specified by:
        toString in interface Query
        Parameters:
        indent - The current indentation. Base indentation is 2 (for printing a sub-level)
        Returns:
        a representation of this Query