Solr
  1. Solr
  2. SOLR-2533

Improve API of ValueSource & FunctionQuery SortField weighting

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major 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.

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

        Issue Links

          Activity

          Gavin made changes -
          Link This issue is depended upon by LUCENE-3219 [ LUCENE-3219 ]
          Gavin made changes -
          Link This issue blocks LUCENE-3219 [ LUCENE-3219 ]
          Gavin made changes -
          Link This issue is depended upon by LUCENE-2883 [ LUCENE-2883 ]
          Gavin made changes -
          Link This issue blocks LUCENE-2883 [ LUCENE-2883 ]
          Uwe Schindler made changes -
          Link This issue blocks LUCENE-3219 [ LUCENE-3219 ]
          Chris Male made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Chris Male made changes -
          Attachment SOLR-2533.patch [ 12483124 ]
          Chris Male made changes -
          Attachment SOLR-2533.patch [ 12483122 ]
          Chris Male made changes -
          Assignee Michael McCandless [ mikemccand ] Chris Male [ cmale ]
          Chris Male made changes -
          Attachment SOLR-2533.patch [ 12480032 ]
          Michael McCandless made changes -
          Assignee Michael McCandless [ mikemccand ]
          Chris Male made changes -
          Attachment SOLR-2533.patch [ 12480031 ]
          Chris Male made changes -
          Attachment SOLR-2533.patch [ 12480025 ]
          Chris Male made changes -
          Field Original Value New Value
          Link This issue blocks LUCENE-2883 [ LUCENE-2883 ]
          Chris Male created issue -

            People

            • Assignee:
              Chris Male
              Reporter:
              Chris Male
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development