diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 305dff5f4..d1579ade9 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.9-slim-bookworm +FROM python:3.12-slim-bookworm # Avoid prompts from apt ENV DEBIAN_FRONTEND=noninteractive diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3ab54436a..70823b40f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,7 +44,7 @@ jobs: uses: actions/checkout@v6 - uses: actions/setup-python@v6 with: - python-version: 3.9 + python-version: "3.12" - name: Cache pip uses: actions/cache@v4.3.0 with: @@ -70,19 +70,21 @@ jobs: PGPORT: 5432 - name: Create config from templates run: make CONFIG=config/env.test load-env - - name: Install java 8 for (old) elasticsearch - uses: actions/setup-java@v5 - with: - distribution: "adopt" - java-version: 8 - - name: Run (old) elasticsearch + - name: Install elasticsearch & plugin & 1st start run: | mkdir /tmp/elasticsearch - wget -O - https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.4.6/elasticsearch-2.4.6.tar.gz | tar xz --directory=/tmp/elasticsearch --strip-components=1 - /tmp/elasticsearch/bin/plugin install analysis-icu - /tmp/elasticsearch/bin/elasticsearch --daemonize --path.data /tmp + wget -O - https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.19.18-linux-x86_64.tar.gz | tar xz --directory=/tmp/elasticsearch --strip-components=1 + /tmp/elasticsearch/bin/elasticsearch-plugin install analysis-icu + /tmp/elasticsearch/bin/elasticsearch --daemonize sleep 30 # ElasticSearch takes few seconds to start, make sure it is available when the build script runs - - run: curl -v http://localhost:9200 + - name: ElasticSearch settings update after auto configuration at 1st start & restart + run: | + sed -i 's/true/false/g' /tmp/elasticsearch/config/elasticsearch.yml + pgrep -f elasticsearch | xargs kill -9 + /tmp/elasticsearch/bin/elasticsearch --daemonize + sleep 30 # Password change requires time + - name: Check elasticsearch + run: curl -v http://localhost:9200 - name: Run tests (with secrets) # Accept running on pull requests except if from dependabot if: ${{ github.event_name != 'pull_request' || github.actor != 'dependabot[bot]' }} diff --git a/.gitignore b/.gitignore index 65f61e9d4..3b3e58184 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,5 @@ config/docker coverage.xml /config/env.local project.tar +scripts/anonymize-database/*/ +config/env.sandbox diff --git a/alembic_migration/versions/2c90b2e5ca7e_add_chinese.py b/alembic_migration/versions/2c90b2e5ca7e_add_chinese.py index dba9e3f89..b3a501818 100644 --- a/alembic_migration/versions/2c90b2e5ca7e_add_chinese.py +++ b/alembic_migration/versions/2c90b2e5ca7e_add_chinese.py @@ -48,7 +48,7 @@ def upgrade(): # if there is some value in the table. If yes, it's not a test DB and we have to complete them. conn = op.get_bind() - res = conn.execute("SELECT count(1) FROM guidebook.langs").fetchall() + res = conn.execute(sa.text("SELECT count(1) FROM guidebook.langs")).fetchall() if res[0][0] != 0: op.execute("INSERT INTO guidebook.langs VALUES ('zh');") diff --git a/alembic_migration/versions/305b064bdf66_add_slovenian.py b/alembic_migration/versions/305b064bdf66_add_slovenian.py index 389aa62aa..cf66ef4b7 100644 --- a/alembic_migration/versions/305b064bdf66_add_slovenian.py +++ b/alembic_migration/versions/305b064bdf66_add_slovenian.py @@ -21,7 +21,7 @@ def upgrade(): conn = op.get_bind() - res = conn.execute("SELECT count(1) FROM guidebook.langs").fetchall() + res = conn.execute(sa.text("SELECT count(1) FROM guidebook.langs")).fetchall() if res[0][0] != 0: op.execute("INSERT INTO guidebook.langs VALUES ('sl');") diff --git a/alembic_migration/versions/38df9393c9a9_init.py b/alembic_migration/versions/38df9393c9a9_init.py index 6b5907e27..be7eba281 100644 --- a/alembic_migration/versions/38df9393c9a9_init.py +++ b/alembic_migration/versions/38df9393c9a9_init.py @@ -702,18 +702,27 @@ def upgrade(): op.create_table('documents_geometries', sa.Column('version', sa.Integer(), nullable=False), sa.Column('document_id', sa.Integer(), nullable=False), - sa.Column('geom', geoalchemy2.types.Geometry(geometry_type='POINT', srid=3857, management=True), nullable=True), - sa.Column('geom_detail', geoalchemy2.types.Geometry(srid=3857, management=True, use_typmod=False), nullable=True), + sa.Column('geom', geoalchemy2.types.Geometry(geometry_type='POINT', srid=3857), nullable=True), + sa.Column('geom_detail', geoalchemy2.types.Geometry(srid=3857, use_typmod=False, spatial_index=False), nullable=True), sa.ForeignKeyConstraint(['document_id'], ['guidebook.documents.document_id'], ), sa.PrimaryKeyConstraint('document_id'), schema='guidebook' ) + # geom_detail uses use_typmod=False (see below, dimension constraint is dropped to allow + # mixed 2D/3D/4D geometries), which routes it through geoalchemy2's legacy "managed" + # AddGeometryColumn() codepath. That codepath's automatic spatial-index creation collides + # with alembic's own index creation (the Index object re-attaches itself to the table), + # raising a DuplicateTable error - so spatial_index is disabled above and the index is + # created explicitly here instead. + op.create_index( + 'idx_documents_geometries_geom_detail', 'documents_geometries', ['geom_detail'], + unique=False, schema='guidebook', postgresql_using='gist') op.create_table('documents_geometries_archives', sa.Column('version', sa.Integer(), nullable=False), sa.Column('id', sa.Integer(), nullable=False), sa.Column('document_id', sa.Integer(), nullable=False), - sa.Column('geom', geoalchemy2.types.Geometry(geometry_type='POINT', srid=3857, spatial_index=False, management=True), nullable=True), - sa.Column('geom_detail', geoalchemy2.types.Geometry(srid=3857, spatial_index=False, management=True, use_typmod=False), nullable=True), + sa.Column('geom', geoalchemy2.types.Geometry(geometry_type='POINT', srid=3857, spatial_index=False), nullable=True), + sa.Column('geom_detail', geoalchemy2.types.Geometry(srid=3857, spatial_index=False, use_typmod=False), nullable=True), sa.ForeignKeyConstraint(['document_id'], ['guidebook.documents.document_id'], ), sa.PrimaryKeyConstraint('id'), sa.UniqueConstraint('version', 'document_id', name='uq_documents_geometries_archives_document_id_version_lang'), diff --git a/alembic_migration/versions/bb61456d557f_create_stops_and_waypoints_stops.py b/alembic_migration/versions/bb61456d557f_create_stops_and_waypoints_stops.py index 8489b32d7..751f6e902 100644 --- a/alembic_migration/versions/bb61456d557f_create_stops_and_waypoints_stops.py +++ b/alembic_migration/versions/bb61456d557f_create_stops_and_waypoints_stops.py @@ -23,7 +23,7 @@ def upgrade(): sa.Column('stoparea_name', sa.String(), nullable=False), sa.Column('line', sa.String(), nullable=False), sa.Column('operator', sa.String(), nullable=False), - sa.Column('geom', geoalchemy2.types.Geometry(geometry_type='POINT', srid=3857, management=True), nullable=True), + sa.Column('geom', geoalchemy2.types.Geometry(geometry_type='POINT', srid=3857), nullable=True), schema='guidebook' ) diff --git a/c2corg_api/ext/colander_ext.py b/c2corg_api/ext/colander_ext.py index 767401eac..ddc8b2f4f 100644 --- a/c2corg_api/ext/colander_ext.py +++ b/c2corg_api/ext/colander_ext.py @@ -1,14 +1,19 @@ # Inspired from the c2cgeoform colander extension # https://github.com/camptocamp/c2cgeoform/blob/master/c2cgeoform/ext/ +import struct + from colander import (null, Invalid, SchemaType) from geoalchemy2 import WKBElement from geomet import wkb -from geoalchemy2.compat import buffer, bytes import geojson from numbers import Number +# EWKB SRID flag, see https://git.osgeo.org/gitea/postgis/postgis/raw/ +# master/doc/ZMSgeoms.txt +_EWKB_SRID_FLAG = 0x20000000 + class Geometry(SchemaType): """ A Colander type meant to be used with GeoAlchemy 2 geometry columns. @@ -78,16 +83,35 @@ def cstruct_children(self, node, cstruct): def wkbelement_from_geojson(geojson, srid): geometry = wkb.dumps(geojson, big_endian=False) + if srid and srid > 0: + # Embed the SRID directly in the WKB header, turning it into EWKB. + # geoalchemy2 binds a non-extended WKBElement by converting it + # through Shapely, which does not support M (4th dimension) + # coordinates and silently drops them. A WKBElement built from real + # EWKB is detected as already-extended and bound as a hex string + # directly instead, preserving all dimensions. + geometry = _to_ewkb(geometry, srid) return from_wkb(geometry, srid) +def _to_ewkb(wkb_bytes, srid): + byte_order = wkb_bytes[0] + fmt = 'I' + geom_type = struct.unpack(fmt, wkb_bytes[1:5])[0] + ewkb_type = geom_type | _EWKB_SRID_FLAG + return ( + wkb_bytes[0:1] + struct.pack(fmt, ewkb_type) + + struct.pack(fmt, srid) + wkb_bytes[5:] + ) + + def geojson_from_wkbelement(wkb_element): geometry = wkb.loads(bytes(wkb_element.data)) return geojson.dumps(geometry) def from_wkb(wkb, srid=-1): - return WKBElement(buffer(wkb), srid=srid) + return WKBElement(memoryview(wkb), srid=srid) def is_valid_geometry(obj): diff --git a/c2corg_api/models/__init__.py b/c2corg_api/models/__init__.py index e6cb04924..890bb82ec 100644 --- a/c2corg_api/models/__init__.py +++ b/c2corg_api/models/__init__.py @@ -1,6 +1,5 @@ -from sqlalchemy.ext.declarative import declarative_base - from sqlalchemy.orm import ( + declarative_base, scoped_session, sessionmaker, ) diff --git a/c2corg_api/models/area_association.py b/c2corg_api/models/area_association.py index baa4ae858..cfa40c211 100644 --- a/c2corg_api/models/area_association.py +++ b/c2corg_api/models/area_association.py @@ -66,7 +66,7 @@ def update_area(area, reset=False): # ignore forwarded areas return - area_geom = select([DocumentGeometry.geom_detail]). \ + area_geom = select(DocumentGeometry.geom_detail). \ where(DocumentGeometry.document_id == area.document_id) intersecting_documents = DBSession. \ query( @@ -111,9 +111,9 @@ def update_areas_for_document(document, reset=False): # ignore forwarded areas return - document_geom = select([DocumentGeometry.geom]). \ + document_geom = select(DocumentGeometry.geom). \ where(DocumentGeometry.document_id == document.document_id) - document_geom_detail = select([DocumentGeometry.geom_detail]). \ + document_geom_detail = select(DocumentGeometry.geom_detail). \ where(DocumentGeometry.document_id == document.document_id) intersecting_areas = DBSession. \ query( diff --git a/c2corg_api/models/association_views.py b/c2corg_api/models/association_views.py index d2fea4ec9..cd833f737 100644 --- a/c2corg_api/models/association_views.py +++ b/c2corg_api/models/association_views.py @@ -30,10 +30,10 @@ def _get_select_waypoints_for_routes(): route_type = text('\'' + ROUTE_TYPE + '\'') select_linked_waypoints = \ - select([ + select( Association.child_document_id.label('route_id'), Association.parent_document_id.label('waypoint_id') - ]). \ + ). \ where( and_( Association.parent_document_type == waypoint_type, @@ -41,10 +41,10 @@ def _get_select_waypoints_for_routes(): cte('linked_waypoints') select_waypoint_parents = \ - select([ + select( select_linked_waypoints.c.route_id, Association.parent_document_id.label('waypoint_id') - ]). \ + ). \ select_from(join( select_linked_waypoints, Association, @@ -56,10 +56,10 @@ def _get_select_waypoints_for_routes(): cte('waypoint_parents') select_waypoint_grandparents = \ - select([ + select( select_waypoint_parents.c.route_id, Association.parent_document_id.label('waypoint_id') - ]). \ + ). \ select_from(join( select_waypoint_parents, Association, @@ -89,12 +89,12 @@ def _get_select_waypoints_for_routes_aggregated(): """ all_waypoints = _get_select_waypoints_for_routes() return \ - select([ + select( all_waypoints.c.route_id.label('route_id'), func.array_agg( all_waypoints.c.waypoint_id, type_=postgresql.ARRAY(Integer)).label('waypoint_ids') - ]). \ + ). \ select_from(all_waypoints). \ group_by(all_waypoints.c.route_id) @@ -135,10 +135,10 @@ def _get_select_waypoints_for_outings_aggregated(): route_type = text('\'' + ROUTE_TYPE + '\'') all_waypoints_for_routes = _get_select_waypoints_for_routes() waypoints_for_outings = \ - select([ + select( Association.child_document_id.label('outing_id'), all_waypoints_for_routes.c.waypoint_id - ]). \ + ). \ select_from(join( Association, all_waypoints_for_routes, @@ -150,12 +150,12 @@ def _get_select_waypoints_for_outings_aggregated(): ))). \ cte('waypoints_for_outings') return \ - select([ + select( waypoints_for_outings.c.outing_id.label('outing_id'), func.array_agg( waypoints_for_outings.c.waypoint_id, type_=postgresql.ARRAY(Integer)).label('waypoint_ids') - ]). \ + ). \ select_from(waypoints_for_outings). \ group_by(waypoints_for_outings.c.outing_id) @@ -189,12 +189,12 @@ def _get_select_users_for_outings_aggregated(): outing_type = text('\'' + OUTING_TYPE + '\'') user_type = text('\'' + USERPROFILE_TYPE + '\'') return \ - select([ + select( Association.child_document_id.label('outing_id'), func.array_agg( Association.parent_document_id, type_=postgresql.ARRAY(Integer)).label('user_ids') - ]). \ + ). \ select_from(Association). \ where(and_( Association.parent_document_type == user_type, @@ -232,12 +232,12 @@ def _get_select_routes_for_outings_aggregated(): outing_type = text('\'' + OUTING_TYPE + '\'') route_type = text('\'' + ROUTE_TYPE + '\'') return \ - select([ + select( Association.child_document_id.label('outing_id'), func.array_agg( Association.parent_document_id, type_=postgresql.ARRAY(Integer)).label('route_ids') - ]). \ + ). \ select_from(Association). \ where(and_( Association.parent_document_type == route_type, @@ -273,12 +273,12 @@ def _get_select_users_for_routes_aggregated(): associated users. """ return \ - select([ + select( DocumentTag.document_id.label('route_id'), func.array_agg( DocumentTag.user_id, type_=postgresql.ARRAY(Integer)).label('user_ids') - ]). \ + ). \ select_from(DocumentTag). \ group_by(DocumentTag.document_id) diff --git a/c2corg_api/models/document.py b/c2corg_api/models/document.py index a9754d777..fdc23dccf 100644 --- a/c2corg_api/models/document.py +++ b/c2corg_api/models/document.py @@ -118,13 +118,14 @@ def update(self, other): """ copy_attributes(other, self, Document._ATTRIBUTES_WHITELISTED) - for locale_in in other.locales: - locale = self.get_locale(locale_in.lang) - if locale: - locale.update(locale_in) - locale.document_id = self.document_id - else: - self.locales.append(locale_in) + with DBSession.no_autoflush: + for locale_in in other.locales: + locale = self.get_locale(locale_in.lang) + if locale: + locale.update(locale_in) + locale.document_id = self.document_id + else: + self.locales.append(locale_in) if other.geometry: if self.geometry: @@ -295,7 +296,6 @@ def geom(self): return Column( Geometry( geometry_type='POINT', srid=3857, dimension=2, - management=True, spatial_index=self.__name__ != 'ArchiveDocumentGeometry'), info={ 'colanderalchemy': { @@ -309,7 +309,6 @@ def geom_detail(self): return Column( Geometry( geometry_type='GEOMETRY', srid=3857, - management=True, use_typmod=False, spatial_index=self.__name__ != 'ArchiveDocumentGeometry'), info={ diff --git a/c2corg_api/models/feed.py b/c2corg_api/models/feed.py index 941d4b50e..6df3cd7af 100644 --- a/c2corg_api/models/feed.py +++ b/c2corg_api/models/feed.py @@ -56,9 +56,10 @@ class FilterArea(Base): User.has_area_filter = column_property( - select([func.count(FilterArea.area_id) > 0]). + select(func.count(FilterArea.area_id) > 0). where(FilterArea.user_id == User.id). - correlate_except(FilterArea), + correlate_except(FilterArea). + scalar_subquery(), deferred=True ) User.feed_filter_areas = relationship('Area', secondary=FilterArea.__table__) @@ -96,9 +97,10 @@ class FollowedUser(Base): User.is_following_users = column_property( - select([func.count(FollowedUser.followed_user_id) > 0]). + select(func.count(FollowedUser.followed_user_id) > 0). where(FollowedUser.follower_user_id == User.id). - correlate_except(FollowedUser), + correlate_except(FollowedUser). + scalar_subquery(), deferred=True ) @@ -434,20 +436,19 @@ def update_areas_of_changes(document): """Update the area ids of all feed entries of the given document. """ areas_select = select( - [ - # concatenate with empty array to avoid null values - # select ARRAY[]::integer[] || array_agg(area_id) - literal_column('ARRAY[]::integer[]').op('||')( - func.array_agg( - AreaAssociation.area_id, - type_=postgresql.ARRAY(Integer))) - ]).\ + # concatenate with empty array to avoid null values + # select ARRAY[]::integer[] || array_agg(area_id) + literal_column('ARRAY[]::integer[]').op('||')( + func.array_agg( + AreaAssociation.area_id, + type_=postgresql.ARRAY(Integer))) + ).\ where(AreaAssociation.document_id == document.document_id) DBSession.execute( DocumentChange.__table__.update(). where(DocumentChange.document_id == document.document_id). - values(area_ids=areas_select.as_scalar()) + values(area_ids=areas_select.scalar_subquery()) ) @@ -474,7 +475,7 @@ def update_langs_of_changes(document_id): DBSession.execute( DocumentChange.__table__.update(). where(DocumentChange.document_id == document_id). - values(langs=langs.select())) + values(langs=langs.select().scalar_subquery())) def get_linked_document(images_in): diff --git a/c2corg_api/models/stoparea.py b/c2corg_api/models/stoparea.py index 6b238726e..db8b7a454 100644 --- a/c2corg_api/models/stoparea.py +++ b/c2corg_api/models/stoparea.py @@ -14,7 +14,7 @@ class _StopareaMixin(object): stoparea_name = Column(String, nullable=False) line = Column(String, nullable=False) operator = Column(String, nullable=False) - geom = Column(Geometry('POINT', srid=4326, management=True)) + geom = Column(Geometry('POINT', srid=4326)) attributes = ['navitia_id', 'stoparea_name', 'line', 'operator', 'geom'] diff --git a/c2corg_api/models/topo_map_association.py b/c2corg_api/models/topo_map_association.py index 4bfcd6c23..d400a61e8 100644 --- a/c2corg_api/models/topo_map_association.py +++ b/c2corg_api/models/topo_map_association.py @@ -66,7 +66,7 @@ def update_map(topo_map, reset=False): # ignore forwarded maps return - map_geom = select([DocumentGeometry.geom_detail]). \ + map_geom = select(DocumentGeometry.geom_detail). \ where(DocumentGeometry.document_id == topo_map.document_id) intersecting_documents = DBSession. \ query( @@ -111,9 +111,9 @@ def update_maps_for_document(document, reset=False): # ignore forwarded maps return - document_geom = select([DocumentGeometry.geom]). \ + document_geom = select(DocumentGeometry.geom). \ where(DocumentGeometry.document_id == document.document_id) - document_geom_detail = select([DocumentGeometry.geom_detail]). \ + document_geom_detail = select(DocumentGeometry.geom_detail). \ where(DocumentGeometry.document_id == document.document_id) intersecting_maps = DBSession. \ query( diff --git a/c2corg_api/models/utils.py b/c2corg_api/models/utils.py index 6741b82fb..3868b3702 100644 --- a/c2corg_api/models/utils.py +++ b/c2corg_api/models/utils.py @@ -151,13 +151,13 @@ def int_for_range(start_id, end_id): else: return column >= start_id - q = session.query( - column, + subq = session.query( + column.label('_window_col'), func.row_number().over(order_by=column).label('rownum') - ). \ - from_self(column) + ).subquery() + q = session.query(subq.c._window_col) if windowsize > 1: - q = q.filter(sa.text("rownum %% %d=1" % windowsize)) + q = q.filter(subq.c.rownum % windowsize == 1) intervals = [id for id, in q] diff --git a/c2corg_api/scripts/es/fill_index.py b/c2corg_api/scripts/es/fill_index.py index abae3263a..d8ee2f029 100644 --- a/c2corg_api/scripts/es/fill_index.py +++ b/c2corg_api/scripts/es/fill_index.py @@ -87,7 +87,7 @@ def progress(count, total_count): for doc in sync.get_documents(session, doc_type, batch_size, ignore_redirects=True): - batch.add(to_search_document(doc, index_name)) + batch.add(to_search_document(doc, index_name[:-1] + doc_type)) count += 1 progress(count, total) diff --git a/c2corg_api/scripts/es/sync.py b/c2corg_api/scripts/es/sync.py index 26793204c..535da6fa2 100644 --- a/c2corg_api/scripts/es/sync.py +++ b/c2corg_api/scripts/es/sync.py @@ -1,6 +1,8 @@ from c2corg_api.models import es_sync, document_types, document_locale_types from c2corg_api.models.area import Area from c2corg_api.models.association import AssociationLog, Association +from c2corg_api.models.association_views import WaypointsForRoutesView, \ + WaypointsForOutingsView from c2corg_api.models.document import Document, DocumentGeometry from c2corg_api.models.document_history import DocumentVersion, HistoryMetaData from c2corg_api.models.document_tag import DocumentTagLog @@ -298,9 +300,9 @@ def sync_deleted_documents(session, deleted_documents, batch_size): with batch: for document_id, doc_type in deleted_documents: batch.add({ - '_index': index, + '_index': index[:-1]+doc_type, '_id': document_id, - '_type': doc_type, + 'c2corg_doc_type': doc_type, 'id': document_id, '_op_type': 'delete' }) @@ -319,8 +321,9 @@ def add_routes_for_waypoints(session, docs_per_type): if not changed_waypoint_ids: return - linked_route_ids = session.query(Route.document_id). \ - filter(Route.main_waypoint_id.in_(changed_waypoint_ids)).all() + linked_route_ids = [ + row[0] for row in session.query(Route.document_id). + filter(Route.main_waypoint_id.in_(changed_waypoint_ids)).all()] route_ids = docs_per_type.setdefault(ROUTE_TYPE, set()) route_ids.update(linked_route_ids) @@ -345,9 +348,9 @@ def get_documents(session, doc_type, batch_size, document_ids=None, if document_ids: base_query = base_query.filter(clazz.document_id.in_(document_ids)) - locale_fields = ['title'] + locale_fields = [locales_clazz.title] if clazz == Route: - locale_fields.append('title_prefix') + locale_fields.append(locales_clazz.title_prefix) base_query = base_query. \ options(joinedload(clazz.locales.of_type(locales_clazz)). @@ -356,19 +359,19 @@ def get_documents(session, doc_type, batch_size, document_ids=None, if clazz != Area: base_query = base_query. \ - options(joinedload(clazz._areas).load_only('document_id')) + options(joinedload(clazz._areas).load_only(Area.document_id)) if clazz == Route: base_query = base_query. \ options( joinedload(Route.associated_waypoints_ids). - load_only('waypoint_ids')) + load_only(WaypointsForRoutesView.waypoint_ids)) if clazz == Outing: base_query = base_query. \ options( joinedload(Outing.associated_waypoints_ids). - load_only('waypoint_ids')) + load_only(WaypointsForOutingsView.waypoint_ids)) base_query = add_load_for_profiles(base_query, clazz) @@ -380,7 +383,7 @@ def create_search_documents(doc_type, documents, batch): index = elasticsearch_config['index'] n = 0 for doc in documents: - batch.add(to_search_document(doc, index)) + batch.add(to_search_document(doc, index[:-1]+doc_type)) n += 1 log.info('Sent {} document(s) of type {}'.format(n, doc_type)) diff --git a/c2corg_api/scripts/initializees.py b/c2corg_api/scripts/initializees.py index 22c24a8c7..477d43533 100644 --- a/c2corg_api/scripts/initializees.py +++ b/c2corg_api/scripts/initializees.py @@ -1,16 +1,7 @@ import os import sys - -from c2corg_api.search.mappings.area_mapping import SearchArea -from c2corg_api.search.mappings.article_mapping import SearchArticle -from c2corg_api.search.mappings.book_mapping import SearchBook -from c2corg_api.search.mappings.image_mapping import SearchImage -from c2corg_api.search.mappings.outing_mapping import SearchOuting -from c2corg_api.search.mappings.xreport_mapping import SearchXreport -from c2corg_api.search.mappings.route_mapping import SearchRoute -from c2corg_api.search.mappings.topo_map_mapping import SearchTopoMap -from c2corg_api.search.mappings.user_mapping import SearchUser -from c2corg_api.search.mappings.waypoint_mapping import SearchWaypoint +import pycurl +from io import BytesIO from elasticsearch_dsl import Index from pyramid.paster import ( @@ -19,8 +10,6 @@ ) from pyramid.scripts.common import parse_vars - -from c2corg_api.search.mapping import analysis_settings from c2corg_api.search import configure_es_from_config, elasticsearch_config @@ -45,38 +34,43 @@ def main(argv=sys.argv): def setup_es(): """Create the ElasticSearch index and configure the mapping. """ + index_suffix_list = ["_a", "_b", "_c", "_i", + "_m", "_o", "_r", "_u", "_w", "_x"] + client = elasticsearch_config['client'] + elasticsearch_user = elasticsearch_config['user'] + elasticsearch_password = elasticsearch_config['passwd'] + global authentification + authentification = elasticsearch_user+':'+elasticsearch_password index_name = elasticsearch_config['index'] + cible = elasticsearch_config['host']+':'+str(elasticsearch_config['port']) + # print('cible es: %s', cible) info = client.info() print('ElasticSearch version: {0}'.format(info['version']['number'])) - if client.indices.exists(index_name): - print('Index "{0}" already exists. To re-create the index, manually ' - 'delete the index and run this script again.'.format(index_name)) - print('To delete the index run:') - print('curl -XDELETE \'http://{0}:{1}/{2}/\''.format( - elasticsearch_config['host'], elasticsearch_config['port'], - index_name)) - sys.exit(0) - - index = Index(index_name) - index.settings(analysis=analysis_settings) - - index.doc_type(SearchArea) - index.doc_type(SearchBook) - index.doc_type(SearchImage) - index.doc_type(SearchOuting) - index.doc_type(SearchXreport) - index.doc_type(SearchRoute) - index.doc_type(SearchTopoMap) - index.doc_type(SearchUser) - index.doc_type(SearchWaypoint) - index.doc_type(SearchArticle) - - index.create() - - print('Index "{0}" created'.format(index_name)) + for index_suffix in index_suffix_list: + indice = index_name[:-2]+index_suffix + if client.indices.exists(index=indice): + print('Index "{0}" already exists. deleting it {0}... ' + .format(index_name[:-2]+index_suffix)) + """ print('To delete the index run:') + print('curl -XDELETE \'http://{0}:{1}/{2}/\''.format( + elasticsearch_config['host'], elasticsearch_config['port'], + index_name+index_suffix)) """ + delete_indice(cible, index_name[:-2]+index_suffix) + + for index_suffix in index_suffix_list: + # print('Index "{0}" to create'.format(index_name[:-2]+index_suffix)) + create_indice(cible, index_name[:-2]+index_suffix) + # print('Index "{0}" created'.format(index_name[:-2]+index_suffix)) + indice_settings_update(cible, index_name[:-2]+index_suffix) + # print('Index "{0}" settings'.format(index_name[:-2] + index_suffix)) + indice_mapping_update(cible, + index_name[:-2]+index_suffix, index_suffix[1]) + # print('Index "{0}" mappings'.format(index_name[:-2] + index_suffix)) + + print('all indexes are created') def drop_index(silent=True): @@ -88,3 +82,92 @@ def drop_index(silent=True): except Exception as exc: if not silent: raise exc + + +def _configure_curl(c): + # avoid indefinite hangs if the ES connection stalls + c.setopt(c.CONNECTTIMEOUT, 10) + c.setopt(c.TIMEOUT, 30) + + +def delete_indice(cible, indice_name): + buffer = BytesIO() + c = pycurl.Curl() + _configure_curl(c) + header = ['Content-Type: application/json'] + c.setopt(c.HTTPHEADER, header) + c.setopt(c.CUSTOMREQUEST, 'DELETE') + c.setopt(c.URL, 'http://' + cible + '/' + indice_name) + c.setopt(c.WRITEDATA, buffer) + c.setopt(c.USERPWD, authentification) + c.perform() + c.close() + + +def create_indice(cible, indice_name): + buffer = BytesIO() + c = pycurl.Curl() + _configure_curl(c) + header = ['Content-Type: application/json'] + c.setopt(c.HTTPHEADER, header) + c.setopt(c.CUSTOMREQUEST, 'PUT') + c.setopt(c.URL, 'http://' + cible + '/' + indice_name) + c.setopt(c.WRITEDATA, buffer) + c.setopt(c.USERPWD, authentification) + c.perform() + c.close() + + +def indice_settings_update(cible, indice_name): + buffer = BytesIO() + c = pycurl.Curl() + _configure_curl(c) + header = ['Content-Type: application/json'] + c.setopt(c.HTTPHEADER, header) + c.setopt(c.CUSTOMREQUEST, 'POST') + c.setopt(c.URL, 'http://' + cible + '/' + indice_name + '/_close') + c.setopt(c.WRITEDATA, buffer) + c.setopt(c.USERPWD, authentification) + c.perform() + + file = "./scripts/esjson6-7/settings.json" + f = open(file) + post_data = f.read() + c.setopt(c.CUSTOMREQUEST, 'PUT') + c.setopt(c.URL, 'http://' + cible + '/' + indice_name + '/_settings') + c.setopt(c.POSTFIELDS, post_data) + c.setopt(c.WRITEDATA, buffer) + c.setopt(c.USERPWD, authentification) + c.perform() + c.close() + + c = pycurl.Curl() + _configure_curl(c) + header = ['Content-Type: application/json'] + c.setopt(c.HTTPHEADER, header) + c.setopt(c.CUSTOMREQUEST, 'POST') + c.setopt(c.URL, 'http://' + cible + '/' + indice_name + '/_open') + c.setopt(c.WRITEDATA, buffer) + c.setopt(c.USERPWD, authentification) + c.perform() + + c.close() + + +def indice_mapping_update(cible, indice_name, mapping_type): + file = "./scripts/esjson6-7/"+mapping_type+".json" + f = open(file) + post_data = f.read() + + buffer = BytesIO() + c = pycurl.Curl() + _configure_curl(c) + c.setopt(c.URL, 'http://'+cible+'/'+indice_name+'/_mapping') + header = ['Content-Type: application/json'] + c.setopt(c.HTTPHEADER, header) + c.setopt(c.CUSTOMREQUEST, 'PUT') + c.setopt(c.POSTFIELDS, post_data) + c.setopt(c.WRITEDATA, buffer) + c.setopt(c.USERPWD, authentification) + c.perform() + c.close() diff --git a/c2corg_api/search/__init__.py b/c2corg_api/search/__init__.py index 62fd91d44..eedf535d5 100644 --- a/c2corg_api/search/__init__.py +++ b/c2corg_api/search/__init__.py @@ -26,6 +26,7 @@ from kombu import Exchange, Queue, pools from kombu.connection import Connection + # the maximum number of documents that can be returned for each document type SEARCH_LIMIT_MAX = 50 @@ -37,15 +38,21 @@ 'client': None, 'index': None, 'host': None, - 'port': None + 'port': None, + 'scheme': None, + 'user': None, + 'passwd': None, } def client_from_config(settings): return Elasticsearch([{ 'host': settings['elasticsearch.host'], - 'port': int(settings['elasticsearch.port']) - }], maxsize=int(settings['elasticsearch.pool'])) + 'port': int(settings['elasticsearch.port']), + 'scheme': settings['elasticsearch.scheme'] + }], basic_auth=(settings['elasticsearch.user'], + settings['elasticsearch.passwd']), + maxsize=int(settings['elasticsearch.pool'])) def configure_es_from_config(settings): @@ -55,6 +62,9 @@ def configure_es_from_config(settings): elasticsearch_config['index'] = settings['elasticsearch.index'] elasticsearch_config['host'] = settings['elasticsearch.host'] elasticsearch_config['port'] = int(settings['elasticsearch.port']) + elasticsearch_config['scheme'] = settings['elasticsearch.scheme'] + elasticsearch_config['user'] = settings['elasticsearch.user'] + elasticsearch_config['passwd'] = settings['elasticsearch.passwd'] def get_queue_config(settings): @@ -73,11 +83,12 @@ def __init__(self, settings): return QueueConfiguration(settings) -def create_search(document_type): +def create_search(document_type=None): return Search( using=elasticsearch_config['client'], - index=elasticsearch_config['index'], - doc_type=search_documents[document_type]) + index=(elasticsearch_config['index']), + # doc_type="_doc" # search_documents[document_type] + ) def get_text_query_on_title(search_term, search_lang=None): @@ -113,10 +124,10 @@ def get_text_query_on_title(search_term, search_lang=None): query=search_term, fields=fields, type='phrase', - fuzziness=2, max_expansions=3, zero_terms_query="none", slop=4, + operator="and" ) diff --git a/c2corg_api/search/advanced_search.py b/c2corg_api/search/advanced_search.py index ad17163ad..1289dc9b0 100644 --- a/c2corg_api/search/advanced_search.py +++ b/c2corg_api/search/advanced_search.py @@ -1,3 +1,5 @@ +import logging + from c2corg_api.search.mapping_types import meta_param_keys from c2corg_api.search.search_filters import build_query @@ -21,8 +23,12 @@ def search(url_params, meta_params, doc_type): # only request the document ids from ES response = query.execute() - document_ids = [int(doc.meta.id) for doc in response] - total = response.hits.total + + for doc in response.hits: + logging.warning('doc.id : %s', doc.meta.id) + + document_ids = [int(doc.meta.id) for doc in response.hits] + total = response.hits.total.value return document_ids, total diff --git a/c2corg_api/search/mapping.py b/c2corg_api/search/mapping.py index dd9b5bd23..706c8be18 100644 --- a/c2corg_api/search/mapping.py +++ b/c2corg_api/search/mapping.py @@ -1,12 +1,12 @@ import json - from c2corg_api.models.document import Document from c2corg_api.search.mapping_types import Enum, QEnumArray, QLong, \ QEnumRange from c2corg_api.models.common.attributes import default_langs from c2corg_api.models.common.sortable_search_attributes import \ sortable_quality_types -from elasticsearch_dsl import DocType, String, MetaField, Long, GeoPoint +from elasticsearch_dsl import MetaField, Long, GeoPoint, Text +from elasticsearch_dsl import Document as esDocument class BaseMeta: @@ -21,30 +21,28 @@ class BaseMeta: # https://github.com/komoot/photon/blob/master/es/index_settings.json def default_title_field(lang: None): if lang is None: - return String( + return Text( index='not_analyzed', - similarity='c2corgsimilarity', fields={ - 'ngram': String( + 'ngram': Text( analyzer='index_ngram', search_analyzer='search_ngram'), - 'raw': String( + 'raw': Text( analyzer='index_raw', search_analyzer='search_raw') }) else: - return String( + return Text( index='not_analyzed', - similarity='c2corgsimilarity', fields={ - 'ngram': String( + 'ngram': Text( analyzer='index_ngram', search_analyzer='search_ngram'), - 'raw': String( + 'raw': Text( analyzer='index_raw', search_analyzer='search_raw'), - 'contentheavy': String( + 'contentheavy': Text( analyzer='{0}_heavy'.format(lang)) }) -class SearchDocument(DocType): +class SearchDocument(esDocument): """The base ElasticSearch mapping for documents. Each document type has its own specific mapping. @@ -63,9 +61,11 @@ class Meta(BaseMeta): pass id = Long() - doc_type = Enum() + c2corg_doc_type = Enum() + quality = QEnumRange( 'qa', model_field=Document.quality, enum_mapper=sortable_quality_types) + available_locales = QEnumArray('l', enum=default_langs) geom = GeoPoint() @@ -74,65 +74,65 @@ class Meta(BaseMeta): # fr title_fr = default_title_field("french") - summary_fr = String( + summary_fr = Text( analyzer='index_french', search_analyzer='search_french') - description_fr = String( + description_fr = Text( analyzer='index_french', search_analyzer='search_french') # it title_it = default_title_field("italian") - summary_it = String( + summary_it = Text( analyzer='index_italian', search_analyzer='search_italian') - description_it = String( + description_it = Text( analyzer='index_italian', search_analyzer='search_italian') # de title_de = default_title_field("german") - summary_de = String( + summary_de = Text( analyzer='index_german', search_analyzer='search_german') - description_de = String( + description_de = Text( analyzer='index_german', search_analyzer='search_german') # en title_en = default_title_field("english") - summary_en = String( + summary_en = Text( analyzer='index_english', search_analyzer='search_english') - description_en = String( + description_en = Text( analyzer='index_english', search_analyzer='search_english') # es title_es = default_title_field("spanish") - summary_es = String( + summary_es = Text( analyzer='index_spanish', search_analyzer='search_spanish') - description_es = String( + description_es = Text( analyzer='index_spanish', search_analyzer='search_spanish') # ca title_ca = default_title_field("catalan") - summary_ca = String( + summary_ca = Text( analyzer='index_catalan', search_analyzer='search_catalan') - description_ca = String( + description_ca = Text( analyzer='index_catalan', search_analyzer='search_catalan') # eu title_eu = default_title_field("basque") - summary_eu = String( + summary_eu = Text( analyzer='index_basque', search_analyzer='search_basque') - description_eu = String( + description_eu = Text( analyzer='index_basque', search_analyzer='search_basque') # sl title_sl = default_title_field("slovene") - summary_sl = String( + summary_sl = Text( analyzer='index_slovene', search_analyzer='search_slovene') - description_sl = String( + description_sl = Text( analyzer='index_slovene', search_analyzer='search_slovene') # zh title_zh = default_title_field("chinois") - summary_zh = String( + summary_zh = Text( analyzer='index_chinois', search_analyzer='search_chinois') - description_zh = String( + description_zh = Text( analyzer='index_chinois', search_analyzer='search_chinois') @staticmethod @@ -140,7 +140,7 @@ def to_search_document(document, index, include_areas=True): search_document = { '_index': index, '_id': document.document_id, - '_type': document.type, + # '_type': "_doc", # document.type, 'id': document.document_id } @@ -149,7 +149,7 @@ def to_search_document(document, index, include_areas=True): search_document['_op_type'] = 'delete' else: search_document['_op_type'] = 'index' - search_document['doc_type'] = document.type + search_document['c2corg_doc_type'] = document.type available_locales = [] for locale in document.locales: diff --git a/c2corg_api/search/mapping_types.py b/c2corg_api/search/mapping_types.py index df8964f98..0ce2b3c28 100644 --- a/c2corg_api/search/mapping_types.py +++ b/c2corg_api/search/mapping_types.py @@ -1,4 +1,4 @@ -from elasticsearch_dsl import String, Long, Integer, Boolean, Date +from elasticsearch_dsl import Text, Long, Integer, Boolean, Date # this module contains classes to mark the fields of a mapping that can be # used in a search. @@ -78,7 +78,7 @@ class QClass(QueryableMixin, clazz): return QClass -class Enum(String): +class Enum(Text): """Field type for enums that should not be analyzed before indexing. """ def __init__(self, *args, **kwargs): diff --git a/c2corg_api/search/mappings/area_mapping.py b/c2corg_api/search/mappings/area_mapping.py index f40b8f374..42989a85d 100644 --- a/c2corg_api/search/mappings/area_mapping.py +++ b/c2corg_api/search/mappings/area_mapping.py @@ -1,11 +1,14 @@ -from c2corg_api.models.area import AREA_TYPE, Area +from c2corg_api.models.area import Area, AREA_TYPE from c2corg_api.search.mapping import SearchDocument, BaseMeta from c2corg_api.search.mapping_types import QueryableMixin, QEnum class SearchArea(SearchDocument): class Meta(BaseMeta): - doc_type = AREA_TYPE + c2corg_doc_type = AREA_TYPE + + class Index: + name = 'c2corg_a' area_type = QEnum('atyp', model_field=Area.area_type) diff --git a/c2corg_api/search/mappings/article_mapping.py b/c2corg_api/search/mappings/article_mapping.py index 930e2c242..3bcd050b7 100644 --- a/c2corg_api/search/mappings/article_mapping.py +++ b/c2corg_api/search/mappings/article_mapping.py @@ -5,7 +5,10 @@ class SearchArticle(SearchDocument): class Meta(BaseMeta): - doc_type = ARTICLE_TYPE + c2corg_doc_type = ARTICLE_TYPE + + class Index: + name = 'c2corg_c' activities = QEnumArray( 'act', model_field=Article.activities) diff --git a/c2corg_api/search/mappings/book_mapping.py b/c2corg_api/search/mappings/book_mapping.py index d93fae2bd..e92505739 100644 --- a/c2corg_api/search/mappings/book_mapping.py +++ b/c2corg_api/search/mappings/book_mapping.py @@ -5,7 +5,10 @@ class SearchBook(SearchDocument): class Meta(BaseMeta): - doc_type = BOOK_TYPE + c2corg_doc_type = BOOK_TYPE + + class Index: + name = 'c2corg_b' activities = QEnumArray( 'act', model_field=Book.activities) diff --git a/c2corg_api/search/mappings/image_mapping.py b/c2corg_api/search/mappings/image_mapping.py index 1cd6ba234..d7c0f28ab 100644 --- a/c2corg_api/search/mappings/image_mapping.py +++ b/c2corg_api/search/mappings/image_mapping.py @@ -6,7 +6,10 @@ class SearchImage(SearchDocument): class Meta(BaseMeta): - doc_type = IMAGE_TYPE + c2corg_doc_type = IMAGE_TYPE + + class Index: + name = 'c2corg_i' activities = QEnumArray( 'act', model_field=Image.activities) diff --git a/c2corg_api/search/mappings/outing_mapping.py b/c2corg_api/search/mappings/outing_mapping.py index 0b6ba166b..b6b250606 100644 --- a/c2corg_api/search/mappings/outing_mapping.py +++ b/c2corg_api/search/mappings/outing_mapping.py @@ -17,7 +17,10 @@ class SearchOuting(SearchDocument): class Meta(BaseMeta): - doc_type = OUTING_TYPE + c2corg_doc_type = OUTING_TYPE + + class Index: + name = 'c2corg_o' date_start = Date() date_end = Date() diff --git a/c2corg_api/search/mappings/route_mapping.py b/c2corg_api/search/mappings/route_mapping.py index 758977958..277aac025 100644 --- a/c2corg_api/search/mappings/route_mapping.py +++ b/c2corg_api/search/mappings/route_mapping.py @@ -17,7 +17,10 @@ class SearchRoute(SearchDocument): class Meta(BaseMeta): - doc_type = ROUTE_TYPE + c2corg_doc_type = ROUTE_TYPE + + class Index: + name = 'c2corg_r' # array of waypoint ids waypoints = QLong('w', is_id=True) diff --git a/c2corg_api/search/mappings/topo_map_mapping.py b/c2corg_api/search/mappings/topo_map_mapping.py index a39c82c91..1efb05df8 100644 --- a/c2corg_api/search/mappings/topo_map_mapping.py +++ b/c2corg_api/search/mappings/topo_map_mapping.py @@ -5,7 +5,10 @@ class SearchTopoMap(SearchDocument): class Meta(BaseMeta): - doc_type = MAP_TYPE + c2corg_doc_type = MAP_TYPE + + class Index: + name = 'c2corg_m' FIELDS = [] diff --git a/c2corg_api/search/mappings/user_mapping.py b/c2corg_api/search/mappings/user_mapping.py index 9c80f4b62..d7740d5d3 100644 --- a/c2corg_api/search/mappings/user_mapping.py +++ b/c2corg_api/search/mappings/user_mapping.py @@ -5,7 +5,10 @@ class SearchUser(SearchDocument): class Meta(BaseMeta): - doc_type = USERPROFILE_TYPE + c2corg_doc_type = USERPROFILE_TYPE + + class Index: + name = 'c2corg_u' FIELDS = [] diff --git a/c2corg_api/search/mappings/waypoint_mapping.py b/c2corg_api/search/mappings/waypoint_mapping.py index 1ebb6a73e..4716fadab 100644 --- a/c2corg_api/search/mappings/waypoint_mapping.py +++ b/c2corg_api/search/mappings/waypoint_mapping.py @@ -10,7 +10,10 @@ class SearchWaypoint(SearchDocument): class Meta(BaseMeta): - doc_type = WAYPOINT_TYPE + c2corg_doc_type = WAYPOINT_TYPE + + class Index: + name = 'c2corg_w' elevation = QInteger( 'walt', range=True) diff --git a/c2corg_api/search/mappings/xreport_mapping.py b/c2corg_api/search/mappings/xreport_mapping.py index a54b86c72..914435bd7 100644 --- a/c2corg_api/search/mappings/xreport_mapping.py +++ b/c2corg_api/search/mappings/xreport_mapping.py @@ -9,7 +9,10 @@ class SearchXreport(SearchDocument): class Meta(BaseMeta): - doc_type = XREPORT_TYPE + c2corg_doc_type = XREPORT_TYPE + + class Index: + name = 'c2corg_x' event_activity = QEnumArray( 'act', model_field=Xreport.event_activity) diff --git a/c2corg_api/search/search.py b/c2corg_api/search/search.py index dbdf987f0..8c6b4d083 100644 --- a/c2corg_api/search/search.py +++ b/c2corg_api/search/search.py @@ -1,5 +1,7 @@ import logging +from elasticsearch_dsl import Q + from c2corg_api.search import create_search, elasticsearch_config, \ get_text_query_on_title from c2corg_api.views.document_listings import get_documents @@ -44,13 +46,14 @@ def do_multi_search_for_types(search_types, search_term, limit, lang): and returns a list of tuples (document_ids, total) containing the results for each type. """ - multi_search = MultiSearch(index=elasticsearch_config['index']) + multi_search = MultiSearch(index=elasticsearch_config['index'],) for search_type in search_types: (_, get_documents_config) = search_type search = create_search(get_documents_config.document_type).\ - query(get_text_query_on_title(search_term, lang)).\ - fields([]).\ + query(get_text_query_on_title(search_term, lang)). \ + filter(Q("match", + c2corg_doc_type=get_documents_config.document_type)). \ extra(from_=0, size=limit) log.debug('Search filter for type {}: {}'.format( get_documents_config.document_type, search.to_dict())) diff --git a/c2corg_api/search/search_filters.py b/c2corg_api/search/search_filters.py index f23c68b23..78280b041 100644 --- a/c2corg_api/search/search_filters.py +++ b/c2corg_api/search/search_filters.py @@ -8,8 +8,8 @@ from c2corg_api.search import (create_search, get_text_query_on_title, search_documents) from c2corg_api.search.mapping_types import reserved_query_fields -from elasticsearch_dsl.query import (Bool, GeoBoundingBox, Missing, Range, - Script, Term, Terms) +from elasticsearch_dsl.query import (Bool, GeoBoundingBox, Range, + Script, Term, Terms, Q) from pyproj import Transformer log = logging.getLogger(__name__) @@ -35,8 +35,9 @@ def build_query(url_params, meta_params, doc_type): if filter: search = search.filter(filter) + search = search.filter(Q("match", c2corg_doc_type=doc_type)) + search = search. \ - fields([]). \ extra(from_=offset, size=limit) if url_params.get('bbox'): @@ -56,8 +57,6 @@ def build_query(url_params, meta_params, doc_type): else: search = search.sort({'id': {'order': 'desc'}}) - log.debug('Search filter: {}'.format(search.to_dict())) - return search @@ -171,9 +170,9 @@ def create_enum_range_min_max_filter(field, query_term): return Bool(must_not=Bool(should=[ Range(**kwargs_start), Range(**kwargs_end), - Bool(must=[ - Missing(field=field.field_min), - Missing(field=field.field_max) + Bool(must_not=[ + Q("exists", field=field.field_min), + Q("exists", field=field.field_max) ]) ])) @@ -355,9 +354,9 @@ def create_number_range_filter(field, query_term): return Bool(must_not=Bool(should=[ Range(**kwargs_start), Range(**kwargs_end), - Bool(must=[ - Missing(field=field.field_min), - Missing(field=field.field_max) + Bool(must_not=[ + Q('exists', field=field.field_min), + Q('exists', field=field.field_max) ]) ])) @@ -376,8 +375,8 @@ def create_bbox_filter(query_term): return None return GeoBoundingBox( - geom={'left': xmin, 'bottom': ymin, 'right': xmax, 'top': ymax}, - type='indexed' + geom={'left': xmin, 'bottom': ymin, 'right': xmax, 'top': ymax} + # type='indexed' ) diff --git a/c2corg_api/tests/scripts/es/test_fill_index.py b/c2corg_api/tests/scripts/es/test_fill_index.py index 88daa53fc..5b719e893 100644 --- a/c2corg_api/tests/scripts/es/test_fill_index.py +++ b/c2corg_api/tests/scripts/es/test_fill_index.py @@ -16,6 +16,7 @@ from c2corg_api.search.mappings.waypoint_mapping import SearchWaypoint from c2corg_api.tests import BaseTestCase from c2corg_api.scripts.es.fill_index import fill_index +from c2corg_api.search import elasticsearch_config class FillIndexTest(BaseTestCase): @@ -141,58 +142,60 @@ def test_fill_index(self): # fill the ElasticSearch index fill_index(self.session) - - waypoint1 = SearchWaypoint.get(id=71171) + index = elasticsearch_config['index'] + waypoint1 = SearchWaypoint.get(id=71171, index=index[:-1]+'w') self.assertIsNotNone(waypoint1) self.assertEqual(waypoint1.title_en, 'Mont Granier') self.assertEqual(waypoint1.title_fr, 'Mont Granier') # self.assertEqual(waypoint1.summary_fr, 'Le Mont Granier ') - self.assertEqual(waypoint1.doc_type, 'w') + self.assertEqual(waypoint1.c2corg_doc_type, 'w') self.assertEqual(waypoint1.quality, 2) self.assertEqual(waypoint1.access_time, 3) self.assertAlmostEqual(waypoint1.geom[0], 5.71288994) self.assertAlmostEqual(waypoint1.geom[1], 45.64476395) - waypoint2 = SearchWaypoint.get(id=71172) + waypoint2 = SearchWaypoint.get(id=71172, index=index[:-1]+'w') self.assertIsNotNone(waypoint2) self.assertEqual(waypoint2.title_en, 'Mont Blanc') self.assertIsNone(waypoint2.title_fr) - self.assertEqual(waypoint2.doc_type, 'w') + self.assertEqual(waypoint2.c2corg_doc_type, 'w') - route = SearchRoute.get(id=71173) + route = SearchRoute.get(id=71173, index=index[:-1]+'r') self.assertIsNotNone(route) self.assertEqual(route.title_en, 'Mont Blanc : Face N') self.assertIsNone(route.title_fr) - self.assertEqual(route.doc_type, 'r') + self.assertEqual(route.c2corg_doc_type, 'r') self.assertEqual(route.durations, [0]) - outing = SearchOuting.get(id=71175) + outing = SearchOuting.get(id=71175, index=index[:-1]+'o') self.assertIsNotNone(outing) self.assertEqual(outing.title_en, 'Mont Blanc : Face N !') self.assertIsNone(outing.title_fr) - self.assertEqual(outing.doc_type, 'o') + self.assertEqual(outing.c2corg_doc_type, 'o') self.assertEqual(outing.frequentation, 3) - article = SearchArticle.get(id=71176) + article = SearchArticle.get(id=71176, index=index[:-1]+'c') self.assertIsNotNone(article) self.assertEqual(article.title_en, 'Lac d\'Annecy') self.assertEqual(article.title_fr, 'Lac d\'Annecy') - self.assertEqual(article.doc_type, 'c') + self.assertEqual(article.c2corg_doc_type, 'c') - book = SearchBook.get(id=71177) + book = SearchBook.get(id=71177, index=index[:-1]+'b') self.assertIsNotNone(book) self.assertEqual(book.title_en, 'Escalades au Thaurac') self.assertEqual(book.title_fr, 'Escalades au Thaurac') - self.assertEqual(book.doc_type, 'b') + self.assertEqual(book.c2corg_doc_type, 'b') self.assertEqual(book.book_types, ['biography']) - xreport = SearchXreport.get(id=71178) + xreport = SearchXreport.get(id=71178, index=index[:-1]+'x') self.assertIsNotNone(xreport) self.assertEqual(xreport.title_en, 'Death in the mountains') - self.assertEqual(xreport.doc_type, 'x') + self.assertEqual(xreport.c2corg_doc_type, 'x') # merged document is ignored - self.assertIsNone(SearchWaypoint.get(id=71174, ignore=404)) + self.assertIsNone(SearchWaypoint.get(id=71174, + index=index[:-1]+'w', + ignore=404)) # check that the sync. status was updated last_update, _ = es_sync.get_status(self.session) diff --git a/c2corg_api/tests/scripts/es/test_syncer.py b/c2corg_api/tests/scripts/es/test_syncer.py index fff2c903e..a17ba3fb3 100644 --- a/c2corg_api/tests/scripts/es/test_syncer.py +++ b/c2corg_api/tests/scripts/es/test_syncer.py @@ -46,9 +46,9 @@ def test_process_task(self): next(syncer.consume(limit=1)) index = elasticsearch_config['index'] - doc = SearchWaypoint.get(id=document_id, index=index) + doc = SearchWaypoint.get(id=document_id, index=index[:-1]+'w') self.assertEqual(doc['title_fr'], 'Mont Granier') - self.assertEqual(doc['doc_type'], 'w') + self.assertEqual(doc['c2corg_doc_type'], 'w') # simulate removing a document self.session.add(ESDeletedDocument( @@ -61,4 +61,4 @@ def test_process_task(self): next(syncer.consume(limit=1)) with self.assertRaises(NotFoundError): - SearchWaypoint.get(id=document_id, index=index) + SearchWaypoint.get(id=document_id) # JPR8 , index=index diff --git a/c2corg_api/tests/search/__init__.py b/c2corg_api/tests/search/__init__.py index a33b90592..80d748480 100644 --- a/c2corg_api/tests/search/__init__.py +++ b/c2corg_api/tests/search/__init__.py @@ -16,4 +16,4 @@ def force_search_index(): """Force that the search index is updated. """ elasticsearch_config['client'].indices.refresh( - elasticsearch_config['index']) + index=elasticsearch_config['index']) diff --git a/c2corg_api/tests/search/test_search_filters.py b/c2corg_api/tests/search/test_search_filters.py index 61308938d..9956af4bf 100644 --- a/c2corg_api/tests/search/test_search_filters.py +++ b/c2corg_api/tests/search/test_search_filters.py @@ -6,8 +6,8 @@ from c2corg_api.search.mappings.outing_mapping import SearchOuting from c2corg_api.search.mappings.waypoint_mapping import SearchWaypoint from c2corg_api.tests import BaseTestCase -from elasticsearch_dsl.query import (Bool, GeoBoundingBox, Missing, Range, - Script, Term, Terms) +from elasticsearch_dsl.query import (Bool, GeoBoundingBox, Range, + Script, Term, Terms, Q) class AdvancedSearchTest(BaseTestCase): @@ -29,7 +29,7 @@ def test_build_query(self): filter(Term(available_locales='fr')).\ filter(Terms(areas=[1234, 4567])). \ filter(Range(elevation={'gte': 1500})). \ - fields([]).\ + filter(Q("match", c2corg_doc_type='w')). \ extra(from_=0, size=10) self.assertQueryEqual(query, expected_query) @@ -50,9 +50,9 @@ def test_build_query_bbox(self): filter(GeoBoundingBox( geom={ 'left': 6.28279913, 'bottom': 46.03129072, - 'right': 6.28369744, 'top': 46.03191439}, - type='indexed')). \ - fields([]). \ + 'right': 6.28369744, 'top': 46.03191439} + )). \ + filter(Q("match", c2corg_doc_type='w')). \ extra(from_=0, size=10) self.assertQueryEqual(query, expected_query) @@ -67,7 +67,7 @@ def test_build_query_limit_offset(self): query = build_query(params, meta_params, 'w') expected_query = create_search('w'). \ query(get_text_query_on_title('search word')). \ - fields([]).\ + filter(Q("match", c2corg_doc_type='w')). \ extra(from_=40, size=20) self.assertQueryEqual(query, expected_query) @@ -82,7 +82,7 @@ def test_build_query_sort_outing(self): query = build_query(params, meta_params, 'o') expected_query = create_search('o'). \ filter(Term(activities='skitouring')). \ - fields([]). \ + filter(Q("match", c2corg_doc_type='o')). \ sort({'date_end': {'order': 'desc'}}, {'id': {'order': 'desc'}}). \ extra(from_=40, size=20) self.assertQueryEqual(query, expected_query) @@ -212,9 +212,9 @@ def test_create_filter_enum_range_min_max(self): Bool(must_not=Bool(should=[ Range(climbing_rating_min={'gt': 17}), Range(climbing_rating_max={'lt': 5}), - Bool(must=[ - Missing(field='climbing_rating_min'), - Missing(field='climbing_rating_max') + Bool(must_not=[ + Q("exists", field='climbing_rating_min'), + Q("exists", field='climbing_rating_max') ]) ]))) @@ -243,9 +243,9 @@ def test_create_filter_integer_range(self): Bool(must_not=Bool(should=[ Range(elevation_min={'gt': 2400}), Range(elevation_max={'lt': 1200}), - Bool(must=[ - Missing(field='elevation_min'), - Missing(field='elevation_max') + Bool(must_not=[ + Q("exists", field='elevation_min'), + Q("exists", field='elevation_max') ]) ]))) self.assertEqual( @@ -253,9 +253,9 @@ def test_create_filter_integer_range(self): Bool(must_not=Bool(should=[ Range(height_min={'gt': 2400}), Range(height_max={'lt': 1200}), - Bool(must=[ - Missing(field='height_min'), - Missing(field='height_max') + Bool(must_not=[ + Q("exists", field='height_min'), + Q("exists", field='height_max') ]) ]))) @@ -460,8 +460,9 @@ def test_create_bbox_filter(self): GeoBoundingBox( geom={ 'left': 6.28279913, 'bottom': 46.03129072, - 'right': 6.28369744, 'top': 46.03191439}, - type='indexed').to_dict()) + 'right': 6.28369744, 'top': 46.03191439} + ).to_dict()) + def assertBboxFilterEqual(self, f1, f2): # noqa self.assertIn('geo_bounding_box', f1) diff --git a/c2corg_api/tests/views/__init__.py b/c2corg_api/tests/views/__init__.py index 96597089a..bb92c79c5 100644 --- a/c2corg_api/tests/views/__init__.py +++ b/c2corg_api/tests/views/__init__.py @@ -2,7 +2,6 @@ import urllib.request import urllib.parse import urllib.error - from c2corg_api.caching import cache_document_detail from c2corg_api.models.cache_version import CacheVersion, get_cache_key from c2corg_api.models.feed import DocumentChange @@ -178,6 +177,7 @@ def get_collection(self, params=None, user=None): def get_collection_search(self, params=None, user=None): prefix = self._prefix + if params: prefix += "?" + urllib.parse.urlencode(params) @@ -584,6 +584,7 @@ def post_success(self, request_body, user='contributor', headers=headers, status=200) body = response.json + if skip_validation: document_id = body.get('document_id') response = self.app.get( @@ -639,10 +640,9 @@ def _validate_document(self, body, headers=None, validate_with_auth=False): self.sync_es() search_doc = search_documents[self._doc_type].get( id=doc.document_id, - index=elasticsearch_config['index']) - - self.assertIsNotNone(search_doc['doc_type']) - self.assertEqual(search_doc['doc_type'], doc.type) + index=elasticsearch_config['index'][:-1]+self._doc_type) + self.assertIsNotNone(search_doc['c2corg_doc_type']) + self.assertEqual(search_doc['c2corg_doc_type'], doc.type) if isinstance(doc, Route): title = waypoint_locale_en.title_prefix + ' : ' + \ @@ -826,9 +826,9 @@ def put_success_all( # check updates to the search index search_doc = search_documents[self._doc_type].get( id=document.document_id, - index=elasticsearch_config['index']) + index=elasticsearch_config['index'][:-1]+self._doc_type) - self.assertEqual(search_doc['doc_type'], document.type) + self.assertEqual(search_doc['c2corg_doc_type'], document.type) self.assertEqual(search_doc['title_en'], archive_locale.title) self.assertEqual(search_doc['title_fr'], archive_locale_fr.title) @@ -911,9 +911,9 @@ def put_success_figures_only( sync_es(self.session) search_doc = search_documents[self._doc_type].get( id=document.document_id, - index=elasticsearch_config['index']) + index=elasticsearch_config['index'][:-1]+self._doc_type) - self.assertEqual(search_doc['doc_type'], document.type) + self.assertEqual(search_doc['c2corg_doc_type'], document.type) if isinstance(document, Route) and document.main_waypoint_id: locale_en = document.get_locale('en') @@ -1014,9 +1014,9 @@ def put_success_lang_only( sync_es(self.session) search_doc = search_documents[self._doc_type].get( id=document.document_id, - index=elasticsearch_config['index']) + index=elasticsearch_config['index'][:-1]+self._doc_type) - self.assertEqual(search_doc['doc_type'], document.type) + self.assertEqual(search_doc['c2corg_doc_type'], document.type) self.assertEqual( search_doc['title_en'], document.get_locale('en').title) self.assertEqual( @@ -1113,9 +1113,9 @@ def put_success_new_lang( sync_es(self.session) search_doc = search_documents[self._doc_type].get( id=document.document_id, - index=elasticsearch_config['index']) + index=elasticsearch_config['index'][:-1]+self._doc_type) - self.assertEqual(search_doc['doc_type'], document.type) + self.assertEqual(search_doc['c2corg_doc_type'], document.type) self.assertEqual( search_doc['title_en'], document.get_locale('en').title) self.assertEqual( diff --git a/c2corg_api/tests/views/test_langs.py b/c2corg_api/tests/views/test_langs.py index bf4ed4ef9..e90f50866 100644 --- a/c2corg_api/tests/views/test_langs.py +++ b/c2corg_api/tests/views/test_langs.py @@ -1,5 +1,4 @@ from datetime import date, datetime - from c2corg_api.models.feed import DocumentChange from c2corg_api.models.common.attributes import default_langs from c2corg_api.models.user import User diff --git a/c2corg_api/tests/views/test_user.py b/c2corg_api/tests/views/test_user.py index 9fcab876d..5887df3c4 100644 --- a/c2corg_api/tests/views/test_user.py +++ b/c2corg_api/tests/views/test_user.py @@ -351,7 +351,7 @@ def test_register_search_index(self, _send_email): sync_es(self.session) search_doc = search_documents[USERPROFILE_TYPE].get( id=user_id, - index=elasticsearch_config['index'], ignore=404) + index=elasticsearch_config['index'][:-1]+'u', ignore=404) self.assertIsNone(search_doc) # Simulate confirmation email validation @@ -363,10 +363,10 @@ def test_register_search_index(self, _send_email): self.sync_es() search_doc = search_documents[USERPROFILE_TYPE].get( id=user_id, - index=elasticsearch_config['index']) + index=elasticsearch_config['index'][:-1]+'u') self.assertIsNotNone(search_doc) - self.assertIsNotNone(search_doc['doc_type']) + self.assertIsNotNone(search_doc['c2corg_doc_type']) self.assertEqual(search_doc['title_fr'], 'Max Mustermann testf') @patch('c2corg_api.emails.email_service.EmailService._send_email') diff --git a/c2corg_api/tests/views/test_user_account.py b/c2corg_api/tests/views/test_user_account.py index 493f616fb..41a898282 100644 --- a/c2corg_api/tests/views/test_user_account.py +++ b/c2corg_api/tests/views/test_user_account.py @@ -89,12 +89,12 @@ def test_update_account_name_discourse_up(self): self.sync_es() search_doc = search_documents[USERPROFILE_TYPE].get( id=user_id, - index=elasticsearch_config['index']) + index=elasticsearch_config['index'][:-1]+'u') # and check that the cache version of the user profile was updated self.check_cache_version(user_id, 2) - self.assertIsNotNone(search_doc['doc_type']) + self.assertIsNotNone(search_doc['c2corg_doc_type']) self.assertEqual( search_doc['title_en'], 'changed contributor') diff --git a/c2corg_api/tests/views/test_user_profile.py b/c2corg_api/tests/views/test_user_profile.py index 73004d1ad..d2da44397 100644 --- a/c2corg_api/tests/views/test_user_profile.py +++ b/c2corg_api/tests/views/test_user_profile.py @@ -361,8 +361,8 @@ def _check_es_index(self): sync_es(self.session) search_doc = SearchUser.get( id=self.profile1.document_id, - index=elasticsearch_config['index']) - self.assertEqual(search_doc['doc_type'], self.profile1.type) + index=elasticsearch_config['index'][:-1]+'u') + self.assertEqual(search_doc['c2corg_doc_type'], self.profile1.type) self.assertEqual( search_doc['title_en'], 'Contributor contributor') self.assertEqual( diff --git a/c2corg_api/tests/views/test_waypoint.py b/c2corg_api/tests/views/test_waypoint.py index 17803b082..4eb3eb086 100644 --- a/c2corg_api/tests/views/test_waypoint.py +++ b/c2corg_api/tests/views/test_waypoint.py @@ -855,7 +855,7 @@ def test_put_success_all(self): # check that the route was updated in the search index search_doc = SearchRoute.get( id=route.document_id, - index=elasticsearch_config['index']) + index=elasticsearch_config['index'][:-1]+'r') self.assertEqual( search_doc['title_en'], 'Mont Granier! : Mont Blanc from the air') diff --git a/c2corg_api/views/__init__.py b/c2corg_api/views/__init__.py index 666617614..86360abdd 100644 --- a/c2corg_api/views/__init__.py +++ b/c2corg_api/views/__init__.py @@ -156,7 +156,7 @@ def serialize(data): """ if isinstance(data, str): return str(data) - if isinstance(data, collections.Mapping): + if isinstance(data, collections.abc.Mapping): return dict(list(map(serialize, iter(data.items())))) if isinstance(data, collections.abc.Iterable): return type(data)(list(map(serialize, data))) diff --git a/c2corg_api/views/area.py b/c2corg_api/views/area.py index 50ea3d023..2d5bb2bc2 100644 --- a/c2corg_api/views/area.py +++ b/c2corg_api/views/area.py @@ -1,5 +1,4 @@ import functools - from c2corg_api.models.area import schema_area, Area, schema_update_area, \ AREA_TYPE, schema_create_area, ArchiveArea from c2corg_api.models.area_association import update_area diff --git a/c2corg_api/views/document.py b/c2corg_api/views/document.py index 42f378ec4..7712eccd4 100644 --- a/c2corg_api/views/document.py +++ b/c2corg_api/views/document.py @@ -12,8 +12,9 @@ from c2corg_api.models.cache_version import update_cache_version, \ update_cache_version_associations, get_cache_key from c2corg_api.models.document import ( - UpdateType, DocumentLocale, ArchiveDocumentLocale, ArchiveDocument, - ArchiveDocumentGeometry, set_available_langs, get_available_langs) + Document, UpdateType, DocumentLocale, ArchiveDocumentLocale, + ArchiveDocument, ArchiveDocumentGeometry, set_available_langs, + get_available_langs) from c2corg_api.models.document_history import HistoryMetaData, DocumentVersion from c2corg_api.models.feed import update_feed_document_create, \ update_feed_document_update @@ -40,7 +41,7 @@ HTTPBadRequest, HTTPForbidden from sqlalchemy.orm import joinedload, contains_eager, load_only from sqlalchemy.orm.exc import StaleDataError -from sqlalchemy.orm.util import with_polymorphic +from sqlalchemy.orm import with_polymorphic log = logging.getLogger(__name__) @@ -69,7 +70,6 @@ def _collection_get(self, doc_type, documents_config): 'limit': min(validated.get('limit', LIMIT_DEFAULT), LIMIT_MAX), 'lang': validated.get('lang') } - if meta_params['offset'] + meta_params['limit'] > ES_MAX_RESULT_WINDOW: # ES does not process requests where offset + limit is greater # than 10000, see: @@ -95,7 +95,8 @@ def _search_documents_paginated( offset = meta_params['offset'] limit = meta_params['limit'] documents = base_query. \ - options(load_only('document_id', 'type', 'version')). \ + options(load_only( + Document.document_id, Document.type, Document.version)). \ slice(offset, offset + limit). \ limit(limit). \ all() @@ -303,7 +304,7 @@ def _get_document(self, clazz, id, clazz_locale=None, lang=None): document_query = DBSession. \ query(clazz). \ filter(getattr(clazz, 'document_id') == id). \ - options(joinedload('geometry')) + options(joinedload(getattr(clazz, 'geometry'))) document_query = add_load_for_locales( document_query, clazz, clazz_locale) document_query = add_load_for_profiles(document_query, clazz) @@ -320,7 +321,7 @@ def _get_document(self, clazz, id, clazz_locale=None, lang=None): join(locales_type). \ filter(getattr(clazz, 'document_id') == id). \ filter(DocumentLocale.lang == lang). \ - options(joinedload('geometry')).\ + options(joinedload(getattr(clazz, 'geometry'))).\ options(contains_eager(locales_type_eager, alias=locales_type)) document_query = add_load_for_profiles(document_query, clazz) document = document_query.first() @@ -331,7 +332,7 @@ def _get_document(self, clazz, id, clazz_locale=None, lang=None): document_query = DBSession. \ query(clazz). \ filter(getattr(clazz, 'document_id') == id). \ - options(joinedload('geometry')) + options(joinedload(getattr(clazz, 'geometry'))) document_query = add_load_for_profiles(document_query, clazz) document = document_query.first() @@ -358,7 +359,7 @@ def _get_document_for_cooking(clazz, document_id, lang, clazz_locale=None): document_query = DBSession. \ query(clazz). \ filter(getattr(clazz, 'document_id') == document_id). \ - options(joinedload('geometry')) + options(joinedload(getattr(clazz, 'geometry'))) document_query = add_load_for_locales( document_query, clazz, clazz_locale) document_query = add_load_for_profiles(document_query, clazz) diff --git a/c2corg_api/views/document_associations.py b/c2corg_api/views/document_associations.py index 5e61daeca..31904d50a 100644 --- a/c2corg_api/views/document_associations.py +++ b/c2corg_api/views/document_associations.py @@ -302,4 +302,4 @@ def get_linked_xreports(document, lang): def get_first_column(rows): - return [r for (r, ) in rows] + return [row[0] for row in rows] diff --git a/c2corg_api/views/document_changes.py b/c2corg_api/views/document_changes.py index 8104cff65..166f0eee8 100644 --- a/c2corg_api/views/document_changes.py +++ b/c2corg_api/views/document_changes.py @@ -79,23 +79,24 @@ def load_feed(doc_ids, limit, user_id=None): doc_changes = [] else: doc_changes = DBSession.query(DocumentVersion) \ - .options(load_only('lang'), - joinedload('history_metadata').load_only( + .options(load_only(DocumentVersion.lang), + joinedload(DocumentVersion.history_metadata).load_only( HistoryMetaData.id, HistoryMetaData.user_id, HistoryMetaData.comment, HistoryMetaData.written_at). - joinedload('user').load_only( + joinedload(HistoryMetaData.user).load_only( User.id, User.name, User.username, User.lang)) \ - .options(joinedload('document').load_only( + .options(joinedload(DocumentVersion.document).load_only( Document.version, Document.document_id, Document.type, Document.quality)) \ - .options(joinedload('document_locales_archive').load_only( + .options(joinedload( + DocumentVersion.document_locales_archive).load_only( ArchiveDocumentLocale.title)) \ .order_by(desc(DocumentVersion.id)) \ .filter(DocumentVersion.history_metadata_id.in_(doc_ids)) \ diff --git a/c2corg_api/views/document_delete.py b/c2corg_api/views/document_delete.py index a4328c23d..9ff96a2f8 100644 --- a/c2corg_api/views/document_delete.py +++ b/c2corg_api/views/document_delete.py @@ -254,8 +254,10 @@ def _delete_document(self, document_id, document_type, redirecting=False): archive_clazz, archive_clazz_locale) def _remove_merged_documents(self, document_id, document_type): - merged_document_ids = DBSession.query(ArchiveDocument.document_id). \ - filter(ArchiveDocument.redirects_to == document_id).all() + merged_document_ids = [ + row[0] for row in DBSession. + query(ArchiveDocument.document_id). + filter(ArchiveDocument.redirects_to == document_id).all()] for merged_document_id in merged_document_ids: self._delete_document(merged_document_id, document_type, True) @@ -367,10 +369,11 @@ def remove_from_cache(document_id): def _remove_versions(document_id): - history_metadata_ids = DBSession. \ - query(DocumentVersion.history_metadata_id). \ - filter(DocumentVersion.document_id == document_id). \ - all() + history_metadata_ids = [row[0] for row in DBSession. + query(DocumentVersion.history_metadata_id). + filter( + DocumentVersion.document_id == document_id). + all()] DBSession.query(DocumentVersion). \ filter(DocumentVersion.document_id == document_id). \ delete() diff --git a/c2corg_api/views/document_history.py b/c2corg_api/views/document_history.py index b67394d72..0f5790735 100644 --- a/c2corg_api/views/document_history.py +++ b/c2corg_api/views/document_history.py @@ -2,7 +2,8 @@ from c2corg_api.models import DBSession from c2corg_api.models.cache_version import get_cache_key from c2corg_api.models.document import DocumentLocale, DOCUMENT_TYPE -from c2corg_api.models.document_history import DocumentVersion +from c2corg_api.models.document_history import DocumentVersion, \ + HistoryMetaData from c2corg_api.views import cors_policy, etag_cache from c2corg_api.views.document_version import serialize_version from c2corg_api.views.validation import validate_lang, validate_id @@ -62,7 +63,8 @@ def _get_history(self, document_id, lang): raise HTTPNotFound('no locale document for "{0}"'.format(lang)) versions = DBSession.query(DocumentVersion) \ - .options(joinedload('history_metadata').joinedload('user')) \ + .options(joinedload(DocumentVersion.history_metadata). + joinedload(HistoryMetaData.user)) \ .filter(DocumentVersion.document_id == document_id) \ .filter(DocumentVersion.lang == lang) \ .order_by(DocumentVersion.id) \ diff --git a/c2corg_api/views/document_info.py b/c2corg_api/views/document_info.py index a818c71b0..174677d82 100644 --- a/c2corg_api/views/document_info.py +++ b/c2corg_api/views/document_info.py @@ -11,7 +11,7 @@ from c2corg_api.caching import get_or_create from pyramid.httpexceptions import HTTPNotFound from sqlalchemy.orm import contains_eager, load_only, joinedload -from sqlalchemy.orm.util import with_polymorphic +from sqlalchemy.orm import with_polymorphic class DocumentInfoRest(object): diff --git a/c2corg_api/views/document_listings.py b/c2corg_api/views/document_listings.py index d5700aca7..031f21e09 100644 --- a/c2corg_api/views/document_listings.py +++ b/c2corg_api/views/document_listings.py @@ -1,11 +1,11 @@ from c2corg_api.caching import cache_document_listing from c2corg_api.models import DBSession -from c2corg_api.models.area import schema_listing_area +from c2corg_api.models.area import Area, schema_listing_area from c2corg_api.models.association import Association from c2corg_api.models.cache_version import get_document_id, \ get_cache_keys from c2corg_api.models.document import ( - set_available_langs) + DocumentGeometry, DocumentLocale, set_available_langs) from c2corg_api.models.image import IMAGE_TYPE from c2corg_api.models.outing import Outing from c2corg_api.models.user import User @@ -46,6 +46,10 @@ def get_documents(documents_config, meta_params, search_documents): documents_config.clazz.document_id.desc()) document_ids, total = search_documents(base_query, base_total_query) + + if total is not None and not isinstance(total, int): + total = int(total['value']) + cache_keys = get_cache_keys( document_ids, lang, documents_config.document_type) @@ -85,7 +89,9 @@ def _get_documents_from_ids( loaded, and the list has the same order has the document id list. """ base_query = base_query.options( - load_only(*documents_config.get_load_only_fields()) + load_only(*[ + getattr(documents_config.clazz, field) + for field in documents_config.get_load_only_fields()]) ) base_query = add_load_for_locales( base_query, documents_config.clazz, documents_config.clazz_locale, @@ -96,7 +102,9 @@ def _get_documents_from_ids( # 'version' base_query = base_query.options( joinedload(getattr(documents_config.clazz, 'geometry')). - load_only(*documents_config.get_load_only_fields_geometry()) + load_only(*[ + getattr(DocumentGeometry, field) + for field in documents_config.get_load_only_fields_geometry()]) ) if documents_config.include_areas: @@ -104,11 +112,12 @@ def _get_documents_from_ids( options( joinedload(getattr(documents_config.clazz, '_areas')). load_only( - 'document_id', 'area_type', 'version', 'protected', - 'type'). - joinedload('locales'). + Area.document_id, Area.area_type, Area.version, + Area.protected, Area.type). + joinedload(Area.locales). load_only( - 'lang', 'title', 'version') + DocumentLocale.lang, DocumentLocale.title, + DocumentLocale.version) ) documents = _load_documents( @@ -161,7 +170,7 @@ def add_load_for_profiles(document_query, clazz): if clazz == UserProfile: # for profiles load names together from the associated user document_query = add_profile_filter(document_query, clazz). \ - options(contains_eager('user').load_only( + options(contains_eager(UserProfile.user).load_only( User.id, User.name, User.forum_username)) return document_query @@ -180,11 +189,14 @@ def add_load_for_locales( if clazz_locale: locales_load = subqueryload( getattr(clazz, 'locales').of_type(clazz_locale)) + locale_clazz = clazz_locale else: locales_load = subqueryload(getattr(clazz, 'locales')) + locale_clazz = DocumentLocale if load_only_fields: - locales_load = locales_load.load_only(*load_only_fields) + locales_load = locales_load.load_only( + *[getattr(locale_clazz, field) for field in load_only_fields]) return base_query.options(locales_load) diff --git a/c2corg_api/views/document_merge.py b/c2corg_api/views/document_merge.py index 954b71c8b..d45fa7e93 100644 --- a/c2corg_api/views/document_merge.py +++ b/c2corg_api/views/document_merge.py @@ -18,7 +18,7 @@ from colander import MappingSchema, required, SchemaNode, Integer from cornice.resource import resource from cornice.validators import colander_body_validator -from sqlalchemy.sql.elements import not_ +from sqlalchemy import not_ from sqlalchemy.sql.expression import and_, or_ from sqlalchemy.sql.functions import func diff --git a/c2corg_api/views/document_revert.py b/c2corg_api/views/document_revert.py index 7eb0be4ab..523e58b4b 100644 --- a/c2corg_api/views/document_revert.py +++ b/c2corg_api/views/document_revert.py @@ -30,7 +30,7 @@ from cornice.validators import colander_body_validator from pyramid.httpexceptions import HTTPBadRequest from sqlalchemy.orm import joinedload, contains_eager -from sqlalchemy.orm.util import with_polymorphic +from sqlalchemy.orm import with_polymorphic from sqlalchemy.sql.expression import exists, and_ log = logging.getLogger(__name__) @@ -192,7 +192,7 @@ def _get_current_document(self, document_id, lang, clazz, clazz_locale): join(locales_type). \ filter(getattr(clazz, 'document_id') == document_id). \ filter(DocumentLocale.lang == lang). \ - options(joinedload('geometry')). \ + options(joinedload(getattr(clazz, 'geometry'))). \ options(contains_eager(locales_type_eager, alias=locales_type)) return document_query.first() diff --git a/c2corg_api/views/document_version.py b/c2corg_api/views/document_version.py index 5c5532d97..8da665331 100644 --- a/c2corg_api/views/document_version.py +++ b/c2corg_api/views/document_version.py @@ -2,7 +2,8 @@ from c2corg_api.caching import cache_document_version from c2corg_api.models import DBSession from c2corg_api.models.cache_version import get_cache_key -from c2corg_api.models.document_history import DocumentVersion +from c2corg_api.models.document_history import DocumentVersion, \ + HistoryMetaData from c2corg_api.models.user import User from c2corg_api.views import to_json_dict, etag_cache from c2corg_api.caching import get_or_create @@ -52,7 +53,8 @@ def _load_version( self, document_id, lang, version_id, clazz, locale_clazz, schema, adapt_schema): version = DBSession.query(DocumentVersion) \ - .options(joinedload('history_metadata').joinedload('user'). + .options(joinedload(DocumentVersion.history_metadata). + joinedload(HistoryMetaData.user). load_only(User.id, User.name)) \ .options(joinedload( DocumentVersion.document_archive.of_type(clazz))) \ diff --git a/c2corg_api/views/feed.py b/c2corg_api/views/feed.py index 43423d274..0ab7d2d34 100644 --- a/c2corg_api/views/feed.py +++ b/c2corg_api/views/feed.py @@ -162,8 +162,8 @@ def get_changes_of_personal_feed( user_id, token_id, token_time, limit, ignore_admin_changes_filter): user = DBSession.query(User). \ filter(User.id == user_id). \ - options(undefer('has_area_filter')). \ - options(undefer('is_following_users')). \ + options(undefer(User.has_area_filter)). \ + options(undefer(User.is_following_users)). \ first() if has_no_custom_filter(user): diff --git a/c2corg_api/views/health.py b/c2corg_api/views/health.py index 4de41f449..015e155e4 100644 --- a/c2corg_api/views/health.py +++ b/c2corg_api/views/health.py @@ -62,8 +62,13 @@ def _add_es_status(self, status): try: client = elasticsearch_config['client'] index = elasticsearch_config['index'] - stats = client.indices.stats(index, metric='docs') - es_docs = stats['indices'][index]['total']['docs']['count'] + stats = client.indices.stats(index=index, metric='docs') + document_count_all_indice = 0 + for indice in stats['indices']: + document_count_all_indice += \ + stats['indices'][indice]['total']['docs']['count'] + # es_docs = stats['indices'][index]['total']['docs']['count'] + es_docs = document_count_all_indice success = True except Exception: log.exception('Getting indexed docs count failed') diff --git a/c2corg_api/views/route.py b/c2corg_api/views/route.py index 22f5738d3..f9f7e603f 100644 --- a/c2corg_api/views/route.py +++ b/c2corg_api/views/route.py @@ -148,7 +148,7 @@ def set_recent_outings(route, lang): """Set last 10 outings on the given route. """ recent_outing_ids = get_first_column( - DBSession.query(Outing.document_id). + DBSession.query(Outing.document_id, Outing.date_end). filter(Outing.redirects_to.is_(None)). join( Association, diff --git a/c2corg_api/views/user_preferences.py b/c2corg_api/views/user_preferences.py index 1e20f0f8d..61d6edf5c 100644 --- a/c2corg_api/views/user_preferences.py +++ b/c2corg_api/views/user_preferences.py @@ -1,6 +1,7 @@ from c2corg_api.security.acl import ACLDefault from c2corg_api import DBSession from c2corg_api.models.area import schema_listing_area, Area +from c2corg_api.models.document import DocumentLocale from c2corg_api.models.schema_utils import SchemaAssociationDoc from c2corg_api.models.user import User from c2corg_api.views import cors_policy, restricted_json_view, \ @@ -42,8 +43,10 @@ def get_user(self, with_area_locales=True): if with_area_locales: area_joinedload = area_joinedload. \ - joinedload('locales'). \ - load_only('lang', 'title', 'version') + joinedload(Area.locales). \ + load_only( + DocumentLocale.lang, DocumentLocale.title, + DocumentLocale.version) return DBSession. \ query(User). \ diff --git a/c2corg_api/views/waypoint.py b/c2corg_api/views/waypoint.py index d037fc50d..35e7a57b5 100644 --- a/c2corg_api/views/waypoint.py +++ b/c2corg_api/views/waypoint.py @@ -35,7 +35,7 @@ from c2corg_api.models.common.fields_waypoint import fields_waypoint from c2corg_api.models.common.attributes import waypoint_types from sqlalchemy.orm import joinedload, load_only -from sqlalchemy.orm.util import aliased +from sqlalchemy.orm import aliased from sqlalchemy.sql.elements import literal_column from sqlalchemy.sql.expression import and_, text, union, column from c2corg_api.models.area import Area @@ -266,7 +266,7 @@ def set_recent_outings(waypoint, lang): with_query_waypoints = _get_select_children(waypoint) recent_outing_ids = get_first_column( - DBSession.query(Outing.document_id). + DBSession.query(Outing.document_id, Outing.date_end). filter(Outing.redirects_to.is_(None)). join( t_outing_route, @@ -494,7 +494,7 @@ def update_linked_route_titles(waypoint, update_types, user_id): linked_routes = DBSession.query(Route). \ filter(Route.main_waypoint_id == waypoint.document_id). \ - options(joinedload(Route.locales).load_only( + options(joinedload(Route.locales.of_type(RouteLocale)).load_only( RouteLocale.lang, RouteLocale.id)). \ options(load_only(Route.document_id)). \ all() diff --git a/common.ini.in b/common.ini.in index a77b5e335..b321f0740 100644 --- a/common.ini.in +++ b/common.ini.in @@ -15,6 +15,9 @@ sqlalchemy.pool_size=20 elasticsearch.host = {elasticsearch_host} elasticsearch.port = {elasticsearch_port} elasticsearch.index = {elasticsearch_index} +elasticsearch.scheme = {elasticsearch_scheme} +elasticsearch.user = {elasticsearch_user} +elasticsearch.passwd = {elasticsearch_passwd} elasticsearch.pool = 50 # batch size for fill_index diff --git a/config/env.default b/config/env.default index 7c98ae84b..afcd73fd6 100644 --- a/config/env.default +++ b/config/env.default @@ -18,7 +18,10 @@ db_name="c2corg" elasticsearch_host="localhost" elasticsearch_port=9200 -elasticsearch_index="c2corg" +elasticsearch_index="c2corg_*" +elasticsearch_scheme="http" +elasticsearch_user="" +elasticsearch_passwd="" elasticsearch_batch_size_fill_index=1000 elasticsearch_batch_size_syncer=1000 @@ -47,7 +50,10 @@ tests_db_name="c2corg_tests" # ElasticSearch instance to run the unit tests tests_elasticsearch_host="localhost" tests_elasticsearch_port=9200 -tests_elasticsearch_index="c2corg_tests" +tests_elasticsearch_index="c2corg_tests_*" +tests_elasticsearch_scheme="http" +tests_elasticsearch_user="" +tests_elasticsearch_passwd="" # Discourse instance to run the unit tests tests_discourse_url="http://localhost:3000" diff --git a/dataMigration/README.md b/dataMigration/README.md new file mode 100644 index 000000000..dc45c7a62 --- /dev/null +++ b/dataMigration/README.md @@ -0,0 +1,6 @@ +## dataMigraiton folder content logstash pipeline script per target release ES number. + +- v5: to move ES data from 2.6 original to v5.6 +- v6: to move ES data from v5.6 to v6.x +- v7: to move ES data from v6.X to 7.X + diff --git a/dataMigration/v5/logstash.conf b/dataMigration/v5/logstash.conf new file mode 100644 index 000000000..ea42dae95 --- /dev/null +++ b/dataMigration/v5/logstash.conf @@ -0,0 +1,51 @@ +#pre requisite : docker-compose run -it logstash5 /usr/share/logstash/bin/logstash-plugin install logstash-filter-prune +input +{ + elasticsearch + { + hosts => ["elasticsearch26:9200"] + index => "c2corg" + docinfo => true + size => 1000 + scroll => "5m" + docinfo_target => "[@metadata]" + } +} + +filter { + if (![geom]) { + mutate { + add_field => { "geom" => [0,0] } + } + } + + mutate { + add_field => { "doc_id" => "%{[@metadata][_id]}" } + } + + #prune { + # whitelist_names => [ "doc_id" ] + #} + +} + +output +{ + elasticsearch + { + hosts => ["elasticsearch:9200"] + index => "c2corg" + document_type => "%{doc_type}" + document_id => "%{doc_id}" + } + + stdout { + codec => "dots" + } + +} + +#stdout { codec => "dots"} +#stdout { codec => rubydebug } +#stdout { codec => "json" } +#docker-compose run logstash5 /usr/share/logstash/bin/logstash -f /root/logstash.conf \ No newline at end of file diff --git a/dataMigration/v6/logstash.conf b/dataMigration/v6/logstash.conf new file mode 100644 index 000000000..ee87e1e2d --- /dev/null +++ b/dataMigration/v6/logstash.conf @@ -0,0 +1,49 @@ +input +{ + elasticsearch + { + hosts => ["elasticsearch56:9200"] + index => "c2corg" + docinfo => true + size => 1000 + scroll => "5m" + docinfo_target => "[@metadata]" + } +} + +filter { + if (![geom]) { + mutate { + add_field => { "geom" => [0,0] } + } + } + mutate { + add_field => { "c2corg_doc_type" => "%{[@metadata][_type]}" } + } + + mutate { + remove_field => [ "_type", "@timestamp", "@version", "doc_id", "doc_type" ] + } + +} + +output +{ + elasticsearch + { + hosts => ["elasticsearch68:9200"] + index => "c2corg_%{[@metadata][_type]}" + document_type => "_doc" + document_id => "%{[@metadata][_id]}" + } + + stdout { + codec => "dots" + } + +} + +#stdout { codec => "dots"} +#stdout { codec => rubydebug } +#stdout { codec => "json" } +#docker-compose run logstash6 /usr/share/logstash/bin/logstash -f /root/logstash.conf \ No newline at end of file diff --git a/dataMigration/v7/logstash.conf b/dataMigration/v7/logstash.conf new file mode 100644 index 000000000..83c221913 --- /dev/null +++ b/dataMigration/v7/logstash.conf @@ -0,0 +1,50 @@ +input +{ + elasticsearch + { + hosts => ["192.168.1.120:9203"] + index => "c2corg_*" + docinfo => true + size => 1000 + scroll => "5m" + docinfo_target => "[@metadata]" + } +} + +filter { + if (![geom]) { + mutate { + add_field => { "geom" => [0,0] } + } + } + + #mutate { + # add_field => { "c2corg_doc_type" => "%{[@metadata][_type]}" } + #} + + mutate { + remove_field => [ "_type", "@timestamp", "@version", "doc_id", "doc_type" ] + } + +} + +output +{ + elasticsearch + { + hosts => ["elasticsearch:9200"] + index => "c2corg_%{[c2corg_doc_type]}" + #document_type => "_doc" + document_id => "%{[@metadata][_id]}" + } + + stdout { + codec => "dots" + } + +} + +#stdout { codec => "dots"} +#stdout { codec => rubydebug } +#stdout { codec => "json" } +#docker-compose run logstash6 /usr/share/logstash/bin/logstash -f /root/logstash.conf \ No newline at end of file diff --git a/dataMigration/v8/logstash.conf b/dataMigration/v8/logstash.conf new file mode 100644 index 000000000..dfa7da252 --- /dev/null +++ b/dataMigration/v8/logstash.conf @@ -0,0 +1,47 @@ +input +{ + elasticsearch + { + hosts => ["http://192.168.1.120:9205"] + index => "c2corg_*" + docinfo => true + size => 100 + scroll => "5m" + docinfo_target => "[@metadata]" + } +} + +filter { + if (![geom]) { + mutate { + add_field => { "geom" => [0,0] } + } + } + + #mutate { + # add_field => { "c2corg_doc_type" => "%{[@metadata][_type]}" } + #} + + mutate { + remove_field => [ "_type", "@timestamp", "@version", "doc_id", "doc_type" ] + } + +} + +output +{ + elasticsearch + { + hosts => [elasticsearch] + index => "c2corg_%{[c2corg_doc_type]}" + #document_type => "_doc" + document_id => "%{[@metadata][_id]}" + user => 'elastic' + password => 'elastic2024' + } + + stdout { + codec => "dots" + } + +} diff --git a/docker-compose.yml b/docker-compose.yml index da2a4b41f..06a7e7950 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,19 +13,137 @@ services: - .:/v6_api command: ["postgres", "-c", "config_file=/etc/postgresql.conf"] +# elasticsearch26: +# platform: linux/amd64 +# image: 'docker.io/c2corg/c2corg_es:anon-2018-11-02' +# container_name: elasticsearch26 +# ports: +# - 9201:9200 +# command: -Des.index.number_of_replicas=0 -Des.path.data=/c2corg_anon -Des.script.inline=true + +# elasticsearch56: +# platform: linux/amd64 +# container_name: elasticsearch56 +# build: +# context: . +# dockerfile: elasticsearch5.Dockerfile +# network: host +# environment: +# - discovery.type=single-node +# ports: +# - 9202:9200 +# - 9302:9300 + elasticsearch: + container_name: elasticsearch build: - context: ./docker - dockerfile: Dockerfile.elasticsearch - image: c2corg_es:analysis-icu + context: . + dockerfile: elasticsearch8.Dockerfile + environment: + - ELASTIC_PASSWORD=elastic2024 + - discovery.type=single-node + - xpack.security.http.ssl.enabled=false + - xpack.license.self_generated.type=basic ports: - 9200:9200 - command: -Des.index.number_of_replicas=0 -Des.path.data=/c2corg_anon -Des.script.inline=true + - 9300:9300 ulimits: nofile: soft: 65536 hard: 65536 +# elasticsearch7: +# platform: linux/amd64 +# container_name: elasticsearch +# build: +# context: . +# dockerfile: elasticsearch7.Dockerfile +# network: host +# environment: +# - discovery.type=single-node +# ports: +# - 9200:9200 +# - 9300:9300 +# + +# elasticsearch68: +# platform: linux/amd64 +# container_name: elasticsearch68 +# build: +# context: . +# dockerfile: elasticsearch6.Dockerfile +# network: host +# environment: +# - discovery.type=single-node +# ports: +# - 9200:9200 +# - 9300:9300 +# volumes: +# - ./volumes/es6/data:/usr/share/elasticsearch/data +# - ./volumes/es6/config/jvm.options:/usr/share/elasticsearch/config/jvm.options + +# logstash5: +# platform: linux/amd64 +# container_name: logstash5 +# build: +# context: . +# dockerfile: logstash5.Dockerfile +# network: host +# ports: +# - 5045:5044 +# volumes: +# - ./dataMigration/v5/logstash.conf:/root/logstash.conf + +# logstash6: +# platform: linux/amd64 +# container_name: logstash6 +# build: +# context: . +# dockerfile: logstash6.Dockerfile +# network: host +# ports: +# - 5044:5044 +# volumes: +# - ./dataMigration/v6:/usr/share/logstash/pipeline + + logstash: + #platform: linux/amd64 + container_name: logstash + build: + context: . + dockerfile: logstash8.Dockerfile + network: host + ports: + - 5044:5044 + volumes: + - ./dataMigration/v8:/usr/share/logstash/pipeline + environment: + - ELASTICSEARCH_URL=elasticsearch + - ELASTICSEARCH_HOSTS=elasticsearch + - ELASTICSEARCH_USERNAME=elastic + - ELASTICSEARCH_PASSWORD=elastic2024 + - xpack.security.enabled=false + - xpack.license.self_generated.type=basic + + ## configure the Kibana password in the ES container + #curl -u elastic:$ELASTIC_PASSWORD \ + # -X POST \ + # http://localhost:9200/_security/user/kibana_system/_password \ + # -d '{"password":"'"kibana2024"'"}' \ + # -H 'Content-Type: application/json' + +# logstash7: +# platform: linux/amd64 +# container_name: logstash7 +# build: +# context: . +# dockerfile: logstash7.Dockerfile +# network: host +# ports: +# - 5044:5044 +# volumes: +# - ./dataMigration/v7:/usr/share/logstash/pipeline + redis: image: redis:7.2 ports: diff --git a/docker/Dockerfile b/docker/Dockerfile index 8025a757a..e2b2391a5 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM docker.io/python:3.9-slim-bullseye +FROM docker.io/python:3.12-slim-bookworm ENV DEBIAN_FRONTEND=noninteractive ENV LC_ALL=en_US.UTF-8 @@ -15,7 +15,7 @@ RUN set -x \ RUN set -x \ && apt-get -y --no-install-recommends install \ git \ - libffi7 \ + libffi8 \ libgeos-c1v5 \ libpq5 diff --git a/docker/Dockerfile.dev b/docker/Dockerfile.dev index e44342a7e..4bf003e8e 100644 --- a/docker/Dockerfile.dev +++ b/docker/Dockerfile.dev @@ -1,4 +1,4 @@ -FROM docker.io/python:3.9-slim-bullseye +FROM docker.io/python:3.12-slim-bookworm ENV DEBIAN_FRONTEND=noninteractive ENV LC_ALL=en_US.UTF-8 @@ -15,7 +15,7 @@ RUN set -x \ RUN set -x \ && apt-get -y --no-install-recommends install \ git \ - libffi7 \ + libffi8 \ libgeos-c1v5 \ libpq5 RUN set -x \ diff --git a/elasticsearch5.Dockerfile b/elasticsearch5.Dockerfile new file mode 100644 index 000000000..f7cfc2fdf --- /dev/null +++ b/elasticsearch5.Dockerfile @@ -0,0 +1,2 @@ +FROM elasticsearch:5.6.10 +RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-icu diff --git a/elasticsearch6.Dockerfile b/elasticsearch6.Dockerfile new file mode 100644 index 000000000..7a6a9fce6 --- /dev/null +++ b/elasticsearch6.Dockerfile @@ -0,0 +1,2 @@ +FROM elasticsearch:6.8.23 +RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-icu diff --git a/elasticsearch7.Dockerfile b/elasticsearch7.Dockerfile new file mode 100644 index 000000000..4dbaa80e0 --- /dev/null +++ b/elasticsearch7.Dockerfile @@ -0,0 +1,2 @@ +FROM elasticsearch:7.17.22 +RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-icu diff --git a/elasticsearch8.Dockerfile b/elasticsearch8.Dockerfile new file mode 100644 index 000000000..e40774ef3 --- /dev/null +++ b/elasticsearch8.Dockerfile @@ -0,0 +1,2 @@ +FROM elasticsearch:8.14.1 +RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-icu diff --git a/logstash5.Dockerfile b/logstash5.Dockerfile new file mode 100644 index 000000000..73e24bb58 --- /dev/null +++ b/logstash5.Dockerfile @@ -0,0 +1,2 @@ +FROM --platform=linux/X86_64 logstash:5.6.16 +#RUN /usr/share/logstash/bin/logstash-plugin install logstash-filter-prune diff --git a/logstash6.Dockerfile b/logstash6.Dockerfile new file mode 100644 index 000000000..e21a2f5a4 --- /dev/null +++ b/logstash6.Dockerfile @@ -0,0 +1,2 @@ +FROM logstash:6.8.23 +RUN /usr/share/logstash/bin/logstash-plugin install logstash-filter-prune diff --git a/logstash7.Dockerfile b/logstash7.Dockerfile new file mode 100644 index 000000000..72e5908a6 --- /dev/null +++ b/logstash7.Dockerfile @@ -0,0 +1,2 @@ +FROM logstash:7.17.22 +RUN /usr/share/logstash/bin/logstash-plugin install logstash-filter-prune diff --git a/logstash8.Dockerfile b/logstash8.Dockerfile new file mode 100644 index 000000000..c306e1aa4 --- /dev/null +++ b/logstash8.Dockerfile @@ -0,0 +1,2 @@ +FROM logstash:8.14.1 +RUN /usr/share/logstash/bin/logstash-plugin install logstash-filter-prune diff --git a/requirements.txt b/requirements.txt index f0a42aaac..e79f341b8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,9 +4,9 @@ bcrypt==4.3.0 bleach[css]==6.2.0 colander==2.0 dogpile.cache==1.3.4 -elasticsearch==2.4.1 -elasticsearch_dsl==2.2.0 -geoalchemy2==0.4.2 +elasticsearch==8.19.3 +elasticsearch-dsl==8.18.0 +geoalchemy2==0.20.0 geojson==3.2.0 geomet==1.1.0 kombu==5.6.2 @@ -27,16 +27,21 @@ redis==5.2.1 requests==2.32.3 setuptools==78.1.1 Shapely==2.0.7 -SQLAlchemy==1.3.24 +SQLAlchemy==2.0.51 transaction==5.0 waitress==3.0.2 zope.sqlalchemy==3.1 gunicorn==23.0.0 python-dotenv==1.2.1 pytz==2025.2 +pycurl==7.45.6 # needs: https://github.com/stefanofontanelli/ColanderAlchemy/pull/90 + 91 -ColanderAlchemy @ git+https://github.com/c2corg/ColanderAlchemy.git@v0.3.4+c2corg.1 +# TEMPORARY: points at a local, unpublished patch (branch +# sqlalchemy-2.0-support) that relaxes the SQLAlchemy pin to >=1.4 for +# SQLAlchemy 2.0 support. Needs write access to c2corg/ColanderAlchemy +# to publish properly; replace with the real git URL once pushed. +ColanderAlchemy @ file:///d:/Yoann/workspace/c2c/ColanderAlchemy # needs: https://github.com/mozilla-services/cornice/pull/359 cornice @ git+https://github.com/c2corg/cornice.git@6.1.0+c2corg diff --git a/scripts/README.md b/scripts/README.md index 9aa080106..514564f06 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -1,4 +1,145 @@ -# ElasticSearch 2.4 update for search improvement +# ElasticSearch Upgrade from v7.22 to V8.14 for docker env. like dev one. + +The docker-compose file has been updated in order to facilitate and automotive plugins installation and prepare the environment for migration. +The ElasticSearch 7.22 is still build and run but would not be the main ES for the service. It could be decommissioned after migration. +docker-compose file contains as well : + +- api building with integration of the requirements.txt for python pip installation (component updates) +- ES 7.22 listening on port 9201 instead of 9200 : > elasticsearch72 +- redis no change +- postgresql no change +- ES 8.14 listening on port 9200 and 9300 (elasticsearch8.Dockerfile) > elasticsearch +- Logstash 8.14 for data migration purpose. (logstash8.Dockerfile) + +## migration steps + + 1. **build the environment :** ` docker-compose build ` + 2. **Launch the environment :** ` docker-compose up -d ` + 3. **Create the index and its mapping :** `./scripts/esUpdateMappings78.sh` + 4. **Data Migration :** `docker-compose start logstash8` It will stop by itself when migration would be achieved + 5. **postgresql shema up to date:** `docker-compose exec api .build/venv/bin/alembic upgrade head` + +## post migration + +if all the process has been passed without issues. you can comment or remove in the docker-compose.yml services : +- logstash +- elasticsearch72 + +## special note +ElasticSearch 8 integrate new security settings and configuration by design like: +- https +- user account (id, pwd) + +in the docker for dev, I let a basic authentification working and keep http. + +### Base upon the way you make the configuration some adjustments have to be realized. + +- with the docker provided: + - elasticsearch listen on http => app config file : `elasticsearch_sheme = http` && `tests_elasticsearch_scheme = http` https instead for tls + - elastic user elastic have a bootstrap passwd define : `elasticsearch/bin/elasticsearch-keystore add "bootstrap.password" `value `elastic2024` + +- in app config file, it is necessary to report this authentification : + - `elasticsearch_user = elastic` & `elasticsearch_passwd = elastic2024` + - `tests_elasticsearch_user = elastic` & `tests_elasticsearch_passwd = elastic2024` + +- in the logstash pipeline file for data migration purpose, it is also required to report this authentification as well : + ``` + output + { + elasticsearch + { + hosts => [elasticsearch] + index => "c2corg_%{[c2corg_doc_type]}" + #document_type => "_doc" + document_id => "%{[@metadata][_id]}" + user => 'elastic' + password => 'elastic2024' + } + } + + +# ElasticSearch Upgrade from v6.8 to V7.22 for docker env. like dev one. + +The docker-compose file has been updated in order to facilitate and automotive plugins installation and prepare the environment for migration. +The ElasticSearch 6.8 is still build and run but would not be the main ES for the service. It could be decommissioned after migration. +docker-compose file contains as well : + +- api building with integration of the requirements.txt for python pip installation (component updates) +- ES 6.8 listening on port 9201 instead of 9200 : > elasticsearch68 +- redis no change +- postgresql no change +- ES 7.22 listening on port 9200 and 9300 (elasticsearch7.Dockerfile) > elasticsearch +- Logstash 7.22 for data migration purpose. (logstash7.Dockerfile) + +## migration steps + + 1. **build the environment :** ` docker-compose build ` + 2. **Launch the environment :** ` docker-compose up -d ` + 3. **Create the index and its mapping :** `./scripts/esUpdateMappings67.sh` + 4. **Data Migration :** `docker-compose start logstash7` It will stop by itself when migration would be achieved + 5. **postgresql shema up to date:** `docker-compose exec api .build/venv/bin/alembic upgrade head` + +## post migration + +if all the process has been passed without issues. you can comment or remove in the docker-compose.yml services : +- logstash +- elasticsearch68 + +# ElasticSearch Upgrade from v5.6 to V6.8 for docker env. like dev one. + +The docker-compose file has been updated in order to facilitate and automotive plugins installation and prepare the environment for migration. +The ElasticSearch 5.6 is still build and run but would not be the main ES for the service. It could be decommissioned after migration. +docker-compose file contains as well : + +- api building with integration of the requirements.txt for python pip installation (component updates) +- ES 5.6 listening on port 9201 instead of 9200 : > elasticsearch26 +- redis no change +- postgresql no change +- ES 6.8 listening on port 9200 and 9300 (elasticsearch6.Dockerfile) > elasticsearch +- Logstash 6.8 for data migration purpose. (logstash6.Dockerfile) + +## migration steps + + 1. **build the environment :** ` docker-compose build ` + 2. **Launch the environment :** ` docker-compose up -d ` + 3. **Create the index and its mapping :** `./scripts/esUpdateMappings56.sh` + 4. **Data Migration :** `docker-compose start logstash6` It will stop by itself when migration would be achieved + 5. **postgresql shema up to date:** `docker-compose exec api .build/venv/bin/alembic upgrade head` + +## post migration + +if all the process has been passed without issues. you can comment or remove in the docker-compose.yml services : +- logstash +- elasticsearch56 + +# ElasticSearch Upgrade from v2.6 to V5.6 for docker env. like dev one. + +The docker-compose file has been updated in order to facilitate and automotive plugins installation and prepare the environment for migration. +The ElasticSearch 2.6 is still build and run but would not be the main ES for the service. It could be decommissioned after migration. +docker-compose file contains as well : + +- api building with integration of the requirements.txt for python pip installation (component updates) +- legacy ES 2.6 listening on port 9201 instead of 9200 : > elasticsearch26 +- redis no change +- postgresql no change +- ES 5.6 listening on port 9200 and 9300 (elasticsearch5.Dockerfile) > elasticsearch +- Logstash 5.6 for data migration purpose. (logstash5.Dockerfile) + +## migration steps + + 1. **build the environment :** ` docker-compose build ` + 2. **Launch the environment :** ` docker-compose up -d ` + 3. **Create the index and its mapping :** `./scripts/esUpdateMappings25.sh` + 4. **Data Migration :** `docker-compose run logstash5 /usr/share/logstash/bin/logstash -f /root/logstash.conf` + 5. **postgresql shema up to date:** `docker-compose exec api .build/venv/bin/alembic upgrade head` + +## post migration + +if all the process has been passed without issues. you can comment or remove in the docker-compose.yml services : +- logstash +- elasticsearch26 + +# ElasticSearch 2.6 update for search improvement Script has to be execute one time in order to be relevant with the code update. @@ -6,18 +147,16 @@ Script has to be execute one time in order to be relevant with the code update. ### script requirement : - it requires curl from the execution machine - - it will update elasticsearch on localhost:9200, if elasticsearch is on other server, please update script changing localhost by the correct ES url. - an elasticsearch plugin has to be install, in case of elasticsearch cluster - the plugin has to be install on each node - -To install manually the the plugin analysis-icu from elasticsearch server : + +## To install manually the the plugin analysis-icu from elasticsearch server : ``` ./bin/plugin install analysis-icu analysis-icu ``` - The installation process is : - Install the plugin, - restart ElasticSearch instance, @@ -25,7 +164,8 @@ The installation process is : - update document mapping (_mappings /espon) - start a full indexation. -To launch the script from the host side : +## Automatic update via shell script from the host server + ``` cd scripts/ ./esUpdateMapSettings.sh diff --git a/scripts/esUpdateMapSettings25.sh b/scripts/esUpdateMapSettings25.sh new file mode 100755 index 000000000..3be5fbeeb --- /dev/null +++ b/scripts/esUpdateMapSettings25.sh @@ -0,0 +1,52 @@ +#!/bin/bash +#change localhost to the correct url if elasticsearch is not hosted on your computer, or in docker +#operate the plugin installation from the server side manually if not dockerized. +#installation du plugin es et reboot +#Install elastic plugin analysis-icu +#echo 'Installing es plugin to elasticsearch docker' +#docker-compose exec -it elasticsearch bin/plugin install analysis-icu +#echo 'Installing done - restarting es docker' +#docker-compose restart elasticsearch +#sleep 10 #in sec to let the docker restart +#1. index Creation +echo -e '\n index Creation' +curl -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg +sleep 2 +#2. closing the index to upgrade settings +echo -e '\n closing index' +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg/_close +sleep 2 +#3. Updating analyser settings +echo -e '\n updating Settings' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson2-5/settings.json http://localhost:9200/c2corg/_settings +sleep 2 +#4. restarting the index +echo -e '\n restarting index' +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg/_open +sleep 2 +#5. Docs Mappings update +echo 'updating doc type mappings' +echo 'doc type : a' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson2-5/a.json http://localhost:9200/c2corg/_mapping/a +echo -e '\n doc type : b' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson2-5/b.json http://localhost:9200/c2corg/_mapping/b +echo -e '\n doc type : c' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson2-5/c.json http://localhost:9200/c2corg/_mapping/c +echo -e '\n doc type : i' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson2-5/i.json http://localhost:9200/c2corg/_mapping/i +echo -e '\n doc type : m' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson2-5/m.json http://localhost:9200/c2corg/_mapping/m +echo -e '\n doc type : o' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson2-5/o.json http://localhost:9200/c2corg/_mapping/o +echo -e '\n doc type : r' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson2-5/r.json http://localhost:9200/c2corg/_mapping/r +echo -e '\n doc type : u' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson2-5/u.json http://localhost:9200/c2corg/_mapping/u +echo -e '\n doc type : w' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson2-5/w.json http://localhost:9200/c2corg/_mapping/w +echo -e '\n doc type : x' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson2-5/x.json http://localhost:9200/c2corg/_mapping/x +sleep 2 +#6. RE-index the indice to apply mappings +echo -e '\n Indexing with new parameters - should take sometimes - pls wait server acknowlegment' +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg/_update_by_query?conflicts=proceed \ No newline at end of file diff --git a/scripts/esUpdateMapSettings56.sh b/scripts/esUpdateMapSettings56.sh new file mode 100755 index 000000000..a9f31bfed --- /dev/null +++ b/scripts/esUpdateMapSettings56.sh @@ -0,0 +1,92 @@ +#!/bin/bash +#change localhost to the correct url if elasticsearch is not hosted on your computer, or in docker +#operate the plugin installation from the server side manually if not dockerized. +#installation du plugin es et reboot +#Install elastic plugin analysis-icu +#echo 'Installing es plugin to elasticsearch docker' +#docker-compose exec -it elasticsearch bin/plugin install analysis-icu +#echo 'Installing done - restarting es docker' +#docker-compose restart elasticsearch +#sleep 10 #in sec to let the docker restart + +#efface tous les indices présents +curl -X DELETE "http://localhost:9200/c2corg_*" + +#change cluster definition des shards +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson5-6/cluster.json http://localhost:9200/_template/index_defaults + +#créer les index +curl -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_a +curl -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_b +curl -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_c +curl -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_i +curl -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_m +curl -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_o +curl -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_r +curl -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_u +curl -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_w +curl -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_x +sleep 2 + +#2. closing the index to upgrade settings +echo -e '\n closing index' +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_a/_close +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_b/_close +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_c/_close +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_i/_close +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_m/_close +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_o/_close +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_r/_close +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_u/_close +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_w/_close +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_x/_close +sleep 2 +#3. Updating analyser settings +echo -e '\n updating Settings' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson5-6/settings.json http://localhost:9200/c2corg_a/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson5-6/settings.json http://localhost:9200/c2corg_b/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson5-6/settings.json http://localhost:9200/c2corg_c/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson5-6/settings.json http://localhost:9200/c2corg_i/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson5-6/settings.json http://localhost:9200/c2corg_m/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson5-6/settings.json http://localhost:9200/c2corg_o/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson5-6/settings.json http://localhost:9200/c2corg_r/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson5-6/settings.json http://localhost:9200/c2corg_u/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson5-6/settings.json http://localhost:9200/c2corg_w/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson5-6/settings.json http://localhost:9200/c2corg_x/_settings +sleep 2 +#4. restarting the index +echo -e '\n restarting index' +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_a/_open +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_b/_open +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_c/_open +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_i/_open +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_m/_open +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_o/_open +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_r/_open +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_u/_open +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_w/_open +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_x/_open +sleep 2 +#5. Docs Mappings update +echo 'updating doc type mappings' +echo 'doc type : a' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson5-6/a.json http://localhost:9200/c2corg_a/_mapping/_doc +echo -e '\n doc type : b' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson5-6/b.json http://localhost:9200/c2corg_b/_mapping/_doc +echo -e '\n doc type : c' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson5-6/c.json http://localhost:9200/c2corg_c/_mapping/_doc +echo -e '\n doc type : i' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson5-6/i.json http://localhost:9200/c2corg_i/_mapping/_doc +echo -e '\n doc type : m' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson5-6/m.json http://localhost:9200/c2corg_m/_mapping/_doc +echo -e '\n doc type : o' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson5-6/o.json http://localhost:9200/c2corg_o/_mapping/_doc +echo -e '\n doc type : r' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson5-6/r.json http://localhost:9200/c2corg_r/_mapping/_doc +echo -e '\n doc type : u' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson5-6/u.json http://localhost:9200/c2corg_u/_mapping/_doc +echo -e '\n doc type : w' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson5-6/w.json http://localhost:9200/c2corg_w/_mapping/_doc +echo -e '\n doc type : x' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson5-6/x.json http://localhost:9200/c2corg_x/_mapping/_doc +sleep 2 diff --git a/scripts/esUpdateMapSettings67.sh b/scripts/esUpdateMapSettings67.sh new file mode 100755 index 000000000..6b05e5f13 --- /dev/null +++ b/scripts/esUpdateMapSettings67.sh @@ -0,0 +1,92 @@ +#!/bin/bash +#change localhost to the correct url if elasticsearch is not hosted on your computer, or in docker +#operate the plugin installation from the server side manually if not dockerized. +#installation du plugin es et reboot +#Install elastic plugin analysis-icu +#echo 'Installing es plugin to elasticsearch docker' +#docker-compose exec -it elasticsearch bin/plugin install analysis-icu +#echo 'Installing done - restarting es docker' +#docker-compose restart elasticsearch +#sleep 10 #in sec to let the docker restart + +#efface tous les indices présents +curl -X DELETE "http://localhost:9200/c2corg_*" + +#change cluster definition des shards +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/cluster.json http://localhost:9200/_template/index_defaults + +#créer les index +curl -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_a?include_type_name=true +curl -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_b?include_type_name=true +curl -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_c?include_type_name=true +curl -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_i?include_type_name=true +curl -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_m?include_type_name=true +curl -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_o?include_type_name=true +curl -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_r?include_type_name=true +curl -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_u?include_type_name=true +curl -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_w?include_type_name=true +curl -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_x?include_type_name=true +sleep 2 + +#2. closing the index to upgrade settings +echo -e '\n closing index' +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_a/_close +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_b/_close +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_c/_close +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_i/_close +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_m/_close +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_o/_close +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_r/_close +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_u/_close +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_w/_close +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_x/_close +sleep 2 +#3. Updating analyser settings +echo -e '\n updating Settings' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://localhost:9200/c2corg_a/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://localhost:9200/c2corg_b/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://localhost:9200/c2corg_c/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://localhost:9200/c2corg_i/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://localhost:9200/c2corg_m/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://localhost:9200/c2corg_o/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://localhost:9200/c2corg_r/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://localhost:9200/c2corg_u/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://localhost:9200/c2corg_w/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://localhost:9200/c2corg_x/_settings +sleep 2 +#4. restarting the index +echo -e '\n restarting index' +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_a/_open +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_b/_open +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_c/_open +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_i/_open +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_m/_open +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_o/_open +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_r/_open +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_u/_open +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_w/_open +curl -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_x/_open +sleep 2 +#5. Docs Mappings update +echo 'updating doc type mappings' +echo 'doc type : a' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/a.json http://localhost:9200/c2corg_a/_mapping/a?include_type_name=true +echo -e '\n doc type : b' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/b.json http://localhost:9200/c2corg_b/_mapping/b?include_type_name=true +echo -e '\n doc type : c' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/c.json http://localhost:9200/c2corg_c/_mapping/c?include_type_name=true +echo -e '\n doc type : i' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/i.json http://localhost:9200/c2corg_i/_mapping/i?include_type_name=true +echo -e '\n doc type : m' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/m.json http://localhost:9200/c2corg_m/_mapping/m?include_type_name=true +echo -e '\n doc type : o' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/o.json http://localhost:9200/c2corg_o/_mapping/o?include_type_name=true +echo -e '\n doc type : r' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/r.json http://localhost:9200/c2corg_r/_mapping/r?include_type_name=true +echo -e '\n doc type : u' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/u.json http://localhost:9200/c2corg_u/_mapping/u?include_type_name=true +echo -e '\n doc type : w' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/w.json http://localhost:9200/c2corg_w/_mapping/w?include_type_name=true +echo -e '\n doc type : x' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/x.json http://localhost:9200/c2corg_x/_mapping/x?include_type_name=true +sleep 2 diff --git a/scripts/esUpdateMapSettings71.sh b/scripts/esUpdateMapSettings71.sh new file mode 100755 index 000000000..878d5726c --- /dev/null +++ b/scripts/esUpdateMapSettings71.sh @@ -0,0 +1,92 @@ +#!/bin/bash +#change localhost to the correct url if elasticsearch is not hosted on your computer, or in docker +#operate the plugin installation from the server side manually if not dockerized. +#installation du plugin es et reboot +#Install elastic plugin analysis-icu +#echo 'Installing es plugin to elasticsearch docker' +#docker-compose exec -it elasticsearch bin/plugin install analysis-icu +#echo 'Installing done - restarting es docker' +#docker-compose restart elasticsearch +#sleep 10 #in sec to let the docker restart + +#efface tous les indices présents +curl -X DELETE "http://192.168.1.120:9205/c2corg_*" + +#change cluster definition des shards +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/cluster.json http://192.168.1.120:9205/_template/index_defaults + +#créer les index +curl -X PUT -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_a?include_type_name=true +curl -X PUT -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_b?include_type_name=true +curl -X PUT -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_c?include_type_name=true +curl -X PUT -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_i?include_type_name=true +curl -X PUT -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_m?include_type_name=true +curl -X PUT -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_o?include_type_name=true +curl -X PUT -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_r?include_type_name=true +curl -X PUT -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_u?include_type_name=true +curl -X PUT -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_w?include_type_name=true +curl -X PUT -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_x?include_type_name=true +sleep 2 + +#2. closing the index to upgrade settings +echo -e '\n closing index' +curl -X POST -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_a/_close +curl -X POST -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_b/_close +curl -X POST -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_c/_close +curl -X POST -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_i/_close +curl -X POST -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_m/_close +curl -X POST -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_o/_close +curl -X POST -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_r/_close +curl -X POST -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_u/_close +curl -X POST -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_w/_close +curl -X POST -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_x/_close +sleep 2 +#3. Updating analyser settings +echo -e '\n updating Settings' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://192.168.1.120:9205/c2corg_a/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://192.168.1.120:9205/c2corg_b/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://192.168.1.120:9205/c2corg_c/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://192.168.1.120:9205/c2corg_i/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://192.168.1.120:9205/c2corg_m/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://192.168.1.120:9205/c2corg_o/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://192.168.1.120:9205/c2corg_r/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://192.168.1.120:9205/c2corg_u/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://192.168.1.120:9205/c2corg_w/_settings +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://192.168.1.120:9205/c2corg_x/_settings +sleep 2 +#4. restarting the index +echo -e '\n restarting index' +curl -X POST -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_a/_open +curl -X POST -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_b/_open +curl -X POST -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_c/_open +curl -X POST -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_i/_open +curl -X POST -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_m/_open +curl -X POST -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_o/_open +curl -X POST -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_r/_open +curl -X POST -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_u/_open +curl -X POST -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_w/_open +curl -X POST -H "Content-Type: application/json" http://192.168.1.120:9205/c2corg_x/_open +sleep 2 +#5. Docs Mappings update +echo 'updating doc type mappings' +echo 'doc type : a' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/a.json http://192.168.1.120:9205/c2corg_a/_mapping/a?include_type_name=true +echo -e '\n doc type : b' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/b.json http://192.168.1.120:9205/c2corg_b/_mapping/b?include_type_name=true +echo -e '\n doc type : c' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/c.json http://192.168.1.120:9205/c2corg_c/_mapping/c?include_type_name=true +echo -e '\n doc type : i' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/i.json http://192.168.1.120:9205/c2corg_i/_mapping/i?include_type_name=true +echo -e '\n doc type : m' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/m.json http://192.168.1.120:9205/c2corg_m/_mapping/m?include_type_name=true +echo -e '\n doc type : o' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/o.json http://192.168.1.120:9205/c2corg_o/_mapping/o?include_type_name=true +echo -e '\n doc type : r' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/r.json http://192.168.1.120:9205/c2corg_r/_mapping/r?include_type_name=true +echo -e '\n doc type : u' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/u.json http://192.168.1.120:9205/c2corg_u/_mapping/u?include_type_name=true +echo -e '\n doc type : w' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/w.json http://192.168.1.120:9205/c2corg_w/_mapping/w?include_type_name=true +echo -e '\n doc type : x' +curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/x.json http://192.168.1.120:9205/c2corg_x/_mapping/x?include_type_name=true +sleep 2 diff --git a/scripts/esUpdateMapSettings78.sh b/scripts/esUpdateMapSettings78.sh new file mode 100755 index 000000000..ec7545695 --- /dev/null +++ b/scripts/esUpdateMapSettings78.sh @@ -0,0 +1,101 @@ +#!/bin/bash +#change localhost to the correct url if elasticsearch is not hosted on your computer, or in docker +#operate the plugin installation from the server side manually if not dockerized. +#installation du plugin es et reboot +#Install elastic plugin analysis-icu +#echo 'Installing es plugin to elasticsearch docker' +#docker-compose exec -it elasticsearch bin/plugin install analysis-icu +#echo 'Installing done - restarting es docker' +#docker-compose restart elasticsearch +#sleep 10 #in sec to let the docker restart + +#efface tous les indices présents +curl -u elastic:elastic2024 -X DELETE "http://localhost:9200/c2corg_a" +curl -u elastic:elastic2024 -X DELETE "http://localhost:9200/c2corg_b" +curl -u elastic:elastic2024 -X DELETE "http://localhost:9200/c2corg_c" +curl -u elastic:elastic2024 -X DELETE "http://localhost:9200/c2corg_i" +curl -u elastic:elastic2024 -X DELETE "http://localhost:9200/c2corg_m" +curl -u elastic:elastic2024 -X DELETE "http://localhost:9200/c2corg_o" +curl -u elastic:elastic2024 -X DELETE "http://localhost:9200/c2corg_r" +curl -u elastic:elastic2024 -X DELETE "http://localhost:9200/c2corg_u" +curl -u elastic:elastic2024 -X DELETE "http://localhost:9200/c2corg_w" +curl -u elastic:elastic2024 -X DELETE "http://localhost:9200/c2corg_x" + +#change cluster definition des shards +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/cluster.json http://localhost:9200/_template/index_defaults + +#créer les index +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_a +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_b +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_c +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_i +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_m +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_o +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_r +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_u +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_w +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" http://localhost:9200/c2corg_x +sleep 2 + +#2. closing the index to upgrade settings +echo -e '\n closing index' +curl -u elastic:elastic2024 -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_a/_close +curl -u elastic:elastic2024 -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_b/_close +curl -u elastic:elastic2024 -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_c/_close +curl -u elastic:elastic2024 -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_i/_close +curl -u elastic:elastic2024 -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_m/_close +curl -u elastic:elastic2024 -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_o/_close +curl -u elastic:elastic2024 -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_r/_close +curl -u elastic:elastic2024 -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_u/_close +curl -u elastic:elastic2024 -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_w/_close +curl -u elastic:elastic2024 -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_x/_close +sleep 2 +#3. Updating analyser settings +echo -e '\n updating Settings' +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://localhost:9200/c2corg_a/_settings +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://localhost:9200/c2corg_b/_settings +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://localhost:9200/c2corg_c/_settings +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://localhost:9200/c2corg_i/_settings +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://localhost:9200/c2corg_m/_settings +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://localhost:9200/c2corg_o/_settings +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://localhost:9200/c2corg_r/_settings +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://localhost:9200/c2corg_u/_settings +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://localhost:9200/c2corg_w/_settings +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/settings.json http://localhost:9200/c2corg_x/_settings +sleep 2 +#4. restarting the index +echo -e '\n restarting index' +curl -u elastic:elastic2024 -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_a/_open +curl -u elastic:elastic2024 -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_b/_open +curl -u elastic:elastic2024 -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_c/_open +curl -u elastic:elastic2024 -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_i/_open +curl -u elastic:elastic2024 -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_m/_open +curl -u elastic:elastic2024 -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_o/_open +curl -u elastic:elastic2024 -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_r/_open +curl -u elastic:elastic2024 -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_u/_open +curl -u elastic:elastic2024 -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_w/_open +curl -u elastic:elastic2024 -X POST -H "Content-Type: application/json" http://localhost:9200/c2corg_x/_open +sleep 2 +#5. Docs Mappings update +echo 'updating doc type mappings' +echo 'doc type : a' +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/a.json http://localhost:9200/c2corg_a/_mapping +echo -e '\n doc type : b' +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/b.json http://localhost:9200/c2corg_b/_mapping +echo -e '\n doc type : c' +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/c.json http://localhost:9200/c2corg_c/_mapping +echo -e '\n doc type : i' +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/i.json http://localhost:9200/c2corg_i/_mapping +echo -e '\n doc type : m' +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/m.json http://localhost:9200/c2corg_m/_mapping +echo -e '\n doc type : o' +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/o.json http://localhost:9200/c2corg_o/_mapping +echo -e '\n doc type : r' +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/r.json http://localhost:9200/c2corg_r/_mapping +echo -e '\n doc type : u' +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/u.json http://localhost:9200/c2corg_u/_mapping +echo -e '\n doc type : w' +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/w.json http://localhost:9200/c2corg_w/_mapping +echo -e '\n doc type : x' +curl -u elastic:elastic2024 -X PUT -H "Content-Type: application/json" -d @./scripts/esjson6-7/x.json http://localhost:9200/c2corg_x/_mapping +sleep 2 diff --git a/scripts/esjson/mappings.json b/scripts/esjson/mappings.json index f4269bfa7..095ae6b78 100644 --- a/scripts/esjson/mappings.json +++ b/scripts/esjson/mappings.json @@ -2020,22 +2020,6 @@ "analyzer": "index_italian", "search_analyzer": "search_italian" }, - "title_ca": { - "type": "string", - "index": "not_analyzed", - "fields": { - "ngram": { - "type": "string", - "analyzer": "index_ngram", - "search_analyzer": "search_ngram" - }, - "raw": { - "type": "string", - "analyzer": "index_raw", - "search_analyzer": "search_raw" - } - } - }, "title_ca": { "type": "string", "index": "not_analyzed", diff --git a/scripts/esjson2-5/a.json b/scripts/esjson2-5/a.json new file mode 100644 index 000000000..86eac914d --- /dev/null +++ b/scripts/esjson2-5/a.json @@ -0,0 +1,242 @@ +{ + "_all": { + "enabled": false + }, + "properties": { + "area_type": { + "type": "text", + "index": false + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": false + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson2-5/b.json b/scripts/esjson2-5/b.json new file mode 100644 index 000000000..e7f8048e6 --- /dev/null +++ b/scripts/esjson2-5/b.json @@ -0,0 +1,246 @@ +{ + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": false + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": false + }, + "book_types": { + "type": "text", + "index": false + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson2-5/c.json b/scripts/esjson2-5/c.json new file mode 100644 index 000000000..e80d94edb --- /dev/null +++ b/scripts/esjson2-5/c.json @@ -0,0 +1,250 @@ +{ + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": false + }, + "areas": { + "type": "long" + }, + "article_categories": { + "type": "text", + "index": false + }, + "article_type": { + "type": "text", + "index": false + }, + "available_locales": { + "type": "text", + "index": false + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson2-5/i.json b/scripts/esjson2-5/i.json new file mode 100644 index 000000000..6e18fd32d --- /dev/null +++ b/scripts/esjson2-5/i.json @@ -0,0 +1,257 @@ +{ + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": false + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": false + }, + "categories": { + "type": "text", + "index": false + }, + "date_time": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "elevation": { + "type": "integer" + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "id": { + "type": "long" + }, + "image_type": { + "type": "text", + "index": false + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson2-5/m.json b/scripts/esjson2-5/m.json new file mode 100644 index 000000000..4f8c89415 --- /dev/null +++ b/scripts/esjson2-5/m.json @@ -0,0 +1,238 @@ +{ + "_all": { + "enabled": false + }, + "properties": { + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": false + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson2-5/mappings.json b/scripts/esjson2-5/mappings.json new file mode 100644 index 000000000..4ac3ab7f4 --- /dev/null +++ b/scripts/esjson2-5/mappings.json @@ -0,0 +1,2807 @@ +{ + "c2corg": { + "mappings": { + "x": { + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": "not_analyzed" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "avalanche_level": { + "type": "integer" + }, + "avalanche_slope": { + "type": "integer" + }, + "date": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "elevation": { + "type": "integer" + }, + "event_type": { + "type": "text", + "index": "not_analyzed" + }, + "geom": { + "type": "geo_point" + }, + "id": { + "type": "long" + }, + "nb_impacted": { + "type": "integer" + }, + "nb_participants": { + "type": "integer" + }, + "quality": { + "type": "integer" + }, + "severity": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + }, + "c": { + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": "not_analyzed" + }, + "areas": { + "type": "long" + }, + "article_categories": { + "type": "text", + "index": "not_analyzed" + }, + "article_type": { + "type": "text", + "index": "not_analyzed" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "geom": { + "type": "geo_point" + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + }, + "u": { + "_all": { + "enabled": false + }, + "properties": { + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "geom": { + "type": "geo_point" + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + }, + "o": { + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": "not_analyzed" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "avalanche_signs": { + "type": "text", + "index": "not_analyzed" + }, + "condition_rating": { + "type": "integer" + }, + "date_end": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "date_start": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "elevation_access": { + "type": "integer" + }, + "elevation_down_snow": { + "type": "integer" + }, + "elevation_max": { + "type": "integer" + }, + "elevation_up_snow": { + "type": "integer" + }, + "engagement_rating": { + "type": "integer" + }, + "equipment_rating": { + "type": "integer" + }, + "frequentation": { + "type": "integer" + }, + "geom": { + "type": "geo_point" + }, + "glacier_rating": { + "type": "integer" + }, + "global_rating": { + "type": "integer" + }, + "height_diff_difficulties": { + "type": "integer" + }, + "height_diff_up": { + "type": "integer" + }, + "hiking_rating": { + "type": "integer" + }, + "ice_rating": { + "type": "integer" + }, + "id": { + "type": "long" + }, + "labande_global_rating": { + "type": "integer" + }, + "length_total": { + "type": "integer" + }, + "mtb_down_rating": { + "type": "integer" + }, + "mtb_up_rating": { + "type": "integer" + }, + "public_transport": { + "type": "boolean" + }, + "quality": { + "type": "integer" + }, + "rock_free_rating": { + "type": "integer" + }, + "routes": { + "type": "long" + }, + "ski_rating": { + "type": "integer" + }, + "snow_quality": { + "type": "integer" + }, + "snow_quantity": { + "type": "integer" + }, + "snowshoe_rating": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "users": { + "type": "long" + }, + "via_ferrata_rating": { + "type": "integer" + }, + "waypoints": { + "type": "long" + } + } + }, + "m": { + "_all": { + "enabled": false + }, + "properties": { + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "geom": { + "type": "geo_point" + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + }, + "b": { + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": "not_analyzed" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "book_types": { + "type": "text", + "index": "not_analyzed" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "geom": { + "type": "geo_point" + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + }, + "w": { + "_all": { + "enabled": false + }, + "properties": { + "access_time": { + "type": "integer" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "best_periods": { + "type": "text", + "index": "not_analyzed" + }, + "capacity": { + "type": "integer" + }, + "capacity_staffed": { + "type": "integer" + }, + "children_proof": { + "type": "text", + "index": "not_analyzed" + }, + "climbing_indoor_types": { + "type": "text", + "index": "not_analyzed" + }, + "climbing_outdoor_types": { + "type": "text", + "index": "not_analyzed" + }, + "climbing_rating_max": { + "type": "integer" + }, + "climbing_rating_median": { + "type": "integer" + }, + "climbing_rating_min": { + "type": "integer" + }, + "climbing_styles": { + "type": "text", + "index": "not_analyzed" + }, + "custodianship": { + "type": "text", + "index": "not_analyzed" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "elevation": { + "type": "integer" + }, + "equipment_ratings": { + "type": "integer" + }, + "exposition_rating": { + "type": "integer" + }, + "geom": { + "type": "geo_point" + }, + "height_max": { + "type": "integer" + }, + "height_median": { + "type": "integer" + }, + "height_min": { + "type": "integer" + }, + "id": { + "type": "long" + }, + "length": { + "type": "integer" + }, + "lift_access": { + "type": "boolean" + }, + "orientations": { + "type": "text", + "index": "not_analyzed" + }, + "paragliding_rating": { + "type": "integer" + }, + "product_types": { + "type": "text", + "index": "not_analyzed" + }, + "prominence": { + "type": "integer" + }, + "public_transportation_rating": { + "type": "text", + "index": "not_analyzed" + }, + "public_transportation_types": { + "type": "text", + "index": "not_analyzed" + }, + "quality": { + "type": "integer" + }, + "rain_proof": { + "type": "text", + "index": "not_analyzed" + }, + "rock_types": { + "type": "text", + "index": "not_analyzed" + }, + "routes_quantity": { + "type": "integer" + }, + "snow_clearance_rating": { + "type": "text", + "index": "not_analyzed" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "waypoint_type": { + "type": "text", + "index": "not_analyzed" + }, + "weather_station_types": { + "type": "text", + "index": "not_analyzed" + } + } + }, + "a": { + "_all": { + "enabled": false + }, + "properties": { + "area_type": { + "type": "text", + "index": "not_analyzed" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "geom": { + "type": "geo_point" + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + }, + "i": { + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": "not_analyzed" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "categories": { + "type": "text", + "index": "not_analyzed" + }, + "date_time": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "elevation": { + "type": "integer" + }, + "geom": { + "type": "geo_point" + }, + "id": { + "type": "long" + }, + "image_type": { + "type": "text", + "index": "not_analyzed" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + } + } + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + }, + "r": { + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": "not_analyzed" + }, + "aid_rating": { + "type": "integer" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "climbing_outdoor_type": { + "type": "text", + "index": "not_analyzed" + }, + "configuration": { + "type": "text", + "index": "not_analyzed" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "difficulties_height": { + "type": "integer" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "durations": { + "type": "integer" + }, + "elevation_max": { + "type": "integer" + }, + "elevation_min": { + "type": "integer" + }, + "engagement_rating": { + "type": "integer" + }, + "equipment_rating": { + "type": "integer" + }, + "exposition_rock_rating": { + "type": "integer" + }, + "geom": { + "type": "geo_point" + }, + "glacier_gear": { + "type": "text", + "index": "not_analyzed" + }, + "global_rating": { + "type": "integer" + }, + "height_diff_access": { + "type": "integer" + }, + "height_diff_difficulties": { + "type": "integer" + }, + "height_diff_down": { + "type": "integer" + }, + "height_diff_up": { + "type": "integer" + }, + "hiking_mtb_exposition": { + "type": "integer" + }, + "hiking_rating": { + "type": "integer" + }, + "ice_rating": { + "type": "integer" + }, + "id": { + "type": "long" + }, + "labande_global_rating": { + "type": "integer" + }, + "labande_ski_rating": { + "type": "integer" + }, + "mixed_rating": { + "type": "integer" + }, + "mtb_down_rating": { + "type": "integer" + }, + "mtb_height_diff_portages": { + "type": "integer" + }, + "mtb_length_asphalt": { + "type": "integer" + }, + "mtb_length_trail": { + "type": "integer" + }, + "mtb_up_rating": { + "type": "integer" + }, + "orientations": { + "type": "text", + "index": "not_analyzed" + }, + "quality": { + "type": "integer" + }, + "risk_rating": { + "type": "integer" + }, + "rock_free_rating": { + "type": "integer" + }, + "rock_required_rating": { + "type": "integer" + }, + "rock_types": { + "type": "text", + "index": "not_analyzed" + }, + "route_length": { + "type": "integer" + }, + "route_types": { + "type": "text", + "index": "not_analyzed" + }, + "ski_exposition": { + "type": "integer" + }, + "ski_rating": { + "type": "integer" + }, + "slackline_type": { + "type": "text", + "index": "not_analyzed" + }, + "snowshoe_rating": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "via_ferrata_rating": { + "type": "integer" + }, + "waypoints": { + "type": "long" + } + } + } + } + } +} diff --git a/scripts/esjson2-5/o.json b/scripts/esjson2-5/o.json new file mode 100644 index 000000000..2bab0d646 --- /dev/null +++ b/scripts/esjson2-5/o.json @@ -0,0 +1,338 @@ +{ + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": false + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": false + }, + "avalanche_signs": { + "type": "text", + "index": false + }, + "condition_rating": { + "type": "integer" + }, + "date_end": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "date_start": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "elevation_access": { + "type": "integer" + }, + "elevation_down_snow": { + "type": "integer" + }, + "elevation_max": { + "type": "integer" + }, + "elevation_up_snow": { + "type": "integer" + }, + "engagement_rating": { + "type": "integer" + }, + "equipment_rating": { + "type": "integer" + }, + "frequentation": { + "type": "integer" + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "glacier_rating": { + "type": "integer" + }, + "global_rating": { + "type": "integer" + }, + "height_diff_difficulties": { + "type": "integer" + }, + "height_diff_up": { + "type": "integer" + }, + "hiking_rating": { + "type": "integer" + }, + "ice_rating": { + "type": "integer" + }, + "id": { + "type": "long" + }, + "labande_global_rating": { + "type": "integer" + }, + "length_total": { + "type": "integer" + }, + "mtb_down_rating": { + "type": "integer" + }, + "mtb_up_rating": { + "type": "integer" + }, + "public_transport": { + "type": "boolean" + }, + "quality": { + "type": "integer" + }, + "rock_free_rating": { + "type": "integer" + }, + "routes": { + "type": "long" + }, + "ski_rating": { + "type": "integer" + }, + "snow_quality": { + "type": "integer" + }, + "snow_quantity": { + "type": "integer" + }, + "snowshoe_rating": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "users": { + "type": "long" + }, + "via_ferrata_rating": { + "type": "integer" + }, + "waypoints": { + "type": "long" + } + } + } \ No newline at end of file diff --git a/scripts/esjson2-5/r.json b/scripts/esjson2-5/r.json new file mode 100644 index 000000000..6548b4bcf --- /dev/null +++ b/scripts/esjson2-5/r.json @@ -0,0 +1,369 @@ +{ + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": false + }, + "aid_rating": { + "type": "integer" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": false + }, + "climbing_outdoor_type": { + "type": "text", + "index": false + }, + "configuration": { + "type": "text", + "index": false + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "difficulties_height": { + "type": "integer" + }, + "doc_type": { + "type": "text", + "index": false + }, + "durations": { + "type": "integer" + }, + "elevation_max": { + "type": "integer" + }, + "elevation_min": { + "type": "integer" + }, + "engagement_rating": { + "type": "integer" + }, + "equipment_rating": { + "type": "integer" + }, + "exposition_rock_rating": { + "type": "integer" + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "glacier_gear": { + "type": "text", + "index": false + }, + "global_rating": { + "type": "integer" + }, + "height_diff_access": { + "type": "integer" + }, + "height_diff_difficulties": { + "type": "integer" + }, + "height_diff_down": { + "type": "integer" + }, + "height_diff_up": { + "type": "integer" + }, + "hiking_mtb_exposition": { + "type": "integer" + }, + "hiking_rating": { + "type": "integer" + }, + "ice_rating": { + "type": "integer" + }, + "id": { + "type": "long" + }, + "labande_global_rating": { + "type": "integer" + }, + "labande_ski_rating": { + "type": "integer" + }, + "mixed_rating": { + "type": "integer" + }, + "mtb_down_rating": { + "type": "integer" + }, + "mtb_height_diff_portages": { + "type": "integer" + }, + "mtb_length_asphalt": { + "type": "integer" + }, + "mtb_length_trail": { + "type": "integer" + }, + "mtb_up_rating": { + "type": "integer" + }, + "orientations": { + "type": "text", + "index": false + }, + "quality": { + "type": "integer" + }, + "risk_rating": { + "type": "integer" + }, + "rock_free_rating": { + "type": "integer" + }, + "rock_required_rating": { + "type": "integer" + }, + "rock_types": { + "type": "text", + "index": false + }, + "route_length": { + "type": "integer" + }, + "route_types": { + "type": "text", + "index": false + }, + "ski_exposition": { + "type": "integer" + }, + "ski_rating": { + "type": "integer" + }, + "slackline_type": { + "type": "text", + "index": false + }, + "snowshoe_rating": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "via_ferrata_rating": { + "type": "integer" + }, + "waypoints": { + "type": "long" + } + } + } \ No newline at end of file diff --git a/scripts/esjson2-5/settings.json b/scripts/esjson2-5/settings.json new file mode 100644 index 000000000..ff95e3ef8 --- /dev/null +++ b/scripts/esjson2-5/settings.json @@ -0,0 +1,378 @@ +{ + "analysis": { + "filter": { + "autocomplete_filter": { + "type": "edge_ngram", + "min_gram": "2", + "max_gram": "15", + "token_chars": [ + "letter", + "digit" + ] + }, + "english_stop": { + "type": "stop", + "stopwords": "_english_" + }, + "english_stemmer": { + "type": "stemmer", + "language": "english" + }, + "english_possessive_stemmer": { + "type": "stemmer", + "language": "possessive_english" + }, + "french_elision": { + "type": "elision", + "articles_case": true, + "articles": [ + "l", "m", "t", "qu", "n", "s", + "j", "d", "c", "jusqu", "quoiqu", + "lorsqu", "puisqu" + ] + }, + "french_stop": { + "type": "stop", + "stopwords": "_french_" + }, + "french_stemmer": { + "type": "stemmer", + "language": "light_french" + }, + "german_stop": { + "type": "stop", + "stopwords": "_german_" + }, + "german_stemmer": { + "type": "stemmer", + "language": "light_german" + }, + "italian_elision": { + "type": "elision", + "articles_case": true, + "articles": [ + "c", "l", "all", "dall", "dell", + "nell", "sull", "coll", "pell", + "gl", "agl", "dagl", "degl", "negl", + "sugl", "un", "m", "t", "s", "v", "d" + ] + }, + "italian_stop": { + "type": "stop", + "stopwords": "_italian_" + }, + "italian_stemmer": { + "type": "stemmer", + "language": "light_italian" + }, + "spanish_stop": { + "type": "stop", + "stopwords": "_spanish_" + }, + "spanish_stemmer": { + "type": "stemmer", + "language": "light_spanish" + }, + "catalan_elision": { + "type": "elision", + "articles_case": true, + "articles": ["d", "l", "m", "n", "s", "t"] + }, + "catalan_stop": { + "type": "stop", + "stopwords": "_catalan_" + }, + "catalan_stemmer": { + "type": "stemmer", + "language": "catalan" + }, + "basque_stop": { + "type": "stop", + "stopwords": "_basque_" + }, + "basque_stemmer": { + "type": "stemmer", + "language": "basque" + } + }, + "similarity": { + "c2corgsimilarity": { + "type": "BM25" + } + }, + "char_filter": { + "punctuationgreedy": { + "type": "pattern_replace", + "pattern": "[\\.,]" + } + }, + "analyzer": { + "index_ngram": { + "char_filter": ["punctuationgreedy"], + "filter": [ + "word_delimiter", "lowercase", "icu_folding", + "autocomplete_filter"], + "tokenizer": "icu_tokenizer" + }, + "search_ngram": { + "char_filter": ["punctuationgreedy"], + "filter": [ + "word_delimiter", "lowercase", "asciifolding", "unique"], + "tokenizer": "standard" + }, + "index_raw": { + "char_filter": ["punctuationgreedy"], + "filter": [ + "word_delimiter", "lowercase", "asciifolding", "unique"], + "tokenizer": "standard" + }, + "search_raw": { + "char_filter": ["punctuationgreedy"], + "filter": [ + "word_delimiter", "lowercase", "asciifolding", "unique"], + "tokenizer": "standard" + }, + "index_english": { + "type": "custom", + "tokenizer": "standard", + "filter": [ + "english_possessive_stemmer", + "lowercase", + "english_stop", + "english_stemmer", + "autocomplete_filter" + ] + }, + "search_english": { + "type": "custom", + "tokenizer": "standard", + "filter": [ + "english_possessive_stemmer", + "lowercase", + "english_stop", + "english_stemmer" + ] + }, + "index_french": { + "tokenizer": "standard", + "filter": [ + "french_elision", + "lowercase", + "french_stop", + "french_stemmer", + "autocomplete_filter" + ] + }, + "search_french": { + "tokenizer": "standard", + "filter": [ + "french_elision", + "lowercase", + "french_stop", + "french_stemmer", + "autocomplete_filter" + ] + }, + "index_german": { + "tokenizer": "standard", + "filter": [ + "lowercase", + "german_stop", + "german_normalization", + "german_stemmer", + "autocomplete_filter" + ] + }, + "search_german": { + "tokenizer": "standard", + "filter": [ + "lowercase", + "german_stop", + "german_normalization", + "german_stemmer" + ] + }, + "index_italian": { + "tokenizer": "standard", + "filter": [ + "italian_elision", + "lowercase", + "italian_stop", + "italian_stemmer", + "autocomplete_filter" + ] + }, + "search_italian": { + "tokenizer": "standard", + "filter": [ + "italian_elision", + "lowercase", + "italian_stop", + "italian_stemmer" + ] + }, + "index_spanish": { + "tokenizer": "standard", + "filter": [ + "lowercase", + "spanish_stop", + "spanish_stemmer", + "autocomplete_filter" + ] + }, + "search_spanish": { + "tokenizer": "standard", + "filter": [ + "lowercase", + "spanish_stop", + "spanish_stemmer" + ] + }, + "index_catalan": { + "tokenizer": "standard", + "filter": [ + "catalan_elision", + "lowercase", + "catalan_stop", + "catalan_stemmer", + "autocomplete_filter" + ] + }, + "search_catalan": { + "tokenizer": "standard", + "filter": [ + "catalan_elision", + "lowercase", + "catalan_stop", + "catalan_stemmer" + ] + }, + "index_basque": { + "tokenizer": "standard", + "filter": [ + "lowercase", + "basque_stop", + "basque_stemmer", + "autocomplete_filter" + ] + }, + "search_basque": { + "tokenizer": "standard", + "filter": [ + "lowercase", + "basque_stop", + "basque_stemmer" + ] + }, + "french_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "french_elision", + "french_stop", + "icu_folding", + "lowercase", + "french_stemmer" + ] + }, + "german_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "german_stop", + "german_stemmer", + "lowercase", + "icu_folding" + ] + }, + "english_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "english_possessive_stemmer", + "english_stop", + "lowercase", + "icu_folding" + ] + }, + "italian_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "italian_elision", + "italian_stop", + "lowercase", + "icu_folding", + "italian_stemmer" + ] + }, + "spanish_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "lowercase", + "spanish_stop", + "spanish_stemmer", + "icu_folding" + ] + }, + "catalan_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "catalan_elision", + "lowercase", + "catalan_stop", + "catalan_stemmer", + "icu_folding" + ] + }, + "basque_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "lowercase", + "basque_stop", + "basque_stemmer", + "icu_folding" + ] + }, + "index_slovene": { + "type": "custom", + "tokenizer": "standard", + "filter": [ + "autocomplete_filter", + "lowercase" + ] + }, + "search_slovene": { + "type": "custom", + "tokenizer": "standard", + "filter": [ + "lowercase" + ] + }, + "slovene_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "lowercase", + "icu_folding" + ] + }, + "index_chinois": { + "type": "custom", + "tokenizer": "standard", + "filter": [ + "autocomplete_filter" + ] + }, + "search_chinois": { + "type": "custom", + "tokenizer": "standard", + "filter": [ + "lowercase" + ] + }, + "chinois_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "lowercase", + "icu_folding" + ] + } + } + } +} \ No newline at end of file diff --git a/scripts/esjson2-5/u.json b/scripts/esjson2-5/u.json new file mode 100644 index 000000000..4f8c89415 --- /dev/null +++ b/scripts/esjson2-5/u.json @@ -0,0 +1,238 @@ +{ + "_all": { + "enabled": false + }, + "properties": { + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": false + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson2-5/w.json b/scripts/esjson2-5/w.json new file mode 100644 index 000000000..503b9a018 --- /dev/null +++ b/scripts/esjson2-5/w.json @@ -0,0 +1,349 @@ +{ + "_all": { + "enabled": false + }, + "properties": { + "access_time": { + "type": "integer" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": false + }, + "best_periods": { + "type": "text", + "index": false + }, + "capacity": { + "type": "integer" + }, + "capacity_staffed": { + "type": "integer" + }, + "children_proof": { + "type": "text", + "index": false + }, + "climbing_indoor_types": { + "type": "text", + "index": false + }, + "climbing_outdoor_types": { + "type": "text", + "index": false + }, + "climbing_rating_max": { + "type": "integer" + }, + "climbing_rating_median": { + "type": "integer" + }, + "climbing_rating_min": { + "type": "integer" + }, + "climbing_styles": { + "type": "text", + "index": false + }, + "custodianship": { + "type": "text", + "index": false + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "elevation": { + "type": "integer" + }, + "equipment_ratings": { + "type": "integer" + }, + "exposition_rating": { + "type": "integer" + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "height_max": { + "type": "integer" + }, + "height_median": { + "type": "integer" + }, + "height_min": { + "type": "integer" + }, + "id": { + "type": "long" + }, + "length": { + "type": "integer" + }, + "lift_access": { + "type": "boolean" + }, + "orientations": { + "type": "text", + "index": false + }, + "paragliding_rating": { + "type": "integer" + }, + "product_types": { + "type": "text", + "index": false + }, + "prominence": { + "type": "integer" + }, + "public_transportation_rating": { + "type": "text", + "index": false + }, + "public_transportation_types": { + "type": "text", + "index": false + }, + "quality": { + "type": "integer" + }, + "rain_proof": { + "type": "text", + "index": false + }, + "rock_types": { + "type": "text", + "index": false + }, + "routes_quantity": { + "type": "integer" + }, + "snow_clearance_rating": { + "type": "text", + "index": false + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "waypoint_type": { + "type": "text", + "index": false + }, + "weather_station_types": { + "type": "text", + "index": false + } + } + } \ No newline at end of file diff --git a/scripts/esjson2-5/x.json b/scripts/esjson2-5/x.json new file mode 100644 index 000000000..dd419c007 --- /dev/null +++ b/scripts/esjson2-5/x.json @@ -0,0 +1,268 @@ +{ + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": false + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": false + }, + "avalanche_level": { + "type": "integer" + }, + "avalanche_slope": { + "type": "integer" + }, + "date": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "elevation": { + "type": "integer" + }, + "event_type": { + "type": "text", + "index": false + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "id": { + "type": "long" + }, + "nb_impacted": { + "type": "integer" + }, + "nb_participants": { + "type": "integer" + }, + "quality": { + "type": "integer" + }, + "severity": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson5-6/a.json b/scripts/esjson5-6/a.json new file mode 100644 index 000000000..1b3a46031 --- /dev/null +++ b/scripts/esjson5-6/a.json @@ -0,0 +1,279 @@ +{ + "properties": { + "area_type": { + "type": "text", + "index": true + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": true + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "title_sl": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "slovene_heavy" + } + } + }, + "title_zh": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "chinois_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson5-6/b.json b/scripts/esjson5-6/b.json new file mode 100644 index 000000000..6fa5d297e --- /dev/null +++ b/scripts/esjson5-6/b.json @@ -0,0 +1,283 @@ +{ + "properties": { + "activities": { + "type": "text", + "index": true + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": true + }, + "book_types": { + "type": "text", + "index": true + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "title_sl": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "slovene_heavy" + } + } + }, + "title_zh": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "chinois_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson5-6/c.json b/scripts/esjson5-6/c.json new file mode 100644 index 000000000..a5d6ebf96 --- /dev/null +++ b/scripts/esjson5-6/c.json @@ -0,0 +1,287 @@ +{ + "properties": { + "activities": { + "type": "text", + "index": true + }, + "areas": { + "type": "long" + }, + "article_categories": { + "type": "text", + "index": true + }, + "article_type": { + "type": "text", + "index": true + }, + "available_locales": { + "type": "text", + "index": true + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "title_sl": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "slovene_heavy" + } + } + }, + "title_zh": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "chinois_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson5-6/cluster.json b/scripts/esjson5-6/cluster.json new file mode 100644 index 000000000..4e2491d7e --- /dev/null +++ b/scripts/esjson5-6/cluster.json @@ -0,0 +1,10 @@ +{ + "index_patterns": [ + "*" + ], + "order": 0, + "settings": { + "number_of_shards": 1, + "number_of_replicas": 0 + } +} \ No newline at end of file diff --git a/scripts/esjson5-6/i.json b/scripts/esjson5-6/i.json new file mode 100644 index 000000000..a58b744b1 --- /dev/null +++ b/scripts/esjson5-6/i.json @@ -0,0 +1,294 @@ +{ + "properties": { + "activities": { + "type": "text", + "index": true + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": true + }, + "categories": { + "type": "text", + "index": true + }, + "date_time": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "elevation": { + "type": "integer" + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "id": { + "type": "long" + }, + "image_type": { + "type": "text", + "index": false + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "title_sl": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "slovene_heavy" + } + } + }, + "title_zh": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "chinois_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson5-6/m.json b/scripts/esjson5-6/m.json new file mode 100644 index 000000000..8f23d485f --- /dev/null +++ b/scripts/esjson5-6/m.json @@ -0,0 +1,275 @@ +{ + "properties": { + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": true + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "title_sl": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "slovene_heavy" + } + } + }, + "title_zh": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "chinois_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson5-6/mappings.json b/scripts/esjson5-6/mappings.json new file mode 100644 index 000000000..4ac3ab7f4 --- /dev/null +++ b/scripts/esjson5-6/mappings.json @@ -0,0 +1,2807 @@ +{ + "c2corg": { + "mappings": { + "x": { + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": "not_analyzed" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "avalanche_level": { + "type": "integer" + }, + "avalanche_slope": { + "type": "integer" + }, + "date": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "elevation": { + "type": "integer" + }, + "event_type": { + "type": "text", + "index": "not_analyzed" + }, + "geom": { + "type": "geo_point" + }, + "id": { + "type": "long" + }, + "nb_impacted": { + "type": "integer" + }, + "nb_participants": { + "type": "integer" + }, + "quality": { + "type": "integer" + }, + "severity": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + }, + "c": { + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": "not_analyzed" + }, + "areas": { + "type": "long" + }, + "article_categories": { + "type": "text", + "index": "not_analyzed" + }, + "article_type": { + "type": "text", + "index": "not_analyzed" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "geom": { + "type": "geo_point" + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + }, + "u": { + "_all": { + "enabled": false + }, + "properties": { + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "geom": { + "type": "geo_point" + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + }, + "o": { + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": "not_analyzed" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "avalanche_signs": { + "type": "text", + "index": "not_analyzed" + }, + "condition_rating": { + "type": "integer" + }, + "date_end": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "date_start": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "elevation_access": { + "type": "integer" + }, + "elevation_down_snow": { + "type": "integer" + }, + "elevation_max": { + "type": "integer" + }, + "elevation_up_snow": { + "type": "integer" + }, + "engagement_rating": { + "type": "integer" + }, + "equipment_rating": { + "type": "integer" + }, + "frequentation": { + "type": "integer" + }, + "geom": { + "type": "geo_point" + }, + "glacier_rating": { + "type": "integer" + }, + "global_rating": { + "type": "integer" + }, + "height_diff_difficulties": { + "type": "integer" + }, + "height_diff_up": { + "type": "integer" + }, + "hiking_rating": { + "type": "integer" + }, + "ice_rating": { + "type": "integer" + }, + "id": { + "type": "long" + }, + "labande_global_rating": { + "type": "integer" + }, + "length_total": { + "type": "integer" + }, + "mtb_down_rating": { + "type": "integer" + }, + "mtb_up_rating": { + "type": "integer" + }, + "public_transport": { + "type": "boolean" + }, + "quality": { + "type": "integer" + }, + "rock_free_rating": { + "type": "integer" + }, + "routes": { + "type": "long" + }, + "ski_rating": { + "type": "integer" + }, + "snow_quality": { + "type": "integer" + }, + "snow_quantity": { + "type": "integer" + }, + "snowshoe_rating": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "users": { + "type": "long" + }, + "via_ferrata_rating": { + "type": "integer" + }, + "waypoints": { + "type": "long" + } + } + }, + "m": { + "_all": { + "enabled": false + }, + "properties": { + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "geom": { + "type": "geo_point" + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + }, + "b": { + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": "not_analyzed" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "book_types": { + "type": "text", + "index": "not_analyzed" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "geom": { + "type": "geo_point" + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + }, + "w": { + "_all": { + "enabled": false + }, + "properties": { + "access_time": { + "type": "integer" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "best_periods": { + "type": "text", + "index": "not_analyzed" + }, + "capacity": { + "type": "integer" + }, + "capacity_staffed": { + "type": "integer" + }, + "children_proof": { + "type": "text", + "index": "not_analyzed" + }, + "climbing_indoor_types": { + "type": "text", + "index": "not_analyzed" + }, + "climbing_outdoor_types": { + "type": "text", + "index": "not_analyzed" + }, + "climbing_rating_max": { + "type": "integer" + }, + "climbing_rating_median": { + "type": "integer" + }, + "climbing_rating_min": { + "type": "integer" + }, + "climbing_styles": { + "type": "text", + "index": "not_analyzed" + }, + "custodianship": { + "type": "text", + "index": "not_analyzed" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "elevation": { + "type": "integer" + }, + "equipment_ratings": { + "type": "integer" + }, + "exposition_rating": { + "type": "integer" + }, + "geom": { + "type": "geo_point" + }, + "height_max": { + "type": "integer" + }, + "height_median": { + "type": "integer" + }, + "height_min": { + "type": "integer" + }, + "id": { + "type": "long" + }, + "length": { + "type": "integer" + }, + "lift_access": { + "type": "boolean" + }, + "orientations": { + "type": "text", + "index": "not_analyzed" + }, + "paragliding_rating": { + "type": "integer" + }, + "product_types": { + "type": "text", + "index": "not_analyzed" + }, + "prominence": { + "type": "integer" + }, + "public_transportation_rating": { + "type": "text", + "index": "not_analyzed" + }, + "public_transportation_types": { + "type": "text", + "index": "not_analyzed" + }, + "quality": { + "type": "integer" + }, + "rain_proof": { + "type": "text", + "index": "not_analyzed" + }, + "rock_types": { + "type": "text", + "index": "not_analyzed" + }, + "routes_quantity": { + "type": "integer" + }, + "snow_clearance_rating": { + "type": "text", + "index": "not_analyzed" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "waypoint_type": { + "type": "text", + "index": "not_analyzed" + }, + "weather_station_types": { + "type": "text", + "index": "not_analyzed" + } + } + }, + "a": { + "_all": { + "enabled": false + }, + "properties": { + "area_type": { + "type": "text", + "index": "not_analyzed" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "geom": { + "type": "geo_point" + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + }, + "i": { + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": "not_analyzed" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "categories": { + "type": "text", + "index": "not_analyzed" + }, + "date_time": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "elevation": { + "type": "integer" + }, + "geom": { + "type": "geo_point" + }, + "id": { + "type": "long" + }, + "image_type": { + "type": "text", + "index": "not_analyzed" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + } + } + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + }, + "r": { + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": "not_analyzed" + }, + "aid_rating": { + "type": "integer" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "climbing_outdoor_type": { + "type": "text", + "index": "not_analyzed" + }, + "configuration": { + "type": "text", + "index": "not_analyzed" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "difficulties_height": { + "type": "integer" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "durations": { + "type": "integer" + }, + "elevation_max": { + "type": "integer" + }, + "elevation_min": { + "type": "integer" + }, + "engagement_rating": { + "type": "integer" + }, + "equipment_rating": { + "type": "integer" + }, + "exposition_rock_rating": { + "type": "integer" + }, + "geom": { + "type": "geo_point" + }, + "glacier_gear": { + "type": "text", + "index": "not_analyzed" + }, + "global_rating": { + "type": "integer" + }, + "height_diff_access": { + "type": "integer" + }, + "height_diff_difficulties": { + "type": "integer" + }, + "height_diff_down": { + "type": "integer" + }, + "height_diff_up": { + "type": "integer" + }, + "hiking_mtb_exposition": { + "type": "integer" + }, + "hiking_rating": { + "type": "integer" + }, + "ice_rating": { + "type": "integer" + }, + "id": { + "type": "long" + }, + "labande_global_rating": { + "type": "integer" + }, + "labande_ski_rating": { + "type": "integer" + }, + "mixed_rating": { + "type": "integer" + }, + "mtb_down_rating": { + "type": "integer" + }, + "mtb_height_diff_portages": { + "type": "integer" + }, + "mtb_length_asphalt": { + "type": "integer" + }, + "mtb_length_trail": { + "type": "integer" + }, + "mtb_up_rating": { + "type": "integer" + }, + "orientations": { + "type": "text", + "index": "not_analyzed" + }, + "quality": { + "type": "integer" + }, + "risk_rating": { + "type": "integer" + }, + "rock_free_rating": { + "type": "integer" + }, + "rock_required_rating": { + "type": "integer" + }, + "rock_types": { + "type": "text", + "index": "not_analyzed" + }, + "route_length": { + "type": "integer" + }, + "route_types": { + "type": "text", + "index": "not_analyzed" + }, + "ski_exposition": { + "type": "integer" + }, + "ski_rating": { + "type": "integer" + }, + "slackline_type": { + "type": "text", + "index": "not_analyzed" + }, + "snowshoe_rating": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "via_ferrata_rating": { + "type": "integer" + }, + "waypoints": { + "type": "long" + } + } + } + } + } +} diff --git a/scripts/esjson5-6/o.json b/scripts/esjson5-6/o.json new file mode 100644 index 000000000..b4fa1be8c --- /dev/null +++ b/scripts/esjson5-6/o.json @@ -0,0 +1,375 @@ +{ + "properties": { + "activities": { + "type": "text", + "index": true + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": true + }, + "avalanche_signs": { + "type": "text", + "index": true + }, + "condition_rating": { + "type": "integer" + }, + "date_end": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "date_start": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "elevation_access": { + "type": "integer" + }, + "elevation_down_snow": { + "type": "integer" + }, + "elevation_max": { + "type": "integer" + }, + "elevation_up_snow": { + "type": "integer" + }, + "engagement_rating": { + "type": "integer" + }, + "equipment_rating": { + "type": "integer" + }, + "frequentation": { + "type": "integer" + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "glacier_rating": { + "type": "integer" + }, + "global_rating": { + "type": "integer" + }, + "height_diff_difficulties": { + "type": "integer" + }, + "height_diff_up": { + "type": "integer" + }, + "hiking_rating": { + "type": "integer" + }, + "ice_rating": { + "type": "integer" + }, + "id": { + "type": "long" + }, + "labande_global_rating": { + "type": "integer" + }, + "length_total": { + "type": "integer" + }, + "mtb_down_rating": { + "type": "integer" + }, + "mtb_up_rating": { + "type": "integer" + }, + "public_transport": { + "type": "boolean" + }, + "quality": { + "type": "integer" + }, + "rock_free_rating": { + "type": "integer" + }, + "routes": { + "type": "long" + }, + "ski_rating": { + "type": "integer" + }, + "snow_quality": { + "type": "integer" + }, + "snow_quantity": { + "type": "integer" + }, + "snowshoe_rating": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "users": { + "type": "long" + }, + "via_ferrata_rating": { + "type": "integer" + }, + "waypoints": { + "type": "long" + }, + "title_sl": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "slovene_heavy" + } + } + }, + "title_zh": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "chinois_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson5-6/r.json b/scripts/esjson5-6/r.json new file mode 100644 index 000000000..16ebe15ca --- /dev/null +++ b/scripts/esjson5-6/r.json @@ -0,0 +1,406 @@ +{ + "properties": { + "activities": { + "type": "text", + "index": true + }, + "aid_rating": { + "type": "integer" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": true + }, + "climbing_outdoor_type": { + "type": "text", + "index": true + }, + "configuration": { + "type": "text", + "index": true + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "difficulties_height": { + "type": "integer" + }, + "doc_type": { + "type": "text", + "index": false + }, + "durations": { + "type": "integer" + }, + "elevation_max": { + "type": "integer" + }, + "elevation_min": { + "type": "integer" + }, + "engagement_rating": { + "type": "integer" + }, + "equipment_rating": { + "type": "integer" + }, + "exposition_rock_rating": { + "type": "integer" + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "glacier_gear": { + "type": "text", + "index": true + }, + "global_rating": { + "type": "integer" + }, + "height_diff_access": { + "type": "integer" + }, + "height_diff_difficulties": { + "type": "integer" + }, + "height_diff_down": { + "type": "integer" + }, + "height_diff_up": { + "type": "integer" + }, + "hiking_mtb_exposition": { + "type": "integer" + }, + "hiking_rating": { + "type": "integer" + }, + "ice_rating": { + "type": "integer" + }, + "id": { + "type": "long" + }, + "labande_global_rating": { + "type": "integer" + }, + "labande_ski_rating": { + "type": "integer" + }, + "mixed_rating": { + "type": "integer" + }, + "mtb_down_rating": { + "type": "integer" + }, + "mtb_height_diff_portages": { + "type": "integer" + }, + "mtb_length_asphalt": { + "type": "integer" + }, + "mtb_length_trail": { + "type": "integer" + }, + "mtb_up_rating": { + "type": "integer" + }, + "orientations": { + "type": "text", + "index": true + }, + "quality": { + "type": "integer" + }, + "risk_rating": { + "type": "integer" + }, + "rock_free_rating": { + "type": "integer" + }, + "rock_required_rating": { + "type": "integer" + }, + "rock_types": { + "type": "text", + "index": true + }, + "route_length": { + "type": "integer" + }, + "route_types": { + "type": "text", + "index": true + }, + "ski_exposition": { + "type": "integer" + }, + "ski_rating": { + "type": "integer" + }, + "slackline_type": { + "type": "text", + "index": true + }, + "snowshoe_rating": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "via_ferrata_rating": { + "type": "integer" + }, + "waypoints": { + "type": "long" + }, + "title_sl": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "slovene_heavy" + } + } + }, + "title_zh": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "chinois_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson5-6/settings.json b/scripts/esjson5-6/settings.json new file mode 100644 index 000000000..ff95e3ef8 --- /dev/null +++ b/scripts/esjson5-6/settings.json @@ -0,0 +1,378 @@ +{ + "analysis": { + "filter": { + "autocomplete_filter": { + "type": "edge_ngram", + "min_gram": "2", + "max_gram": "15", + "token_chars": [ + "letter", + "digit" + ] + }, + "english_stop": { + "type": "stop", + "stopwords": "_english_" + }, + "english_stemmer": { + "type": "stemmer", + "language": "english" + }, + "english_possessive_stemmer": { + "type": "stemmer", + "language": "possessive_english" + }, + "french_elision": { + "type": "elision", + "articles_case": true, + "articles": [ + "l", "m", "t", "qu", "n", "s", + "j", "d", "c", "jusqu", "quoiqu", + "lorsqu", "puisqu" + ] + }, + "french_stop": { + "type": "stop", + "stopwords": "_french_" + }, + "french_stemmer": { + "type": "stemmer", + "language": "light_french" + }, + "german_stop": { + "type": "stop", + "stopwords": "_german_" + }, + "german_stemmer": { + "type": "stemmer", + "language": "light_german" + }, + "italian_elision": { + "type": "elision", + "articles_case": true, + "articles": [ + "c", "l", "all", "dall", "dell", + "nell", "sull", "coll", "pell", + "gl", "agl", "dagl", "degl", "negl", + "sugl", "un", "m", "t", "s", "v", "d" + ] + }, + "italian_stop": { + "type": "stop", + "stopwords": "_italian_" + }, + "italian_stemmer": { + "type": "stemmer", + "language": "light_italian" + }, + "spanish_stop": { + "type": "stop", + "stopwords": "_spanish_" + }, + "spanish_stemmer": { + "type": "stemmer", + "language": "light_spanish" + }, + "catalan_elision": { + "type": "elision", + "articles_case": true, + "articles": ["d", "l", "m", "n", "s", "t"] + }, + "catalan_stop": { + "type": "stop", + "stopwords": "_catalan_" + }, + "catalan_stemmer": { + "type": "stemmer", + "language": "catalan" + }, + "basque_stop": { + "type": "stop", + "stopwords": "_basque_" + }, + "basque_stemmer": { + "type": "stemmer", + "language": "basque" + } + }, + "similarity": { + "c2corgsimilarity": { + "type": "BM25" + } + }, + "char_filter": { + "punctuationgreedy": { + "type": "pattern_replace", + "pattern": "[\\.,]" + } + }, + "analyzer": { + "index_ngram": { + "char_filter": ["punctuationgreedy"], + "filter": [ + "word_delimiter", "lowercase", "icu_folding", + "autocomplete_filter"], + "tokenizer": "icu_tokenizer" + }, + "search_ngram": { + "char_filter": ["punctuationgreedy"], + "filter": [ + "word_delimiter", "lowercase", "asciifolding", "unique"], + "tokenizer": "standard" + }, + "index_raw": { + "char_filter": ["punctuationgreedy"], + "filter": [ + "word_delimiter", "lowercase", "asciifolding", "unique"], + "tokenizer": "standard" + }, + "search_raw": { + "char_filter": ["punctuationgreedy"], + "filter": [ + "word_delimiter", "lowercase", "asciifolding", "unique"], + "tokenizer": "standard" + }, + "index_english": { + "type": "custom", + "tokenizer": "standard", + "filter": [ + "english_possessive_stemmer", + "lowercase", + "english_stop", + "english_stemmer", + "autocomplete_filter" + ] + }, + "search_english": { + "type": "custom", + "tokenizer": "standard", + "filter": [ + "english_possessive_stemmer", + "lowercase", + "english_stop", + "english_stemmer" + ] + }, + "index_french": { + "tokenizer": "standard", + "filter": [ + "french_elision", + "lowercase", + "french_stop", + "french_stemmer", + "autocomplete_filter" + ] + }, + "search_french": { + "tokenizer": "standard", + "filter": [ + "french_elision", + "lowercase", + "french_stop", + "french_stemmer", + "autocomplete_filter" + ] + }, + "index_german": { + "tokenizer": "standard", + "filter": [ + "lowercase", + "german_stop", + "german_normalization", + "german_stemmer", + "autocomplete_filter" + ] + }, + "search_german": { + "tokenizer": "standard", + "filter": [ + "lowercase", + "german_stop", + "german_normalization", + "german_stemmer" + ] + }, + "index_italian": { + "tokenizer": "standard", + "filter": [ + "italian_elision", + "lowercase", + "italian_stop", + "italian_stemmer", + "autocomplete_filter" + ] + }, + "search_italian": { + "tokenizer": "standard", + "filter": [ + "italian_elision", + "lowercase", + "italian_stop", + "italian_stemmer" + ] + }, + "index_spanish": { + "tokenizer": "standard", + "filter": [ + "lowercase", + "spanish_stop", + "spanish_stemmer", + "autocomplete_filter" + ] + }, + "search_spanish": { + "tokenizer": "standard", + "filter": [ + "lowercase", + "spanish_stop", + "spanish_stemmer" + ] + }, + "index_catalan": { + "tokenizer": "standard", + "filter": [ + "catalan_elision", + "lowercase", + "catalan_stop", + "catalan_stemmer", + "autocomplete_filter" + ] + }, + "search_catalan": { + "tokenizer": "standard", + "filter": [ + "catalan_elision", + "lowercase", + "catalan_stop", + "catalan_stemmer" + ] + }, + "index_basque": { + "tokenizer": "standard", + "filter": [ + "lowercase", + "basque_stop", + "basque_stemmer", + "autocomplete_filter" + ] + }, + "search_basque": { + "tokenizer": "standard", + "filter": [ + "lowercase", + "basque_stop", + "basque_stemmer" + ] + }, + "french_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "french_elision", + "french_stop", + "icu_folding", + "lowercase", + "french_stemmer" + ] + }, + "german_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "german_stop", + "german_stemmer", + "lowercase", + "icu_folding" + ] + }, + "english_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "english_possessive_stemmer", + "english_stop", + "lowercase", + "icu_folding" + ] + }, + "italian_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "italian_elision", + "italian_stop", + "lowercase", + "icu_folding", + "italian_stemmer" + ] + }, + "spanish_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "lowercase", + "spanish_stop", + "spanish_stemmer", + "icu_folding" + ] + }, + "catalan_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "catalan_elision", + "lowercase", + "catalan_stop", + "catalan_stemmer", + "icu_folding" + ] + }, + "basque_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "lowercase", + "basque_stop", + "basque_stemmer", + "icu_folding" + ] + }, + "index_slovene": { + "type": "custom", + "tokenizer": "standard", + "filter": [ + "autocomplete_filter", + "lowercase" + ] + }, + "search_slovene": { + "type": "custom", + "tokenizer": "standard", + "filter": [ + "lowercase" + ] + }, + "slovene_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "lowercase", + "icu_folding" + ] + }, + "index_chinois": { + "type": "custom", + "tokenizer": "standard", + "filter": [ + "autocomplete_filter" + ] + }, + "search_chinois": { + "type": "custom", + "tokenizer": "standard", + "filter": [ + "lowercase" + ] + }, + "chinois_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "lowercase", + "icu_folding" + ] + } + } + } +} \ No newline at end of file diff --git a/scripts/esjson5-6/u.json b/scripts/esjson5-6/u.json new file mode 100644 index 000000000..8f23d485f --- /dev/null +++ b/scripts/esjson5-6/u.json @@ -0,0 +1,275 @@ +{ + "properties": { + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": true + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "title_sl": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "slovene_heavy" + } + } + }, + "title_zh": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "chinois_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson5-6/w.json b/scripts/esjson5-6/w.json new file mode 100644 index 000000000..4d3e561e0 --- /dev/null +++ b/scripts/esjson5-6/w.json @@ -0,0 +1,386 @@ +{ + "properties": { + "access_time": { + "type": "integer" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": true + }, + "best_periods": { + "type": "text", + "index": true + }, + "capacity": { + "type": "integer" + }, + "capacity_staffed": { + "type": "integer" + }, + "children_proof": { + "type": "text", + "index": true + }, + "climbing_indoor_types": { + "type": "text", + "index": true + }, + "climbing_outdoor_types": { + "type": "text", + "index": true + }, + "climbing_rating_max": { + "type": "integer" + }, + "climbing_rating_median": { + "type": "integer" + }, + "climbing_rating_min": { + "type": "integer" + }, + "climbing_styles": { + "type": "text", + "index": true + }, + "custodianship": { + "type": "text", + "index": true + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "elevation": { + "type": "integer" + }, + "equipment_ratings": { + "type": "integer" + }, + "exposition_rating": { + "type": "integer" + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "height_max": { + "type": "integer" + }, + "height_median": { + "type": "integer" + }, + "height_min": { + "type": "integer" + }, + "id": { + "type": "long" + }, + "length": { + "type": "integer" + }, + "lift_access": { + "type": "boolean" + }, + "orientations": { + "type": "text", + "index": true + }, + "paragliding_rating": { + "type": "integer" + }, + "product_types": { + "type": "text", + "index": true + }, + "prominence": { + "type": "integer" + }, + "public_transportation_rating": { + "type": "text", + "index": true + }, + "public_transportation_types": { + "type": "text", + "index": true + }, + "quality": { + "type": "integer" + }, + "rain_proof": { + "type": "text", + "index": true + }, + "rock_types": { + "type": "text", + "index": true + }, + "routes_quantity": { + "type": "integer" + }, + "snow_clearance_rating": { + "type": "text", + "index": true + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "waypoint_type": { + "type": "text", + "index": true + }, + "weather_station_types": { + "type": "text", + "index": true + }, + "title_sl": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "slovene_heavy" + } + } + }, + "title_zh": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "chinois_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson5-6/x.json b/scripts/esjson5-6/x.json new file mode 100644 index 000000000..9071b569b --- /dev/null +++ b/scripts/esjson5-6/x.json @@ -0,0 +1,305 @@ +{ + "properties": { + "activities": { + "type": "text", + "index": true + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": true + }, + "avalanche_level": { + "type": "integer" + }, + "avalanche_slope": { + "type": "integer" + }, + "date": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "elevation": { + "type": "integer" + }, + "event_type": { + "type": "text", + "index": true + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "id": { + "type": "long" + }, + "nb_impacted": { + "type": "integer" + }, + "nb_participants": { + "type": "integer" + }, + "quality": { + "type": "integer" + }, + "severity": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "title_sl": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "slovene_heavy" + } + } + }, + "title_zh": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "chinois_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson6-7/a.json b/scripts/esjson6-7/a.json new file mode 100644 index 000000000..8af0569c0 --- /dev/null +++ b/scripts/esjson6-7/a.json @@ -0,0 +1,280 @@ +{ + "properties": { + "area_type": { + "type": "text", + "index": true + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": true + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "id": { + "type": "long", + "index": true + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "title_sl": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "slovene_heavy" + } + } + }, + "title_zh": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "chinois_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson6-7/b.json b/scripts/esjson6-7/b.json new file mode 100644 index 000000000..85f82f8db --- /dev/null +++ b/scripts/esjson6-7/b.json @@ -0,0 +1,284 @@ +{ + "properties": { + "activities": { + "type": "text", + "index": true + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": true + }, + "book_types": { + "type": "text", + "index": true + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "id": { + "type": "long", + "index": true + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "title_sl": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "slovene_heavy" + } + } + }, + "title_zh": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "chinois_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson6-7/c.json b/scripts/esjson6-7/c.json new file mode 100644 index 000000000..d1fcbab88 --- /dev/null +++ b/scripts/esjson6-7/c.json @@ -0,0 +1,288 @@ +{ + "properties": { + "activities": { + "type": "text", + "index": true + }, + "areas": { + "type": "long" + }, + "article_categories": { + "type": "text", + "index": true + }, + "article_type": { + "type": "text", + "index": true + }, + "available_locales": { + "type": "text", + "index": true + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "id": { + "type": "long", + "index": true + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "title_sl": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "slovene_heavy" + } + } + }, + "title_zh": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "chinois_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson6-7/cluster.json b/scripts/esjson6-7/cluster.json new file mode 100644 index 000000000..4e2491d7e --- /dev/null +++ b/scripts/esjson6-7/cluster.json @@ -0,0 +1,10 @@ +{ + "index_patterns": [ + "*" + ], + "order": 0, + "settings": { + "number_of_shards": 1, + "number_of_replicas": 0 + } +} \ No newline at end of file diff --git a/scripts/esjson6-7/i.json b/scripts/esjson6-7/i.json new file mode 100644 index 000000000..ec33e1415 --- /dev/null +++ b/scripts/esjson6-7/i.json @@ -0,0 +1,295 @@ +{ + "properties": { + "activities": { + "type": "text", + "index": true + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": true + }, + "categories": { + "type": "text", + "index": true + }, + "date_time": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "elevation": { + "type": "integer" + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "id": { + "type": "long", + "index": true + }, + "image_type": { + "type": "text", + "index": false + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "title_sl": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "slovene_heavy" + } + } + }, + "title_zh": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "chinois_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson6-7/m.json b/scripts/esjson6-7/m.json new file mode 100644 index 000000000..e776af0da --- /dev/null +++ b/scripts/esjson6-7/m.json @@ -0,0 +1,276 @@ +{ + "properties": { + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": true + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "id": { + "type": "long", + "index": true + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "title_sl": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "slovene_heavy" + } + } + }, + "title_zh": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "chinois_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson6-7/mappings.json b/scripts/esjson6-7/mappings.json new file mode 100644 index 000000000..4ac3ab7f4 --- /dev/null +++ b/scripts/esjson6-7/mappings.json @@ -0,0 +1,2807 @@ +{ + "c2corg": { + "mappings": { + "x": { + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": "not_analyzed" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "avalanche_level": { + "type": "integer" + }, + "avalanche_slope": { + "type": "integer" + }, + "date": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "elevation": { + "type": "integer" + }, + "event_type": { + "type": "text", + "index": "not_analyzed" + }, + "geom": { + "type": "geo_point" + }, + "id": { + "type": "long" + }, + "nb_impacted": { + "type": "integer" + }, + "nb_participants": { + "type": "integer" + }, + "quality": { + "type": "integer" + }, + "severity": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + }, + "c": { + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": "not_analyzed" + }, + "areas": { + "type": "long" + }, + "article_categories": { + "type": "text", + "index": "not_analyzed" + }, + "article_type": { + "type": "text", + "index": "not_analyzed" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "geom": { + "type": "geo_point" + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + }, + "u": { + "_all": { + "enabled": false + }, + "properties": { + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "geom": { + "type": "geo_point" + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + }, + "o": { + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": "not_analyzed" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "avalanche_signs": { + "type": "text", + "index": "not_analyzed" + }, + "condition_rating": { + "type": "integer" + }, + "date_end": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "date_start": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "elevation_access": { + "type": "integer" + }, + "elevation_down_snow": { + "type": "integer" + }, + "elevation_max": { + "type": "integer" + }, + "elevation_up_snow": { + "type": "integer" + }, + "engagement_rating": { + "type": "integer" + }, + "equipment_rating": { + "type": "integer" + }, + "frequentation": { + "type": "integer" + }, + "geom": { + "type": "geo_point" + }, + "glacier_rating": { + "type": "integer" + }, + "global_rating": { + "type": "integer" + }, + "height_diff_difficulties": { + "type": "integer" + }, + "height_diff_up": { + "type": "integer" + }, + "hiking_rating": { + "type": "integer" + }, + "ice_rating": { + "type": "integer" + }, + "id": { + "type": "long" + }, + "labande_global_rating": { + "type": "integer" + }, + "length_total": { + "type": "integer" + }, + "mtb_down_rating": { + "type": "integer" + }, + "mtb_up_rating": { + "type": "integer" + }, + "public_transport": { + "type": "boolean" + }, + "quality": { + "type": "integer" + }, + "rock_free_rating": { + "type": "integer" + }, + "routes": { + "type": "long" + }, + "ski_rating": { + "type": "integer" + }, + "snow_quality": { + "type": "integer" + }, + "snow_quantity": { + "type": "integer" + }, + "snowshoe_rating": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "users": { + "type": "long" + }, + "via_ferrata_rating": { + "type": "integer" + }, + "waypoints": { + "type": "long" + } + } + }, + "m": { + "_all": { + "enabled": false + }, + "properties": { + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "geom": { + "type": "geo_point" + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + }, + "b": { + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": "not_analyzed" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "book_types": { + "type": "text", + "index": "not_analyzed" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "geom": { + "type": "geo_point" + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + }, + "w": { + "_all": { + "enabled": false + }, + "properties": { + "access_time": { + "type": "integer" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "best_periods": { + "type": "text", + "index": "not_analyzed" + }, + "capacity": { + "type": "integer" + }, + "capacity_staffed": { + "type": "integer" + }, + "children_proof": { + "type": "text", + "index": "not_analyzed" + }, + "climbing_indoor_types": { + "type": "text", + "index": "not_analyzed" + }, + "climbing_outdoor_types": { + "type": "text", + "index": "not_analyzed" + }, + "climbing_rating_max": { + "type": "integer" + }, + "climbing_rating_median": { + "type": "integer" + }, + "climbing_rating_min": { + "type": "integer" + }, + "climbing_styles": { + "type": "text", + "index": "not_analyzed" + }, + "custodianship": { + "type": "text", + "index": "not_analyzed" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "elevation": { + "type": "integer" + }, + "equipment_ratings": { + "type": "integer" + }, + "exposition_rating": { + "type": "integer" + }, + "geom": { + "type": "geo_point" + }, + "height_max": { + "type": "integer" + }, + "height_median": { + "type": "integer" + }, + "height_min": { + "type": "integer" + }, + "id": { + "type": "long" + }, + "length": { + "type": "integer" + }, + "lift_access": { + "type": "boolean" + }, + "orientations": { + "type": "text", + "index": "not_analyzed" + }, + "paragliding_rating": { + "type": "integer" + }, + "product_types": { + "type": "text", + "index": "not_analyzed" + }, + "prominence": { + "type": "integer" + }, + "public_transportation_rating": { + "type": "text", + "index": "not_analyzed" + }, + "public_transportation_types": { + "type": "text", + "index": "not_analyzed" + }, + "quality": { + "type": "integer" + }, + "rain_proof": { + "type": "text", + "index": "not_analyzed" + }, + "rock_types": { + "type": "text", + "index": "not_analyzed" + }, + "routes_quantity": { + "type": "integer" + }, + "snow_clearance_rating": { + "type": "text", + "index": "not_analyzed" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "waypoint_type": { + "type": "text", + "index": "not_analyzed" + }, + "weather_station_types": { + "type": "text", + "index": "not_analyzed" + } + } + }, + "a": { + "_all": { + "enabled": false + }, + "properties": { + "area_type": { + "type": "text", + "index": "not_analyzed" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "geom": { + "type": "geo_point" + }, + "id": { + "type": "long" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + }, + "i": { + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": "not_analyzed" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "categories": { + "type": "text", + "index": "not_analyzed" + }, + "date_time": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "elevation": { + "type": "integer" + }, + "geom": { + "type": "geo_point" + }, + "id": { + "type": "long" + }, + "image_type": { + "type": "text", + "index": "not_analyzed" + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + } + } + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + } + } + }, + "r": { + "_all": { + "enabled": false + }, + "properties": { + "activities": { + "type": "text", + "index": "not_analyzed" + }, + "aid_rating": { + "type": "integer" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": "not_analyzed" + }, + "climbing_outdoor_type": { + "type": "text", + "index": "not_analyzed" + }, + "configuration": { + "type": "text", + "index": "not_analyzed" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "difficulties_height": { + "type": "integer" + }, + "doc_type": { + "type": "text", + "index": "not_analyzed" + }, + "durations": { + "type": "integer" + }, + "elevation_max": { + "type": "integer" + }, + "elevation_min": { + "type": "integer" + }, + "engagement_rating": { + "type": "integer" + }, + "equipment_rating": { + "type": "integer" + }, + "exposition_rock_rating": { + "type": "integer" + }, + "geom": { + "type": "geo_point" + }, + "glacier_gear": { + "type": "text", + "index": "not_analyzed" + }, + "global_rating": { + "type": "integer" + }, + "height_diff_access": { + "type": "integer" + }, + "height_diff_difficulties": { + "type": "integer" + }, + "height_diff_down": { + "type": "integer" + }, + "height_diff_up": { + "type": "integer" + }, + "hiking_mtb_exposition": { + "type": "integer" + }, + "hiking_rating": { + "type": "integer" + }, + "ice_rating": { + "type": "integer" + }, + "id": { + "type": "long" + }, + "labande_global_rating": { + "type": "integer" + }, + "labande_ski_rating": { + "type": "integer" + }, + "mixed_rating": { + "type": "integer" + }, + "mtb_down_rating": { + "type": "integer" + }, + "mtb_height_diff_portages": { + "type": "integer" + }, + "mtb_length_asphalt": { + "type": "integer" + }, + "mtb_length_trail": { + "type": "integer" + }, + "mtb_up_rating": { + "type": "integer" + }, + "orientations": { + "type": "text", + "index": "not_analyzed" + }, + "quality": { + "type": "integer" + }, + "risk_rating": { + "type": "integer" + }, + "rock_free_rating": { + "type": "integer" + }, + "rock_required_rating": { + "type": "integer" + }, + "rock_types": { + "type": "text", + "index": "not_analyzed" + }, + "route_length": { + "type": "integer" + }, + "route_types": { + "type": "text", + "index": "not_analyzed" + }, + "ski_exposition": { + "type": "integer" + }, + "ski_rating": { + "type": "integer" + }, + "slackline_type": { + "type": "text", + "index": "not_analyzed" + }, + "snowshoe_rating": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": "not_analyzed", + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "via_ferrata_rating": { + "type": "integer" + }, + "waypoints": { + "type": "long" + } + } + } + } + } +} diff --git a/scripts/esjson6-7/o.json b/scripts/esjson6-7/o.json new file mode 100644 index 000000000..f859309e5 --- /dev/null +++ b/scripts/esjson6-7/o.json @@ -0,0 +1,376 @@ +{ + "properties": { + "activities": { + "type": "text", + "index": true + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": true + }, + "avalanche_signs": { + "type": "text", + "index": true + }, + "condition_rating": { + "type": "integer" + }, + "date_end": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "date_start": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "elevation_access": { + "type": "integer" + }, + "elevation_down_snow": { + "type": "integer" + }, + "elevation_max": { + "type": "integer" + }, + "elevation_up_snow": { + "type": "integer" + }, + "engagement_rating": { + "type": "integer" + }, + "equipment_rating": { + "type": "integer" + }, + "frequentation": { + "type": "integer" + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "glacier_rating": { + "type": "integer" + }, + "global_rating": { + "type": "integer" + }, + "height_diff_difficulties": { + "type": "integer" + }, + "height_diff_up": { + "type": "integer" + }, + "hiking_rating": { + "type": "integer" + }, + "ice_rating": { + "type": "integer" + }, + "id": { + "type": "long", + "index": true + }, + "labande_global_rating": { + "type": "integer" + }, + "length_total": { + "type": "integer" + }, + "mtb_down_rating": { + "type": "integer" + }, + "mtb_up_rating": { + "type": "integer" + }, + "public_transport": { + "type": "boolean" + }, + "quality": { + "type": "integer" + }, + "rock_free_rating": { + "type": "integer" + }, + "routes": { + "type": "long" + }, + "ski_rating": { + "type": "integer" + }, + "snow_quality": { + "type": "integer" + }, + "snow_quantity": { + "type": "integer" + }, + "snowshoe_rating": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "users": { + "type": "long" + }, + "via_ferrata_rating": { + "type": "integer" + }, + "waypoints": { + "type": "long" + }, + "title_sl": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "slovene_heavy" + } + } + }, + "title_zh": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "chinois_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson6-7/r.json b/scripts/esjson6-7/r.json new file mode 100644 index 000000000..738fc0c95 --- /dev/null +++ b/scripts/esjson6-7/r.json @@ -0,0 +1,407 @@ +{ + "properties": { + "activities": { + "type": "text", + "index": true + }, + "aid_rating": { + "type": "integer" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": true + }, + "climbing_outdoor_type": { + "type": "text", + "index": true + }, + "configuration": { + "type": "text", + "index": true + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "difficulties_height": { + "type": "integer" + }, + "doc_type": { + "type": "text", + "index": false + }, + "durations": { + "type": "integer" + }, + "elevation_max": { + "type": "integer" + }, + "elevation_min": { + "type": "integer" + }, + "engagement_rating": { + "type": "integer" + }, + "equipment_rating": { + "type": "integer" + }, + "exposition_rock_rating": { + "type": "integer" + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "glacier_gear": { + "type": "text", + "index": true + }, + "global_rating": { + "type": "integer" + }, + "height_diff_access": { + "type": "integer" + }, + "height_diff_difficulties": { + "type": "integer" + }, + "height_diff_down": { + "type": "integer" + }, + "height_diff_up": { + "type": "integer" + }, + "hiking_mtb_exposition": { + "type": "integer" + }, + "hiking_rating": { + "type": "integer" + }, + "ice_rating": { + "type": "integer" + }, + "id": { + "type": "long", + "index": true + }, + "labande_global_rating": { + "type": "integer" + }, + "labande_ski_rating": { + "type": "integer" + }, + "mixed_rating": { + "type": "integer" + }, + "mtb_down_rating": { + "type": "integer" + }, + "mtb_height_diff_portages": { + "type": "integer" + }, + "mtb_length_asphalt": { + "type": "integer" + }, + "mtb_length_trail": { + "type": "integer" + }, + "mtb_up_rating": { + "type": "integer" + }, + "orientations": { + "type": "text", + "index": true + }, + "quality": { + "type": "integer" + }, + "risk_rating": { + "type": "integer" + }, + "rock_free_rating": { + "type": "integer" + }, + "rock_required_rating": { + "type": "integer" + }, + "rock_types": { + "type": "text", + "index": true + }, + "route_length": { + "type": "integer" + }, + "route_types": { + "type": "text", + "index": true + }, + "ski_exposition": { + "type": "integer" + }, + "ski_rating": { + "type": "integer" + }, + "slackline_type": { + "type": "text", + "index": true + }, + "snowshoe_rating": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "via_ferrata_rating": { + "type": "integer" + }, + "waypoints": { + "type": "long" + }, + "title_sl": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "slovene_heavy" + } + } + }, + "title_zh": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "chinois_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson6-7/settings.json b/scripts/esjson6-7/settings.json new file mode 100644 index 000000000..ff95e3ef8 --- /dev/null +++ b/scripts/esjson6-7/settings.json @@ -0,0 +1,378 @@ +{ + "analysis": { + "filter": { + "autocomplete_filter": { + "type": "edge_ngram", + "min_gram": "2", + "max_gram": "15", + "token_chars": [ + "letter", + "digit" + ] + }, + "english_stop": { + "type": "stop", + "stopwords": "_english_" + }, + "english_stemmer": { + "type": "stemmer", + "language": "english" + }, + "english_possessive_stemmer": { + "type": "stemmer", + "language": "possessive_english" + }, + "french_elision": { + "type": "elision", + "articles_case": true, + "articles": [ + "l", "m", "t", "qu", "n", "s", + "j", "d", "c", "jusqu", "quoiqu", + "lorsqu", "puisqu" + ] + }, + "french_stop": { + "type": "stop", + "stopwords": "_french_" + }, + "french_stemmer": { + "type": "stemmer", + "language": "light_french" + }, + "german_stop": { + "type": "stop", + "stopwords": "_german_" + }, + "german_stemmer": { + "type": "stemmer", + "language": "light_german" + }, + "italian_elision": { + "type": "elision", + "articles_case": true, + "articles": [ + "c", "l", "all", "dall", "dell", + "nell", "sull", "coll", "pell", + "gl", "agl", "dagl", "degl", "negl", + "sugl", "un", "m", "t", "s", "v", "d" + ] + }, + "italian_stop": { + "type": "stop", + "stopwords": "_italian_" + }, + "italian_stemmer": { + "type": "stemmer", + "language": "light_italian" + }, + "spanish_stop": { + "type": "stop", + "stopwords": "_spanish_" + }, + "spanish_stemmer": { + "type": "stemmer", + "language": "light_spanish" + }, + "catalan_elision": { + "type": "elision", + "articles_case": true, + "articles": ["d", "l", "m", "n", "s", "t"] + }, + "catalan_stop": { + "type": "stop", + "stopwords": "_catalan_" + }, + "catalan_stemmer": { + "type": "stemmer", + "language": "catalan" + }, + "basque_stop": { + "type": "stop", + "stopwords": "_basque_" + }, + "basque_stemmer": { + "type": "stemmer", + "language": "basque" + } + }, + "similarity": { + "c2corgsimilarity": { + "type": "BM25" + } + }, + "char_filter": { + "punctuationgreedy": { + "type": "pattern_replace", + "pattern": "[\\.,]" + } + }, + "analyzer": { + "index_ngram": { + "char_filter": ["punctuationgreedy"], + "filter": [ + "word_delimiter", "lowercase", "icu_folding", + "autocomplete_filter"], + "tokenizer": "icu_tokenizer" + }, + "search_ngram": { + "char_filter": ["punctuationgreedy"], + "filter": [ + "word_delimiter", "lowercase", "asciifolding", "unique"], + "tokenizer": "standard" + }, + "index_raw": { + "char_filter": ["punctuationgreedy"], + "filter": [ + "word_delimiter", "lowercase", "asciifolding", "unique"], + "tokenizer": "standard" + }, + "search_raw": { + "char_filter": ["punctuationgreedy"], + "filter": [ + "word_delimiter", "lowercase", "asciifolding", "unique"], + "tokenizer": "standard" + }, + "index_english": { + "type": "custom", + "tokenizer": "standard", + "filter": [ + "english_possessive_stemmer", + "lowercase", + "english_stop", + "english_stemmer", + "autocomplete_filter" + ] + }, + "search_english": { + "type": "custom", + "tokenizer": "standard", + "filter": [ + "english_possessive_stemmer", + "lowercase", + "english_stop", + "english_stemmer" + ] + }, + "index_french": { + "tokenizer": "standard", + "filter": [ + "french_elision", + "lowercase", + "french_stop", + "french_stemmer", + "autocomplete_filter" + ] + }, + "search_french": { + "tokenizer": "standard", + "filter": [ + "french_elision", + "lowercase", + "french_stop", + "french_stemmer", + "autocomplete_filter" + ] + }, + "index_german": { + "tokenizer": "standard", + "filter": [ + "lowercase", + "german_stop", + "german_normalization", + "german_stemmer", + "autocomplete_filter" + ] + }, + "search_german": { + "tokenizer": "standard", + "filter": [ + "lowercase", + "german_stop", + "german_normalization", + "german_stemmer" + ] + }, + "index_italian": { + "tokenizer": "standard", + "filter": [ + "italian_elision", + "lowercase", + "italian_stop", + "italian_stemmer", + "autocomplete_filter" + ] + }, + "search_italian": { + "tokenizer": "standard", + "filter": [ + "italian_elision", + "lowercase", + "italian_stop", + "italian_stemmer" + ] + }, + "index_spanish": { + "tokenizer": "standard", + "filter": [ + "lowercase", + "spanish_stop", + "spanish_stemmer", + "autocomplete_filter" + ] + }, + "search_spanish": { + "tokenizer": "standard", + "filter": [ + "lowercase", + "spanish_stop", + "spanish_stemmer" + ] + }, + "index_catalan": { + "tokenizer": "standard", + "filter": [ + "catalan_elision", + "lowercase", + "catalan_stop", + "catalan_stemmer", + "autocomplete_filter" + ] + }, + "search_catalan": { + "tokenizer": "standard", + "filter": [ + "catalan_elision", + "lowercase", + "catalan_stop", + "catalan_stemmer" + ] + }, + "index_basque": { + "tokenizer": "standard", + "filter": [ + "lowercase", + "basque_stop", + "basque_stemmer", + "autocomplete_filter" + ] + }, + "search_basque": { + "tokenizer": "standard", + "filter": [ + "lowercase", + "basque_stop", + "basque_stemmer" + ] + }, + "french_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "french_elision", + "french_stop", + "icu_folding", + "lowercase", + "french_stemmer" + ] + }, + "german_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "german_stop", + "german_stemmer", + "lowercase", + "icu_folding" + ] + }, + "english_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "english_possessive_stemmer", + "english_stop", + "lowercase", + "icu_folding" + ] + }, + "italian_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "italian_elision", + "italian_stop", + "lowercase", + "icu_folding", + "italian_stemmer" + ] + }, + "spanish_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "lowercase", + "spanish_stop", + "spanish_stemmer", + "icu_folding" + ] + }, + "catalan_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "catalan_elision", + "lowercase", + "catalan_stop", + "catalan_stemmer", + "icu_folding" + ] + }, + "basque_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "lowercase", + "basque_stop", + "basque_stemmer", + "icu_folding" + ] + }, + "index_slovene": { + "type": "custom", + "tokenizer": "standard", + "filter": [ + "autocomplete_filter", + "lowercase" + ] + }, + "search_slovene": { + "type": "custom", + "tokenizer": "standard", + "filter": [ + "lowercase" + ] + }, + "slovene_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "lowercase", + "icu_folding" + ] + }, + "index_chinois": { + "type": "custom", + "tokenizer": "standard", + "filter": [ + "autocomplete_filter" + ] + }, + "search_chinois": { + "type": "custom", + "tokenizer": "standard", + "filter": [ + "lowercase" + ] + }, + "chinois_heavy": { + "tokenizer": "icu_tokenizer", + "filter": [ + "lowercase", + "icu_folding" + ] + } + } + } +} \ No newline at end of file diff --git a/scripts/esjson6-7/u.json b/scripts/esjson6-7/u.json new file mode 100644 index 000000000..e776af0da --- /dev/null +++ b/scripts/esjson6-7/u.json @@ -0,0 +1,276 @@ +{ + "properties": { + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": true + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "id": { + "type": "long", + "index": true + }, + "quality": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "title_sl": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "slovene_heavy" + } + } + }, + "title_zh": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "chinois_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson6-7/w.json b/scripts/esjson6-7/w.json new file mode 100644 index 000000000..640450b38 --- /dev/null +++ b/scripts/esjson6-7/w.json @@ -0,0 +1,387 @@ +{ + "properties": { + "access_time": { + "type": "integer" + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": true + }, + "best_periods": { + "type": "text", + "index": true + }, + "capacity": { + "type": "integer" + }, + "capacity_staffed": { + "type": "integer" + }, + "children_proof": { + "type": "text", + "index": true + }, + "climbing_indoor_types": { + "type": "text", + "index": true + }, + "climbing_outdoor_types": { + "type": "text", + "index": true + }, + "climbing_rating_max": { + "type": "integer" + }, + "climbing_rating_median": { + "type": "integer" + }, + "climbing_rating_min": { + "type": "integer" + }, + "climbing_styles": { + "type": "text", + "index": true + }, + "custodianship": { + "type": "text", + "index": true + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "elevation": { + "type": "integer" + }, + "equipment_ratings": { + "type": "integer" + }, + "exposition_rating": { + "type": "integer" + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "height_max": { + "type": "integer" + }, + "height_median": { + "type": "integer" + }, + "height_min": { + "type": "integer" + }, + "id": { + "type": "long", + "index": true + }, + "length": { + "type": "integer" + }, + "lift_access": { + "type": "boolean" + }, + "orientations": { + "type": "text", + "index": true + }, + "paragliding_rating": { + "type": "integer" + }, + "product_types": { + "type": "text", + "index": true + }, + "prominence": { + "type": "integer" + }, + "public_transportation_rating": { + "type": "text", + "index": true + }, + "public_transportation_types": { + "type": "text", + "index": true + }, + "quality": { + "type": "integer" + }, + "rain_proof": { + "type": "text", + "index": true + }, + "rock_types": { + "type": "text", + "index": true + }, + "routes_quantity": { + "type": "integer" + }, + "snow_clearance_rating": { + "type": "text", + "index": true + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "waypoint_type": { + "type": "text", + "index": true + }, + "weather_station_types": { + "type": "text", + "index": true + }, + "title_sl": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "slovene_heavy" + } + } + }, + "title_zh": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "chinois_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/esjson6-7/x.json b/scripts/esjson6-7/x.json new file mode 100644 index 000000000..7f7ffc5d8 --- /dev/null +++ b/scripts/esjson6-7/x.json @@ -0,0 +1,306 @@ +{ + "properties": { + "activities": { + "type": "text", + "index": true + }, + "areas": { + "type": "long" + }, + "available_locales": { + "type": "text", + "index": true + }, + "avalanche_level": { + "type": "integer" + }, + "avalanche_slope": { + "type": "integer" + }, + "date": { + "type": "date", + "format": "strict_date_optional_time||epoch_millis" + }, + "description_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "description_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "description_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "description_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "description_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "description_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "description_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "doc_type": { + "type": "text", + "index": false + }, + "elevation": { + "type": "integer" + }, + "event_type": { + "type": "text", + "index": true + }, + "geom": { + "type": "geo_point", + "ignore_malformed": true + }, + "id": { + "type": "long", + "index": true + }, + "nb_impacted": { + "type": "integer" + }, + "nb_participants": { + "type": "integer" + }, + "quality": { + "type": "integer" + }, + "severity": { + "type": "integer" + }, + "summary_ca": { + "type": "text", + "analyzer": "index_catalan", + "search_analyzer": "search_catalan" + }, + "summary_de": { + "type": "text", + "analyzer": "index_german", + "search_analyzer": "search_german" + }, + "summary_en": { + "type": "text", + "analyzer": "index_english", + "search_analyzer": "search_english" + }, + "summary_es": { + "type": "text", + "analyzer": "index_spanish", + "search_analyzer": "search_spanish" + }, + "summary_eu": { + "type": "text", + "analyzer": "index_basque", + "search_analyzer": "search_basque" + }, + "summary_fr": { + "type": "text", + "analyzer": "index_french", + "search_analyzer": "search_french" + }, + "summary_it": { + "type": "text", + "analyzer": "index_italian", + "search_analyzer": "search_italian" + }, + "title_ca": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "catalan_heavy" + } + } + }, + "title_de": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "german_heavy" + } + } + }, + "title_en": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "english_heavy" + } + } + }, + "title_es": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "spanish_heavy" + } + } + }, + "title_eu": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "basque_heavy" + } + } + }, + "title_fr": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "french_heavy" + } + } + }, + "title_it": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "italian_heavy" + } + } + }, + "title_sl": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "slovene_heavy" + } + } + }, + "title_zh": { + "type": "text", + "index": false, + "fields": { + "ngram": { + "type": "text", + "analyzer": "index_ngram", + "search_analyzer": "search_ngram" + }, + "raw": { + "type": "text", + "analyzer": "index_raw", + "search_analyzer": "search_raw" + }, + "contentheavy": { + "type": "text", + "analyzer": "chinois_heavy" + } + } + } + } + } \ No newline at end of file diff --git a/scripts/pycurl-example.py b/scripts/pycurl-example.py new file mode 100755 index 000000000..82a0ed5dc --- /dev/null +++ b/scripts/pycurl-example.py @@ -0,0 +1,32 @@ +#!/usr/bin/python3 +# from urllib.parse import urlencode + +import pycurl +from io import BytesIO + +#curl -X PUT -H "Content-Type: application/json" -d @./scripts/esjson5-6/a.json http://192.168.1.120:9203/c2corg_a/_mapping/_doc + +f = open("./scripts/esjson5-6/a.json") +post_data = f.read() + +buffer = BytesIO() +c = pycurl.Curl() +c.setopt(c.URL, 'http://127.0.0.1:9200/c2corg_tests_a/_mapping') +header = ['Content-Type: application/json'] +c.setopt(c.HTTPHEADER, header) +c.setopt(c.CUSTOMREQUEST, 'PUT') +# Form data must be provided already urlencoded. +# Sets request method to POST, +# Content-Type header to application/x-www-form-urlencoded +# and data to send in request body. +c.setopt(c.USERPWD, 'elastic:elastic2024') +c.setopt(c.POSTFIELDS, post_data) +c.setopt(c.WRITEDATA, buffer) +c.perform() +c.close() + +body = buffer.getvalue() +# Body is a byte string. +# We have to know the encoding in order to print it to a text file +# such as standard output. +print(body.decode('iso-8859-1')) diff --git a/test.ini.in b/test.ini.in index cdb418e81..530151667 100644 --- a/test.ini.in +++ b/test.ini.in @@ -10,6 +10,10 @@ jwt.private_key = {jwt_secret_key} elasticsearch.host = {tests_elasticsearch_host} elasticsearch.port = {tests_elasticsearch_port} elasticsearch.index = {tests_elasticsearch_index} +elasticsearch.scheme = {tests_elasticsearch_scheme} +elasticsearch.user = {tests_elasticsearch_user} +elasticsearch.passwd = {tests_elasticsearch_passwd} + redis.url = {redis_url} redis.cache_key_prefix = {redis_cache_key_prefix}_tests cache_version_timestamp = True