Witajcie

Borykam się z problemem odpowiedniego szukania danych zaindexowanych w ES.

Mój index wygląda mniej więcej tak:
Kod
     app:
            client:     default
            index_name: app_%kernel.environment%
            types:
                country_data:
                    mappings:
                        id:
                            type: integer
                        postal_code:
                            type: string
                        name:
                            type: string
                        city:
                            type: string
                        voivodeship:
                            type: string
                        address:
                            type: string
                        district:
                            type: string
                        range:
                            type: string
                        community:
                            type: string
                        gus_voivodeship:
                            type: string
                        gus_district:
                            type: string
                        gus_community:
                            type: string
                        gus_community_type:
                            type: string
                        gus_symbol:
                            type: string
                    persistence:
                        driver: orm
                        model: MojBundle\Entity\CountryData
                        provider: ~
                        listener:
                            immediate: ~
                        finder: ~


Szukałem tego mniej więcej tak:
  1. $city->setFieldQuery('city', $query);
  2. $postalCode->setFieldQuery('postal_code', $query);
  3. $district->setFieldQuery('district', $query);
  4. $voivodeship->setFieldQuery('voivodeship', $query);
  5. $address->setFieldQuery('address', $query);
  6.  
  7. $boolQuery
  8. ->addShould($city)
  9. ->addShould($postalCode)
  10. ->addShould($district)
  11. ->addShould($voivodeship);


Lecz dla stringa 60-564 wielkopolskie poznań jezyce Grodziska dostaję dane często nie pasujące do tego patternu (np. zupełnie różny kod pocztowy)

Jakieś sugestie?