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

Payloads malfunctioning in basic use case

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.6
    • Fix Version/s: 6.6, 7.0
    • Component/s: None
    • Labels:
      None

      Description

      This issue is also discussed on the mailing list:
      http://lucene.472066.n3.nabble.com/Simple-payloads-example-not-working-td4110998.html

      It proved that for a term search, all documents would have the same score, equal to the payload value of the first document:

      I tried building a simple payloads example using the stock Solr/Lucene 4.6.0. I created a custom similarity and a custom query parser - built my plugin and tested it out.
      collection1 schema.xml changes: https://gist.github.com/maephisto/8433537
      collection1 sorlconfig.xml changes: https://gist.github.com/maephisto/8433550
      custom similarity: https://gist.github.com/maephisto/8433263
      custom query parser: https://gist.github.com/maephisto/8433217
      documents added: https://gist.github.com/maephisto/8433719

      I tested it with Solr/Lucene4.6.0 stock example. The plugin was built using NetBeans.
      I used gists inside the ticket in order to keep the description shorter.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ehatcher Erik Hatcher
                Reporter:
                michael.boom michael boom
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: