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
      • singleMultiplicativeFractionBoost

        public void singleMultiplicativeFractionBoost()
                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • multipleMultiplicativeFractionBoosts

        public void multipleMultiplicativeFractionBoosts()
                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • boostOnStringProperty1

        public void boostOnStringProperty1()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • boostOnStringProperty2

        public void boostOnStringProperty2()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • boostOnTextProperty1

        public void boostOnTextProperty1()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • boostOnTextProperty2

        public void boostOnTextProperty2()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • boostOnBooleanProperty1

        public void boostOnBooleanProperty1()
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • boostOnBooleanProperty2

        public void boostOnBooleanProperty2()
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • boostOnIntegerProperty1

        public void boostOnIntegerProperty1()
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • boostOnIntegerProperty2

        public void boostOnIntegerProperty2()
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • boostOnLongProperty1

        public void boostOnLongProperty1()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • boostOnLongProperty2

        public void boostOnLongProperty2()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • boostOnFloatProperty1

        public void boostOnFloatProperty1()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • boostOnFloatProperty2

        public void boostOnFloatProperty2()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • boostOnDoubleProperty1

        public void boostOnDoubleProperty1()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • boostOnDoubleProperty2

        public void boostOnDoubleProperty2()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • boostOnDateProperty1

        public void boostOnDateProperty1()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • boostOnDateProperty2

        public void boostOnDateProperty2()
                                  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)