Class SearchQueryBoostsTest

    • Constructor Detail

      • SearchQueryBoostsTest

        public SearchQueryBoostsTest()
    • Method Detail

      • defaultScore

        public void defaultScore()
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • singleMultiplicativeBoost

        public void singleMultiplicativeBoost()
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • multipleMultiplicativeBoosts

        public void multipleMultiplicativeBoosts()
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • singleAdditiveBoost

        public void singleAdditiveBoost()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • multipleAdditiveBoosts

        public void multipleAdditiveBoosts()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • multipleBoostsSameDocument1

        public void multipleBoostsSameDocument1()
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • multipleBoostsSameDocument2

        public void multipleBoostsSameDocument2()
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • multipleBoostsDifferentDocuments

        public void multipleBoostsDifferentDocuments()
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • multipleBoostsDifferentDocumentsWithFilterQuery

        public void multipleBoostsDifferentDocumentsWithFilterQuery()
                                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • executeSearchQuery

        protected SearchResult executeSearchQuery​(java.util.function.Consumer<SearchQuery> action)
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • assertProductCode

        protected void assertProductCode​(java.lang.String expectedProductCode,
                                         Document document)
      • assertScore

        protected void assertScore​(float expectedScore,
                                   Document document)