Help us improve
Share bugs, ideas, or general feedback.
Migrates Apache Solr collections to OpenSearch indexes: translates Solr XML/JSON schemas to OpenSearch mappings, converts Solr syntax (Standard, DisMax, eDisMax) to OpenSearch DSL, sizes nodes/shards/heap, and advises on authentication migration. Integrates with AWS Knowledge MCP Server for up-to-date OpenSearch and AWS info.
npx claudepluginhub opensearch-project/opensearch-agent-skillsHow this skill is triggered — by the user, by Claude, or both
Slash command
/opensearch-agent-skills:solr-opensearch-migration-advisorThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
An agent skill for migrating from Apache Solr to OpenSearch. This skill provides
README.mdpyproject.tomlreferences/01-schema-migration.mdreferences/02-query-translation.mdreferences/03-analysis-pipelines.mdreferences/03b-synonyms-and-language.mdreferences/04-architecture.mdreferences/05-legacy-features.mdreferences/05b-legacy-features-continued.mdreferences/06-feature-compatibility-matrix.mdreferences/07-solrconfig-migration.mdreferences/08-query-behavior-edge-cases.mdreferences/09-sizing-and-performance.mdscripts/__init__.pyscripts/query_converter.pyscripts/report.pyscripts/schema_converter.pyscripts/skill.pyscripts/storage.pysetup/docker/claude/DockerfileBuilds search applications and queries log analytics data with OpenSearch. Covers index setup, semantic/vector search, log ingestion, trace analysis, and AWS deployment.
Guides migrating search from Elasticsearch, Typesense, or Meilisearch to Algolia with data sync, TypeScript adapters, replaceAllObjects swaps, and strangler fig traffic shifting.
Interact with Elasticsearch and Kibana via curl REST API for querying (Query DSL), indexing, CRUD, index management, mappings, aggregations, cluster health, ILM, ES|QL, dashboards, OpenTelemetry patterns, and troubleshooting.
Share bugs, ideas, or general feedback.
An agent skill for migrating from Apache Solr to OpenSearch. This skill provides a transport-agnostic migration advisor that can reason about Solr query behavior, configuration, and cluster architecture.
Use this skill when:
schema.xml or Solr Schema API JSON document and needs an
equivalent OpenSearch index mapping.Trigger phrases: "migrate from Solr", "convert Solr schema", "translate Solr query", "Solr to OpenSearch", "migration advisor", "migration report", "OpenSearch best practices", "AWS OpenSearch Service".
This skill integrates with the AWS Knowledge MCP Server
(https://knowledge-mcp.global.api.aws) to provide accurate, up-to-date information about:
The integration is used automatically when users ask OpenSearch or AWS-specific questions. Two dedicated MCP tools are also exposed:
aws_knowledge_search(query, topic) — search AWS docs for any AWS/OpenSearch topicaws_opensearch_regional_availability(region) — check OpenSearch Service regional availabilityNo AWS account or authentication is required to use the AWS Knowledge MCP Server.
Walk the user through each step in order. Do not skip ahead — complete each step before moving to the next.
Before diving into the migration, identify who you are working with so you can tailor the depth and focus of your guidance throughout the conversation.
Prompt the user with:
"Welcome to the Solr to OpenSearch Migration Advisor. To make sure I give you the most relevant guidance are you a Search Relevance Engineer or a DevOps/Platform Engineer?"
Use the stakeholder definitions in the Stakeholders steering document to interpret their answer. If the user describes a role that doesn't map cleanly to one of the defined roles, pick the closest match and confirm it with them.
Once the role is identified:
facts.stakeholder_role.Move to Step 1.
Ask the user which version of Apache Solr they are migrating from:
"Which version of Apache Solr are you migrating from? (e.g. 6.6, 7.7, 8.11, 9.4)"
Accept any valid Apache Solr version number (major, major.minor, or major.minor.patch). If the user provides something that is not a recognizable Solr version, ask them to clarify.
Once confirmed:
facts.solr_version.TrieIntField, TrieLongField, etc.) are still in common use; flag that these have no direct OpenSearch equivalent and will need to be mapped to Point field equivalents.Move to Step 2.
Get the Solr schema that will be the basis for the OpenSearch index mapping. There are two paths:
schema.xml or the JSON response from the Solr Schema API (GET /solr/<collection>/schema). Call convert_schema_xml or convert_schema_json accordingly and show the resulting OpenSearch mapping.Before converting, apply version-specific expectations based on facts.solr_version:
schema.xml format (Managed Schema may not be in use); Trie field types will almost certainly be present; classic similarity (TF-IDF) is the default.schema.xml is less common but still valid.Once a mapping is agreed upon, save it to the session.
Optional — Create the index in OpenSearch: After presenting the mapping, ask the user:
"Would you like me to create this index in OpenSearch now?"
Only call create_opensearch_index if the user explicitly agrees. Pass the agreed-upon index name and the mapping JSON. If the user declines or does not respond affirmatively, skip this step and move on. Inform the user that OPENSEARCH_URL, OPENSEARCH_USER, and OPENSEARCH_PASSWORD environment variables can be set to point to their cluster (defaults to http://localhost:9200).
Stakeholder guidance:
Move to Step 3.
This step is the primary incompatibility gate. Treat every finding as a potential blocker and be thorough — missed incompatibilities discovered late in a migration are expensive to fix.
Systematically check the converted mapping against every category in the Incompatibility Reference section below. For each issue found:
facts.incompatibilities as a list of objects with keys category, severity, description, and recommendation.Specific checks to perform on the schema:
<copyField> directive; explain replacement with copy_to on the source field definition.solr.ICUCollationField, solr.EnumField, solr.ExternalFileField, solr.PreAnalyzedField, and solr.SortableTextField as unsupported or requiring manual workarounds.<analyzer>, <tokenizer>, or <filter> referencing a non-standard class. Check whether an equivalent exists in OpenSearch's built-in analysis chain; flag those that do not.dynamic_templates match on field name patterns or data types, not Solr's glob syntax; verify the converted templates preserve the intended behavior._source document. Fields marked stored="true" but indexed="false" in Solr may behave differently under _source filtering.docValues="true" for sorting/faceting on most field types; in OpenSearch, doc_values is enabled by default for most types. Flag any field where the Solr schema explicitly disables docValues, as the OpenSearch default may change behavior.{!parent}, {!child}) has no direct equivalent; flag and recommend OpenSearch nested objects or join field type.TrieIntField and TrieLongField, etc. have no direct equivalent in OpenSearch. For these fields, map them to the closest OpenSearch equivalent. Include in the response these fields are not compatible and the closest field type has been chosen. Include this in the migration report.facts.solr_version is 6.x or earlier, flag the scoring model change as a Behavioral incompatibility — relevance scores will differ in OpenSearch even without any other changes. _version_ field to the OpenSearch index mapping.Present all findings as a prioritized list: Breaking first, then Behavioral, then Unsupported. If no incompatibilities are found, state that explicitly so the user has confidence to proceed.
Stakeholder guidance:
Ask the user for representative Solr queries — at minimum one of each type they use in production (standard, dismax/edismax, facet, range, spatial if applicable). For each query:
convert_query and show the OpenSearch Query DSL equivalent.facts.incompatibilities with category: "query" before moving on.Known query incompatibilities to check for:
Apply version-specific awareness: if
facts.solr_versionis 6.x or earlier, Streaming Expressions and the Graph query parser may not be present at all — skip those checks and note the version. eDisMax was available from Solr 3.x but matured significantly in 4.x–6.x; flag any eDisMax-specific parameters accordingly. If 7.x+, all items in the table below are relevant.
| Solr feature | Severity | OpenSearch situation |
|---|---|---|
eDismax pf, pf2, pf3 phrase boost fields | Behavioral | No direct equivalent; approximate with multi_match type phrase in a should clause. |
eDismax bq / bf additive boost | Behavioral | Use function_score or script_score; additive vs. multiplicative semantics differ. |
{!join} cross-collection join | Breaking | Not supported; restructure as nested documents or application-side join. |
{!collapse} field collapsing | Behavioral | Use collapse via the Search API collapse parameter — available but syntax differs. |
| Solr Streaming Expressions | Unsupported | No equivalent; move aggregation logic to the application layer or use OpenSearch aggregations. |
{!graph} graph traversal | Unsupported | No equivalent in OpenSearch. |
Spatial {!geofilt} / {!bbox} | Behavioral | Use geo_distance / geo_bounding_box queries; parameter names differ. |
MoreLikeThis handler | Behavioral | Use more_like_this query; mindf, mintf parameter names differ slightly. |
| Facet pivots | Behavioral | Use nested terms aggregations; result shape differs. |
cursorMark deep pagination | Behavioral | Use search_after in OpenSearch; semantics are similar but not identical. |
| Solr relevance TF-IDF (classic) | Behavioral | OpenSearch defaults to BM25; scores will differ. Configurable via similarity setting. |
Stakeholder guidance:
similarity settings if needed.Ask the user whether they rely on any Solr-specific customizations. Use this prompt:
"Before we look at infrastructure, I'd like to understand any Solr customizations you're using. Do any of the following apply to your deployment? Please describe what you have for each that's relevant:"
Apply version-specific awareness when interpreting the user's answers:
Solr 6.x and earlier — the security model is minimal (Basic Auth plugin was added in 5.3; Rule-Based Authorization in 6.0). If the user is on 6.x, ask explicitly whether they have any security configured, as it may be absent entirely.
Solr 7.x — the security framework is stable; PKI auth and the Authorization plugin are well-established.
Solr 8.x / 9.x — JWT authentication and more granular permission models are available; ask whether they use any of these newer security features.
Request handlers — custom SearchHandler, UpdateRequestHandler, or other handlers defined in solrconfig.xml.
Plugins — custom QParserPlugin, SearchComponent, TokenFilterFactory, UpdateRequestProcessorChain, or other plugin types.
Authentication & authorization — Basic Auth, Kerberos, PKI, Rule-Based Authorization Plugin, or a custom security plugin.
Operational constraints — specific SLA requirements, air-gapped environments, compliance requirements (e.g. FIPS, FedRAMP), multi-tenancy needs, or read/write traffic isolation.
For each item the user provides, give a concrete OpenSearch equivalent or migration path:
| Solr customization | OpenSearch equivalent / approach |
|---|---|
Custom SearchHandler | Use the Search API with a custom request body; complex handler logic moves to the application layer or an ingest pipeline. |
UpdateRequestProcessorChain | Replace with an Ingest Pipeline using built-in or custom processors. |
Custom QParserPlugin | Implement equivalent logic in Query DSL (e.g. function_score, script_score, percolate) or a search pipeline. |
Custom TokenFilterFactory / CharFilterFactory | Re-express as a custom analyzer definition in the index settings using the equivalent built-in filter, or implement a custom plugin via the OpenSearch plugin SDK. |
| Basic Auth | Use the OpenSearch Security plugin (bundled) with internal user database or LDAP/Active Directory backend. |
| Kerberos | OpenSearch Security supports Kerberos via the kerberos authentication domain. |
| PKI / mutual TLS | Configure node-to-node and client TLS in opensearch.yml; the Security plugin handles certificate-based auth. |
| Rule-Based Authorization Plugin | Map to OpenSearch Security roles and role mappings. |
| Air-gapped / offline deployment | OpenSearch supports fully offline installation; use the tarball or RPM/DEB packages and mirror the plugin registry internally. |
| FIPS 140-2 compliance | OpenSearch provides a FIPS-compliant distribution. |
| Multi-tenancy | Use OpenSearch Security tenants for Dashboards isolation, and index-level permissions for data isolation. |
| Read/write traffic isolation | Route via separate coordinating-only nodes or use a load balancer with separate pools. |
If the user mentions a customization not in the table above, reason about the closest OpenSearch equivalent and flag it as a manual migration item.
Store all identified customizations and their OpenSearch mappings in the session under facts.customizations so they are included in the migration report.
Stakeholder guidance:
Ask the user about their current deployment topology:
Apply version-specific awareness when assessing the topology:
Use the sizing steering document to provide OpenSearch cluster sizing recommendations (node count, instance types, shard strategy).
Stakeholder guidance:
Ask the user what client-side code talks to Solr today. Use these prompts:
/select, /update, or admin endpoints?"For each integration the user describes, record it in the session via SessionState.add_client_integration with:
| Field | What to capture |
|---|---|
name | The library, framework, or component name (e.g. "SolrJ", "pysolr", "React Search UI") |
kind | One of: library, ui, http, other |
notes | How it is currently used (endpoints called, features relied on) |
migration_action | The concrete change required for OpenSearch |
Use the table below to guide the migration action for common integrations:
| Solr client / UI | Kind | Migration action |
|---|---|---|
| SolrJ | library | Replace with opensearch-java; update endpoint URLs and request/response models. |
| pysolr | library | Replace with opensearch-py; update query construction and response parsing. |
| solr-ruby / rsolr | library | Replace with opensearch-ruby. |
| Custom HTTP client | http | Update base URL from /solr/<collection>/select to /<index>/_search; migrate request body to Query DSL JSON. |
| Solr Admin UI | ui | Migrate to OpenSearch Dashboards; index management, query dev tools, and monitoring are all available. |
| Velocity / Solr response writer templates | ui | Remove; OpenSearch returns JSON natively — render in the application layer. |
| React/Vue/Angular with Solr-specific widgets | ui | Replace Solr-specific components with OpenSearch-compatible equivalents or generic REST-based components. |
| Solr SolrJ CloudSolrClient (SolrCloud) | library | Replace with OpenSearch client pointed at the cluster load balancer; no ZooKeeper dependency. |
If the user describes an integration not in the table, reason about the endpoint and request/response shape changes needed and provide a concrete before/after example.
Identify any authentication changes required (e.g. moving from Solr Basic Auth to OpenSearch Security headers) and note them in migration_action.
Stakeholder guidance:
Call generate_report to produce the final report. The report must cover:
facts.solr_version prominently at the top of the report so all findings are clearly scoped to the specific Solr version being migrated.facts.incompatibilities across all steps, grouped by severity: Breaking → Unsupported → Behavioral. Each entry must include the category, description, and recommended resolution. Breaking and Unsupported items are also surfaced as explicit blockers.ClientIntegration recorded in Step 7, grouped by kind (libraries, UI, HTTP clients). Each entry shows the current usage and the concrete migration action required. If no integrations were recorded, state that explicitly.Present the report to the user and offer to drill into any section.
Stakeholder guidance — tailor the report structure and emphasis:
Migration plans can span weeks or months, and conversations may be restarted many times. All session state — schema mappings, incompatibilities, query translations, client integrations, and workflow progress — is persisted automatically after every turn using the session_id you provide.
In addition to the JSON session state, maintain a human-readable Markdown file at sessions/<session_id>.md. This file is the user's living record of their migration journey — update it at the end of every step so it always reflects the current state of the migration.
Update sessions/<session_id>.md after every step completes. Do not wait until the end of the migration. Each update should reflect only what is known at that point — do not leave placeholder sections for steps not yet reached.
The file must always contain the following sections, updated in place as the migration progresses:
# Solr to OpenSearch Migration — <session_id>
**Stakeholder role:** <role>
**Solr version:** <version, or "not yet provided">
**Current step:** <step number and name>
**Last updated:** <date of last update>
---
## Progress
| Step | Name | Status |
|---|---|---|
| 0 | Stakeholder Identification | ✅ Complete / 🔄 In Progress / ⬜ Not Started |
| 1 | Solr Version | ... |
| 2 | Schema Acquisition | ... |
| 3 | Schema Review & Incompatibility Analysis | ... |
| 4 | Query Translation | ... |
| 5 | Solr Customizations | ... |
| 6 | Cluster & Infrastructure Assessment | ... |
| 7 | Client & Front-end Integration | ... |
| 8 | Migration Report | ... |
---
## Key Facts
- **Solr version:** <value from facts.solr_version>
- **Stakeholder role:** <value from facts.stakeholder_role>
- **Index name:** <agreed index name, if known>
- **Schema migrated:** <yes / no / in progress>
- **Customizations identified:** <list or "none identified yet">
---
## Incompatibilities
<If none found yet, write "No incompatibilities identified yet.">
| Severity | Category | Description | Recommendation |
|---|---|---|---|
| Breaking | ... | ... | ... |
| Behavioral | ... | ... | ... |
| Unsupported | ... | ... | ... |
---
## Client Integrations
<If none recorded yet, write "No client integrations recorded yet.">
| Name | Kind | Current Usage | Migration Action |
|---|---|---|---|
| ... | ... | ... | ... |
---
## Notes
<Free-form notes added during the session — decisions made, open questions, user preferences, anything worth remembering across restarts.>
facts.incompatibilities — do not batch them until the report.SessionState.add_client_integration.When starting a new conversation, pass the same session_id you used previously:
# Resume an existing session — all prior context is restored automatically
response = skill.handle_message("Let's continue the migration", session_id="my-project-migration")
Via MCP:
{ "tool": "handle_message", "arguments": { "message": "Let's continue", "session_id": "my-project-migration" } }
The advisor will reload the full SessionState (history, facts, progress, incompatibilities, client integrations) and pick up exactly where you left off. The Markdown progress file at sessions/<session_id>.md will also be updated to reflect the resumed state.
Use a stable, meaningful identifier tied to your project — not a random UUID — so it is easy to recall across restarts:
acme-solr-migrationprojectname-prod-clusterteam-search-migration-2025from scripts.storage import FileStorage
storage = FileStorage("sessions")
# List all saved sessions
print(storage.list_sessions())
# Inspect a specific session
state = storage.load("my-project-migration")
print(f"Progress: Step {state.progress}")
print(f"Incompatibilities found: {len(state.incompatibilities)}")
print(f"Facts: {state.facts}")
With the default FileStorage backend, each session produces two files:
sessions/<session_id>.json — machine-readable JSON containing the full conversation history, all discovered facts, incompatibilities, client integrations, and progress. Used by the skill for session resumption.sessions/<session_id>.md — human-readable Markdown progress file. Updated after every step. Safe to share with colleagues, attach to tickets, or check into version control. See the Migration Progress File section above for the full format.To reset a session and start over:
storage.delete("my-project-migration")
Or simply use a new session_id.
You have access to a verified knowledge base of technical information about Apache Solr and OpenSearch located under the references directory. Consult these files proactively — do not wait for the user to ask. Use the table below to select the most relevant file(s) for the current topic, then cite the specific section you drew from.
| File | Content Summary | Use When… |
|---|---|---|
references/01-schema-migration.md | Field type mappings, schema.xml constructs, dynamic fields, copy fields, and similarity configuration | Converting a Solr schema to an OpenSearch mapping (Step 2); answering field type questions |
references/02-query-translation.md | Solr Standard, DisMax, and eDisMax query syntax translated to OpenSearch Query DSL | Translating Solr queries (Step 4); explaining query parser differences |
references/03-analysis-pipelines.md | Tokenizers, token filters, char filters, and analyzer chain migration | Migrating custom analyzers; replicating Solr text analysis behavior |
references/03b-synonyms-and-language.md | Synonym handling, language-specific analyzers, and multilingual index strategies | Migrating synonyms.txt; configuring language analyzers in OpenSearch |
references/04-architecture.md | SolrCloud vs. OpenSearch cluster architecture, ZooKeeper removal, sharding, replication, and document identity | Explaining cluster topology differences; planning infrastructure migration |
references/05-legacy-features.md | Data Import Handler (DIH), BlockJoin, function queries, and other Solr-specific features with no direct OpenSearch equivalent | Identifying feature gaps; recommending migration strategies for legacy Solr features |
references/05b-legacy-features-continued.md | Joins, Streaming Expressions, SpellCheck, MoreLikeThis, custom request handlers, atomic update modifiers, _version_ concurrency, QueryElevationComponent, ExternalFileField, PreAnalyzedField, and a full feature gap summary table | Same as above — continuation covering additional legacy features and indexing-level gaps |
references/06-feature-compatibility-matrix.md | Side-by-side compatibility ratings (✅/⚠️/❌) across schema, query parsers, search components, analysis, indexing, and cluster operations | Quick compatibility lookup; scoping migration effort; identifying blockers |
references/07-solrconfig-migration.md | solrconfig.xml constructs (request handlers, caches, update settings, merge policy, similarity) mapped to OpenSearch equivalents | Migrating solrconfig.xml; configuring OpenSearch index and node settings |
references/08-query-behavior-edge-cases.md | Known behavioral differences between Solr query parsers and OpenSearch Query DSL: default operator, fuzzy scale, date math, scoring, highlighting, sorting, deep pagination, Solr-only query parsers ({!complexphrase}, {!surround}, {!graph}, {!switch}, {!rerank}) with no OpenSearch equivalent | Debugging query result differences; validating query parity after migration; identifying unsupported query parsers |
references/09-sizing-and-performance.md | Node roles, shard sizing formulas, JVM/heap tuning, bulk indexing settings, cache configuration, hardware recommendations, and monitoring metrics | Sizing a new OpenSearch cluster; performance tuning; capacity planning (Step 3 / DevOps stakeholder) |
references/06-feature-compatibility-matrix.md, section 3 — Query Parsers").01-schema-migration.md (field types) and 03-analysis-pipelines.md (analyzer chains).04-architecture.md, 09-sizing-and-performance.md, and 07-solrconfig-migration.md. For a Search Relevance Engineer, prioritize 01-schema-migration.md, 02-query-translation.md, 03-analysis-pipelines.md, and 08-query-behavior-edge-cases.md.#[[file:references/01-schema-migration.md]] #[[file:references/02-query-translation.md]] #[[file:references/03-analysis-pipelines.md]] #[[file:references/03b-synonyms-and-language.md]] #[[file:references/04-architecture.md]] #[[file:references/05-legacy-features.md]] #[[file:references/05b-legacy-features-continued.md]] #[[file:references/06-feature-compatibility-matrix.md]] #[[file:references/07-solrconfig-migration.md]] #[[file:references/08-query-behavior-edge-cases.md]] #[[file:references/09-sizing-and-performance.md]]
session_id. Every call loads the full SessionState (history, facts, progress, incompatibilities) and saves it back before returning — sessions are fully resumable across restarts.facts.solr_version throughout every step. Once the Solr version is known, apply version-specific checks, flag version-specific incompatibilities, and tailor all recommendations accordingly. Never give generic advice when a version-specific answer is more accurate.facts.incompatibilities (via SessionState.add_incompatibility) before moving on. Never silently skip a known issue.references/ file, name the file and section inline — e.g., "per references/06-feature-compatibility-matrix.md, section 2 — Query Parsers". Do not present reference-derived content as general knowledge.The SessionState object persisted for each session contains:
| Field | Type | Purpose |
|---|---|---|
session_id | str | Unique session identifier |
history | list[{user, assistant}] | Full conversation turns |
facts | dict | Discovered migration facts (e.g. schema_migrated, customizations) |
progress | int | Current workflow step (0 = not started; advances forward only) |
incompatibilities | list[Incompatibility] | All incompatibilities found, with category, severity, description, recommendation |
client_integrations | list[ClientIntegration] | Client-side and front-end integrations collected in Step 7, with name, kind, notes, migration_action |
The storage backend is injected at construction time. Built-in options:
InMemoryStorage — ephemeral, process-scoped; useful for tests and single-turn use.FileStorage(base_path) — JSON file per session on disk; the default for persistent deployments.Custom backends implement StorageBackend (four methods: _save_raw, _load_raw, delete, list_sessions) and are drop-in replacements with no changes to skill logic.
import sys
import os
# Add scripts directory to sys.path
sys.path.append(os.path.join(os.getcwd(), ".kiro/skills/solr-to-opensearch/scripts"))
from skill import SolrToOpenSearchMigrationSkill
# Initialize advisor
skill = SolrToOpenSearchMigrationSkill()
# Handle conversational message
session_id = "user-123"
response = skill.handle_message("Help me migrate my Solr schema: <schema>...</schema>", session_id)
print(response)
# Generate final report
report = skill.generate_report(session_id)
print(report)
Install dependencies and run the MCP server over stdio:
pip install -e ".kiro/skills/solr-to-opensearch[mcp]"
python .kiro/skills/solr-to-opensearch/scripts/mcp_server.py
Or configure it in your MCP client (e.g. .kiro/settings/mcp.json):
{
"mcpServers": {
"solr-to-opensearch": {
"command": "python3",
"args": [".kiro/skills/solr-to-opensearch/scripts/mcp_server.py"],
"disabled": false,
"autoApprove": []
}
}
}
In case you are not successful using provided session persistence tools for persistence as a JSON file at
sessions/<session_id>.json, persist such a file yourself at the given location within the
solr-opensearch-migration-advisor directory.
The file is human-readable and contains the full conversation history, all discovered facts, and migration progress.
Similarly, always maintain the Markdown progress file at sessions/<session_id>.md as described in the Migration Progress File section. If the JSON session file cannot be written, the Markdown file must still be kept up to date — it is the human-readable record of the migration and must never be skipped.