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

added support for boosting fields and documents to python solr interface

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • clients - python
    • None
    • linux, python

    Description

      Added the ability to set boosts on fields and documents when indexing. This is done through two new classes solr.Document and solr.Field
      c = solr.SolrConnection(host='localhost:8081')
      c.add(id='123', name=solr.Field('this is a field', boost=1.5))
      doc = solr.Document(boost=1.5)
      doc.add(solr.Field(name='title', value="a value for my field", boost=1.1))
      c.addDoc(doc)

      Attachments

        1. solr.py
          8 kB
          Rob Young

        Activity

          People

            Unassigned Unassigned
            bubblenut Rob Young
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: