Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-446

search.function - (1) score based on field value, (2) simple score customizability

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: core/search
    • Labels:
      None
    • Lucene Fields:
      Patch Available

      Description

      FunctionQuery can return a score based on a field's value or on it's ordinal value.

      FunctionFactory subclasses define the details of the function. There is currently a LinearFloatFunction (a line specified by slope and intercept).

      Field values are typically obtained from FieldValueSourceFactory. Implementations include FloatFieldSource, IntFieldSource, and OrdFieldSource.

        Attachments

        1. function.zip
          9 kB
          Yonik Seeley
        2. function.zip
          9 kB
          Yonik Seeley
        3. function.patch.txt
          93 kB
          Doron Cohen
        4. function.patch.txt
          93 kB
          Doron Cohen
        5. function.patch.txt
          117 kB
          Doron Cohen

          Issue Links

            Activity

              People

              • Assignee:
                doronc Doron Cohen
                Reporter:
                yseeley@gmail.com Yonik Seeley
              • Votes:
                9 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: