Uploaded image for project: 'PyLucene'
  1. PyLucene
  2. PYLUCENE-50

StoredField of an int has the wrong type.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • Python 3 official docker container, 8.1.1rc

    Description

      The StoredField constructor is interpreting ints as bytes.  It's only reproducing on the 8 rc.

      import lucene
      lucene.initVM()
      from org.apache.lucene import document
       
      field = document.StoredField('', 0)
      print(field.numericValue(), field.binaryValue())

      Attachments

        Activity

          People

            Unassigned Unassigned
            coady A. Coady
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: