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

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.2
    • core/search
    • None
    • 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.patch.txt
          117 kB
          Doron Cohen
        2. function.patch.txt
          93 kB
          Doron Cohen
        3. function.patch.txt
          93 kB
          Doron Cohen
        4. function.zip
          9 kB
          Yonik Seeley
        5. function.zip
          9 kB
          Yonik Seeley

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: