Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 4.7
    • 4.7
    • core/query/scoring
    • New

    Description

      I had been generating long type's indexing data using LongField(Field name is 'boost' and value is atomicLong.) for using CustomScoreQuery.
      And then, I'm applied following code.

      //code start ========================================
      FunctionQuery fquery = new FunctionQuery(new LongFieldSource("boost"));
      CustomScoreQuery customQuery = new ScoreQuery(query, fquery);
      //code end =========================================

      If indexed data count is 100, I expect 100, 99, 98, ... 91.
      But, the result was not matched with my expectation if the number of the indexed data gets increased. (For instance 999999985, 999999986, 999999987, 999999988, ... 999999994 when one billion index count )

      I thought that was caused by scoring alogorithm returning float value. (Floating point limit.)
      That is correct?
      How can I get the result i expect?

      Attachments

        Activity

          People

            Unassigned Unassigned
            Park JungHo Park JungHo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: