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

Expose SpanFirst in eDismax

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 4.0-BETA
    • None
    • modules/queryparser
    • None
    • solr-spec 5.0.0.2012.10.09.19.29.59
      solr-impl 5.0-SNAPSHOT 1366361:1396116M - markus - 2012-10-09 19:29:59

    • New, Patch Available

    Description

      Expose Lucene's SpanFirst capability in Solr's extended Dismax query parser. This issue adds the SF-parameter (SpanFirst) and takes a FIELD~DISTANCE^BOOST formatted value.

      For example, sf=title~5^2 will give a boost of 2 if one of the normal clauses, originally generated for automatic phrase queries, is located within five positions from the field's start.

      Unit test is included and all tests pass.

      Attachments

        1. SOLR-4470-trunk-1.patch
          40 kB
          Markus Jelsma

        Activity

          People

            Unassigned Unassigned
            markus17 Markus Jelsma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: