Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-8401

ibexa.field_type.country.data has duplicate IDC which causes problem with CountryTermAggregation

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • Customer request
    • 4.6.7
    • None
    • None
    • SOLR

    • Yes

    Description

      Due to duplicate IDCs, using CountryTermAggregation will result in incorrect country information being retrieved

      Tested on SOLR

       

      Steps to reproduce

      1. Create a CT with country field
      2. Create content and set USA as country
      3. Use CountryTermAggregation to get country codes
      4. Check result from query

       

      Result

      For the USA, the CAN key is returned

       Ibexa\Contracts\Core\Repository\Values\Content\Search\AggregationResult\TermAggregationResultEntry: {
        -key: "CAN"
        -count: 1
      }
       

       

      Expected

      key/country code should be returned correctly

       

      Note

      Due to multiple IDC iterations, this problem will not be exclusive to the US

       

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              mateusz.debinski@ibexa.co Mateusz Dębiński
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: