Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Opensearch Views

No security coverage Drupal 9–10 · not 11
View on drupal.org

This module integrates Drupal Views with OpenSearch. It allows you to query and display data from OpenSearch indices, especially JSON data, using the familiar Views interface. You can select specific JSON fields from your OpenSearch documents to display in your Drupal site.

OpenSearch Views

INTRODUCTION

The OpenSearch Views module provides integration between Drupal Views and
OpenSearch, enabling you to query and display data from OpenSearch indices
through the familiar Drupal Views interface.

This module is particularly useful for displaying JSON data from OpenSearch,
allowing you to select specific JSON fields to display in your views.

REQUIREMENTS

* Drupal 9.x or 10.x
* Views module (included in Drupal core)
* OpenSearch PHP client library

INSTALLATION

1. Install the module using Composer:
```
composer require drupal/opensearch_views
```

2. Install the OpenSearch PHP client:
```
composer require opensearch-project/opensearch-php
```

3. Enable the module through the UI or use Drush:
```
drush en opensearch_views
```

CONFIGURATION

1. Navigate to Configuration > Search and metadata > OpenSearch Views
(/admin/config/search/opensearch_views)

2. Enter your OpenSearch connection details:
- Host
- Port
- Username (if applicable)
- Password (if applicable)
- SSL options

3. Test the connection to ensure your Drupal site can communicate with your
OpenSearch instance.

USAGE

1. Create a new View
- Select "OpenSearch" as the base table

2. In the View settings:
Add an "OpenSearch: JSON Field" filter
for the OpenSearch index to query

3. Add fields from your JSON documents:
- Add an "OpenSearch: JSON Field" field
- Select the JSON path to the data you want to display
- Configure the display format

TROUBLESHOOTING

If you experience issues:

1. Verify your OpenSearch connection settings
2. Check that your OpenSearch index contains the expected JSON data
3. Examine the Drupal logs for any errors
4. Ensure the OpenSearch PHP client library is properly installed

MAINTAINERS

Current maintainers:
* Adam Sanchez - https://www.drupal.org/u/asanchez75

This project has been sponsored by:
* https://landportal.org

Depends on

Dependencies of the latest stable release

  • views Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Mar 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.x-dev Dev 9–10 Mar 31, 2025
1.0.0 Stable 9–10 Mar 31, 2025