Uploaded image for project: 'MusicBrainz Search Server'
  1. MusicBrainz Search Server
  2. SEARCH-524

Conversion of a query result to dict for Solr doesn't work for some entities

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2018-06-22 First Solr
    • Component/s: Indexer
    • Labels:
      None

      Description

      Has something to do with the mbrng package.

      AttributeError: 'unicode' object has no attribute 'to_etree'
        File "amqp/handler.py", line 66, in wrapper
          f(self=self, parsed_message=parsed_message)
        File "amqp/handler.py", line 172, in index_callback
          data = [entity.query_result_to_dict(obj) for obj in query.all()]
        File "schema/searchentities.py", line 259, in query_result_to_dict
          data["_store"] = tostring(self.compatconverter(obj).to_etree())
        File "mbrng/models.py", line 2760, in to_etree
          status_.to_etree(element, name_='status', mapping_=mapping_)
      

        Attachments

          Activity

            People

            Assignee:
            roman Roman
            Reporter:
            roman Roman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                2018-06-22 First Solr