Skip to main content
Version: Latest
Featurev1.1.2open-dxp/dynamic-search-index-provider-lucene-bundle

DS Index Provider: Lucene

An index storage extension for OpenDXP Dynamic Search. Store data with the PHP Lucene index service.

⚠️ Important - EOL announcement​

This extension has reached its end of life and won't be migrated for PHP 9. Support for PHP 8.x will be continued until the latest PHP 8.x version reached its end of life (as of now, 31.12.2029)

Release Plan​

ReleaseSupported OpenDXP VersionsSupported Symfony VersionsRelease DateMaintainedBranch
1.x1.0^7.404.02.2026Feature Branch1.x

Installation​

"require" : {
"open-dxp/dynamic-search-bundle" : "~1.0.0",
"open-dxp/dynamic-search-index-provider-lucene-bundle" : "~1.0.0"
}

Dependencies​

This package will also install a fork of ZendSearch to provide the latest PHP compatibility.

Dynamic Search Bundle​

You need to install / enable the Dynamic Search Bundle first. Read more about it here. After that, proceed as followed:

Add Bundle to bundles.php:

<?php

return [
\OpenDxp\Bundle\DsLuceneBundle\OpenDxpDsLuceneBundle::class => ['all' => true],
];

Basic Setup​


opendxp_dynamic_search:
context:
default:
index_provider:
service: 'lucene'
options:
database_name: 'my_lucene_storage'

Provider Options​

NameDefault ValueDescription
database_namenull
force_adding_documenttrue
analyzer[]

Index Fields​

Available Index Fields:

NameDescription
binaryBinary fields are not tokenized or indexed, but are stored for retrieval with search hits. They can be used to store any data encoded as a binary string, such as an image icon.
keywordKeyword fields are stored and indexed, meaning that they can be searched as well as displayed in search results. They are not split up into separate words by tokenization.
textText fields are stored, indexed, and tokenized. Text fields are appropriate for storing information like subjects and titles that need to be searchable as well as returned with search results.
unIndexedUnIndexed fields are not searchable, but they are returned with search hits. Database timestamps, primary keys, file system paths, and other external identifiers are good candidates for UnIndexed fields.
unStoredUnStored fields are tokenized and indexed, but not stored in the index. Large amounts of text are best indexed using this type of field. Storing data creates a larger index on disk, so if you need to search but not redisplay the data, use an UnStored field.

Output Channel Services​

Autocomplete​

Identifier: lucene_autocomplete
Available Options:

NameDefault ValueDescription
min_prefix_length3
use_fuzzy_term_search_fallbacktrue
fuzzy_default_prefix_length
fuzzy_similarity0.5

Suggestions​

Identifier: lucene_suggestions
Available Options:

NameDefault ValueDescription
min_prefix_length3
result_limit10
only_last_word_wildcardfalse
multiple_words_operator'OR'
restrict_search_fields[]
restrict_search_fields_operator'OR'

Identifier: lucene_search
Available Options:

NameDefault ValueDescription
min_prefix_length3
max_per_page10

Identifier: lucene_multi_search
Available Options: none


Filter​

RelationsFilter​

Identifier: relations
Available Options:

NameDefault ValueAllowed TypeDescription
identifiernullstring
valuenullstring
labelnullstring, null
show_in_frontendtruebool
relation_labelnullclosure, null

Output Normalizer​

A Output Normalizer can be defined for each output channel.

lucene_document_key_value_normalizer​

Available Options:

NameDefault ValueDescription
skip_fields[]

Further Information​


Upgrade Info​

Before updating, please check the changelog!

Coming from an earlier package? Read Migrating to OpenDXP.

License​

Licensed under the GNU General Public License v3.0 (GPLv3). For details, please see LICENSE.md.

© 2026 OpenDXP — GPLv3