<commit_before>parameters:
  fos_elastica.client.class: Ojs\Common\Services\ElasticaClient
fos_elastica:
  clients:
    #you can change to your setting
    default: { host: %elasticsearch_host%, port: 9200 , logger: false}
  indexes:
    search:
      settings:
        analysis:
          analyzer:
            stopwords:
              type: standard
              stopwords: [ "and", "of", "the", "ve", "veya", "or", "ile", "da" ]
      finder: ~
      client: default
      types:
        user:
          mappings:
            username:
              type: string
            firstName:
              type: string
            lastName:
              type: string
            email:
              type: string
            tags:
              analyzer: "keyword"
              type: string
            subjects: {"index": "not_analyzed"}
            title: {"index": "not_analyzed"}
            gender: {"index": "not_analyzed"}
            created:
              type: date
            updated:
              type: date
            journalUsers:
              type: object
              properties:
                journal:
                  type: object
                  properties:
                    title:
                      type: string
                      index: not_analyzed
                    id:
                      type: integer
                      index: not_analyzed
                roles:
                  index: not_analyzed
                  type: string
          persistence:
            driver: orm
            model: Ojs\UserBundle\Entity\User
            provider: ~
            listener: ~
            finder: ~
            provider:
              debug_logging: true
        articles:
          mappings:
            subjects: { type: string, boost: 4,analyzer: stopwords}
            status:
              type: string
              index: not_analyzed
            keywords: { type: string, boost: 4}
            subtitle: { type: string, boost: 3}
            title: { type: string, boost: 5 }
            locale:
              type: string
              index: not_analyzed
            citations:
              type: "object"
              properties:
                raw: { boost: 2 ,type: string}
                id:  { boost: 1 ,type: integer}
            articleAuthors:
              type: "object"
              properties:
                author:
                  type: "object"
                  properties:
                    id:
                      type: integer
                    firstName:
                      type: string
                    lastName:
                      type: string
                    middleName:
                      type: string
                    email:
                      type: string
                    tags:
                      analyzer: "keyword"
                      type: string
            attributes:
              type: "object"
              properties:
                value:
                  type: string
            journal:
              type: "object"
              properties:
                id:
                  index: not_analyzed
                slug:
                  type: string
                institution:
                  type: object
                  properties:
                    slug:
                      type: string
            issue:
              type: "object"
              properties:
                id:
                  type: integer
                  index: not_analyzed
                datePublished:
                  type: date
                published:
                  type: boolean
                created:
                  type: date
                createdBy:
                  type: string
                tags:
                  analyzer: "keyword"
                  type: string
            section:
              type: "object"
              properties:
                title:
                  type: string
                  index: not_analyzed
          persistence:
            driver: orm
            model: Ojs\JournalBundle\Entity\Article
            provider: ~
            listener:
            finder: ~
            provider:
              debug_logging: false
        institution:
          mappings:
            tags:
              analyzer: "keyword"
              type: string
            name:
              type: string
            slug:
              type: string
            verified:
              type: boolean
          persistence:
            driver: orm
            model: Ojs\JournalBundle\Entity\Institution
            provider: ~
            listener: ~
            finder: ~
            provider:
              debug_logging: false
        issue:
          mappings:
            title:
              type: string
            tags:
              analyzer: "keyword"
              type: string
            journal:
              type: "object"
              properties:
                slug:
                  type: string
                id:
                  type: integer
                titleAbbr:
                  type: string
                institution:
                  type: object
                  properties:
                    slug:
                      type: string
          persistence:
            driver: orm
            model: Ojs\JournalBundle\Entity\Issue
            provider: ~
            listener: ~
            finder: ~
            provider:
              debug_logging: false
        journal:
          mappings:
            id: { type: integer }
            title:
              type: string
              fields:
                raw:
                  type: string
                  index: not_analyzed
            slug: { type: string }
            subtitle: { type: string }
            description: { type: string }
            tags:
              analyzer: "keyword"
              type: string
            status: { "index": "not_analyzed" }
            published: { "index": "not_analyzed",type: boolean }
            subjects:
              type: object
              properties:
                id: { type: integer }
                subject: { type: string }
            institution:
              type: object
              properties:
                name: { type: string }
                slug: { type: string }
                institution_type:
                  type: object
                  properties:
                    name: { index: not_analyzed }
            image: ~
          persistence:
            driver: orm
            model: Ojs\JournalBundle\Entity\Journal
            provider: ~
            listener: ~
            finder: ~
            provider:
              debug_logging: false
        subject:
          mappings:
            subject:
              type: string
            tags:
              analyzer: "keyword"
              type: string
          persistence:
            driver: orm
            model: Ojs\JournalBundle\Entity\Subject
            provider: ~
            listener: ~
            finder: ~
            provider:
              debug_logging: false
        country:
          mappings:
            name:
              type: string
          persistence:
            driver: orm
            model: Ojs\LocationBundle\Entity\Country
            provider: ~
            listener: ~
            finder: ~
            provider:
              debug_logging: false
        province:
          mappings:
            name:
              type: string
          persistence:
            driver: orm
            model: Ojs\LocationBundle\Entity\Province
            provider: ~
            listener: ~
            finder: ~
            provider:
              debug_logging: false
        citation:
          mappings:
            raw:
              type: string
            type:
              type: string
          persistence:
            driver: orm
            model: Ojs\JournalBundle\Entity\Citation
            provider: ~
            listener: ~
            finder: ~
        page:
          mappings:
            id:
              type: integer
            title:
              type: string
            tags:
              analyzer: "keyword"
              type: string
          persistence:
            driver: orm
            model: Ojs\SiteBundle\Entity\Page
            provider: ~
            listener: ~
            finder: ~
        author:
          mappings:
            id:
              type: integer
            firstName:
              type: string
            lastName:
              type: string
            middleName:
              type: string
            email:
              type: string
            tags:
              analyzer: "keyword"
              type: string
            articleAuthors:
              type: object
              properties:
                article:
                  type: object
                  properties:
                    id:<commit_msg>Update elasticsearch mapping, fixes #876<commit_after>parameters:
  fos_elastica.client.class: Ojs\Common\Services\ElasticaClient
fos_elastica:
  clients:
    #you can change to your setting
    default: { host: %elasticsearch_host%, port: 9200 , logger: false}
  indexes:
    search:
      settings:
        analysis:
          analyzer:
            stopwords:
              type: standard
              stopwords: [ "and", "of", "the", "ve", "veya", "or", "ile", "da" ]
      finder: ~
      client: default
      types:
        user:
          mappings:
            username:
              type: string
            firstName:
              type: string
            lastName:
              type: string
            email:
              type: string
            tags:
              analyzer: "keyword"
              type: string
            subjects: {"index": "not_analyzed"}
            title: {"index": "not_analyzed"}
            gender: {"index": "not_analyzed"}
            created:
              type: date
            updated:
              type: date
            journalUsers:
              type: object
              properties:
                journal:
                  type: object
                  properties:
                    title:
                      type: string
                      index: not_analyzed
                    id:
                      type: integer
                      index: not_analyzed
                roles:
                  index: not_analyzed
                  type: string
          persistence:
            driver: orm
            model: Ojs\UserBundle\Entity\User
            provider: ~
            listener: ~
            finder: ~
            provider:
              debug_logging: true
        articles:
          mappings:
            subjects: { type: string, boost: 4,analyzer: stopwords}
            status:
              type: string
              index: not_analyzed
            keywords: { type: string, boost: 4}
            subtitle: { type: string, boost: 3}
            title: { type: string, boost: 5 }
            locale:
              type: string
              index: not_analyzed
            citations:
              type: "object"
              properties:
                raw: { boost: 2 ,type: string}
                id:  { boost: 1 ,type: integer}
            articleAuthors:
              type: "object"
              properties:
                author:
                  type: "object"
                  properties:
                    id:
                      type: integer
                    firstName:
                      type: string
                    lastName:
                      type: string
                    middleName:
                      type: string
                    email:
                      type: string
                    tags:
                      analyzer: "keyword"
                      type: string
            attributes:
              type: "object"
              properties:
                value:
                  type: string
            journal:
              type: "object"
              properties:
                id:
                  index: not_analyzed
                slug:
                  type: string
                institution:
                  type: object
                  properties:
                    slug:
                      type: string
            issue:
              type: "object"
              properties:
                id:
                  type: integer
                  index: not_analyzed
                datePublished:
                  type: date
                published:
                  type: boolean
                created:
                  type: date
                createdBy:
                  type: string
                tags:
                  analyzer: "keyword"
                  type: string
            section:
              type: "object"
              properties:
                title:
                  type: string
                  index: not_analyzed
          persistence:
            driver: orm
            model: Ojs\JournalBundle\Entity\Article
            provider: ~
            listener:
            finder: ~
            provider:
              debug_logging: false
        institution:
          mappings:
            tags:
              analyzer: "keyword"
              type: string
            name:
              type: string
            slug:
              type: string
            verified:
              type: boolean
          persistence:
            driver: orm
            model: Ojs\JournalBundle\Entity\Institution
            provider: ~
            listener: ~
            finder: ~
            provider:
              debug_logging: false
        issue:
          mappings:
            title:
              type: string
            tags:
              analyzer: "keyword"
              type: string
            journal:
              type: "object"
              properties:
                slug:
                  type: string
                id:
                  type: integer
                titleAbbr:
                  type: string
                institution:
                  type: object
                  properties:
                    slug:
                      type: string
          persistence:
            driver: orm
            model: Ojs\JournalBundle\Entity\Issue
            provider: ~
            listener: ~
            finder: ~
            provider:
              debug_logging: false
        journal:
          mappings:
            id: { type: integer }
            title:
              type: string
              fields:
                raw:
                  type: string
                  index: not_analyzed
            slug: { type: string }
            subtitle: { type: string }
            description: { type: string }
            tags:
              analyzer: "keyword"
              type: string
            status: { "index": "not_analyzed" }
            published: { "index": "not_analyzed",type: boolean }
            subjects:
              type: object
              properties:
                id: { type: integer }
                subject: { type: string }
            institution:
              type: object
              properties:
                name: { type: string }
                slug: { type: string }
                institution_type:
                  type: object
                  properties:
                    name: { index: not_analyzed }
            image: ~
          persistence:
            driver: orm
            model: Ojs\JournalBundle\Entity\Journal
            provider: ~
            listener: ~
            finder: ~
            provider:
              debug_logging: false
        subject:
          mappings:
            subject:
              type: string
            tags:
              analyzer: "keyword"
              type: string
          persistence:
            driver: orm
            model: Ojs\JournalBundle\Entity\Subject
            provider: ~
            listener: ~
            finder: ~
            provider:
              debug_logging: false
        country:
          mappings:
            name:
              type: string
          persistence:
            driver: orm
            model: Ojs\LocationBundle\Entity\Country
            provider: ~
            listener: ~
            finder: ~
            provider:
              debug_logging: false
        province:
          mappings:
            name:
              type: string
          persistence:
            driver: orm
            model: Ojs\LocationBundle\Entity\Province
            provider: ~
            listener: ~
            finder: ~
            provider:
              debug_logging: false
        citation:
          mappings:
            raw:
              type: string
            type:
              type: string
          persistence:
            driver: orm
            model: Ojs\JournalBundle\Entity\Citation
            provider: ~
            listener: ~
            finder: ~
        page:
          mappings:
            id:
              type: integer
            title:
              type: string
            tags:
              analyzer: "keyword"
              type: string
          persistence:
            driver: orm
            model: Ojs\AdminBundle\Entity\AdminPage
            provider: ~
            listener: ~
            finder: ~
        journal_page:
          mappings:
            id:
              type: integer
            title:
              type: string
            tags:
              analyzer: "keyword"
              type: string
          persistence:
            driver: orm
            model: Ojs\JournalBundle\Entity\JournalPage
            provider: ~
            listener: ~
            finder: ~
        author:
          mappings:
            id:
              type: integer
            firstName:
              type: string
            lastName:
              type: string
            middleName:
              type: string
            email:
              type: string
            tags:
              analyzer: "keyword"
              type: string
            articleAuthors:
              type: object
              properties:
                article:
                  type: object
                  properties:
                    id:
{'fraction_non_alphanumeric': 0.06165839829907867, 'fraction_numerical': 0.0012538843155427137, 'mean_word_length': 0.8198412698412698, 'pattern_counts': {'":': 10, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3271143', 'n_tokens_mistral': 4123, 'n_tokens_neox': 3918, 'n_words': 1054}