0

I have a taxonomy entity "Politician" which has a Paragraph field "Party membership", which consists of a Date Range field for the membership and an entity reference to the taxonomy entity for the party.

I have then created a Solr index dedicated to the metadata - it indexes the politician's entity ID, the politician's name and, from the paragraph entity, the membership start/end date and the party ID and name.

However, in the Solr index, the data from the Paragraph entity is split:

{
        "dm_party_membership_begin":["1973-01-01T12:00:00Z",
          "2013-02-06T12:00:00Z"],
        "ds_party_membership_end":"2013-02-06T12:00:00Z",
        "its_party_id":40,
        "ss_name":"Eberhardt Alexander Gauland",
        "dm_party_membership_end":["2013-02-06T12:00:00Z"],
        "itm_party_id":[40,
          46],
        "ds_party_membership_begin":"2013-02-06T12:00:00Z",
        "sm_party_name":["Alternative für Deutschland",
          "Christlich Demokratische Union Deutschlands"],
}

What do I have to do with the index configuration to:

  • have the membership data grouped together somehow
  • reliably (!) have the top-level "its_party_id" set to the most current party membership?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.