Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-2533

Improve API of ValueSource & FunctionQuery SortField weighting

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: search
    • Labels:
      None

      Description

      Started from LUCENE-2883: Support for sorting by ValueSource and FunctionQueries is done through ValueSource#getSort and the ValueSourceSortField. In order to support VSs containing other Queries, its necessary to allow the Querys to be weighted by an IndexSearcher. Currently this is handled by having ValueSourceSortField implement SolrSortField. In Solr's SolrIndexSearcher, SortFields implementing SolrSortField are then weighted before the Sort is used.

      Sorting by FunctionQuery and ValueSource are invaluable and will become available to all Lucene users in LUCENE-2883. But in order to do so, we need to remove the coupling of this functionality to Solr, and make it more standard.

      Any and all thoughts about how to do this are appreciated.

        Attachments

        1. SOLR-2533.patch
          8 kB
          Chris Male
        2. SOLR-2533.patch
          8 kB
          Chris Male
        3. SOLR-2533.patch
          9 kB
          Chris Male
        4. SOLR-2533.patch
          10 kB
          Chris Male
        5. SOLR-2533.patch
          10 kB
          Chris Male

        Issue Links

          Activity

            People

            • Assignee:
              cmale Chris Male
              Reporter:
              cmale Chris Male

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment