PHPackages                             netgen/ibexa-search-extra - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. netgen/ibexa-search-extra

ActiveIbexa-bundle[Search &amp; Filtering](/categories/search)

netgen/ibexa-search-extra
=========================

Netgen's extra search bits for Ibexa CMS

4.0.0(2mo ago)013.9k↓48.8%2[4 PRs](https://github.com/netgen/ibexa-search-extra/pulls)6GPL-2.0-onlyPHPPHP &gt;=8.3CI failing

Since Oct 6Pushed 2mo ago5 watchersCompare

[ Source](https://github.com/netgen/ibexa-search-extra)[ Packagist](https://packagist.org/packages/netgen/ibexa-search-extra)[ RSS](/packages/netgen-ibexa-search-extra/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (20)Versions (32)Used By (6)

Netgen's extra bits for Ibexa CMS Search
========================================

[](#netgens-extra-bits-for-ibexa-cms-search)

[![Build Status](https://camo.githubusercontent.com/eac2b260bee8ab448e395640280d0c31aa7653b39422c7b2b6a97d92b70525a5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e657467656e2f69626578612d7365617263682d65787472612f74657374732e796d6c3f6272616e63683d6d6173746572)](https://github.com/netgen/ibexa-search-extra/actions)[![Read the Docs](https://camo.githubusercontent.com/980e6a0f92deeee09f5af35eb047e178b30527efa744d52fcc147e5b3f33694a/68747470733a2f2f696d672e736869656c64732e696f2f72656164746865646f63732f6e657467656e732d7365617263682d65787472612d666f722d69626578612d636d73)](https://docs.netgen.io/projects/search-extra)[![Downloads](https://camo.githubusercontent.com/885fab58a471ccf6f88de80ccaf2b5a4d4ed28e97daddcca2c1aced9ca8293d1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e657467656e2f69626578612d7365617263682d65787472612e737667)](https://packagist.org/packages/netgen/ibexa-search-extra)[![Latest stable](https://camo.githubusercontent.com/bc0d45270764d6f507e20ef38082029c2cdad9064b42baaadf4eacd94f02728f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6e657467656e2f69626578612d7365617263682d65787472612e737667)](https://packagist.org/packages/netgen/ibexa-search-extra)[![Ibexa](https://camo.githubusercontent.com/aede79ef31bb4ac83237262bd6df62a132c15de429cf93a6c7d880f379d4304b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4962657861253230434d532d342d6f72616e67652e737667)](https://ibexa.co/)[![Ibexa](https://camo.githubusercontent.com/83f280eed1c36da347c7f5ea51ce2bd656c9c0474738349f5d5cb2bea2ed969e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4962657861253230434d532d352d6f72616e67652e737667)](https://ibexa.co/)

Features
--------

[](#features)

This only lists all implemented features, see the [documentation](https://docs.netgen.io/projects/search-extra)for more details on specific ones.

- [Page indexing](https://docs.netgen.io/projects/search-extra/en/latest/reference/page_indexing.html) (`solr`, `elastic`)
- Custom `FullText` criterion with [configurable boosting](https://docs.netgen.io/projects/search-extra/en/latest/reference/fulltext_search_boosting.html) (`solr`)
- [Extensible DocumentFactory](https://docs.netgen.io/projects/search-extra/en/latest/reference/document_factory.html) (`elastic`)
- Support for [asynchronous indexing](https://docs.netgen.io/projects/search-extra/en/latest/reference/asynchronous_indexing.html) (`solr`, `legacy`)
- [`ContentName`](https://github.com/netgen/ibexa-search-extra/blob/master/lib/API/Values/Content/Query/Criterion/ContentName.php) criterion that works on matched translation's Content name (`solr`, `legacy`)
- [`ContentName`](https://github.com/netgen/ibexa-search-extra/blob/master/lib/API/Values/Content/Query/SortClause/ContentName.php) sort clause that works on matched translation's Content name (`solr`, `legacy`)
- [`ContentId`](https://github.com/netgen/ibexa-search-extra/blob/master/lib/API/Values/Content/Query/Criterion/ContentId.php) and [`LocationId`](https://github.com/netgen/ibexa-search-extra/blob/master/lib/API/Values/Content/Query/Criterion/LocationId.php) criteria with support for range operators (`solr`, `legacy`)

    Supported operators are: `EQ`, `IN`, `GT`, `GTE`, `LT`, `LTE`, `BETWEEN`.
- [`Visible`](https://github.com/netgen/ibexa-search-extra/blob/master/lib/API/Values/Content/Query/Criterion/Visible.php) criterion (`solr`, `elastic`, `legacy`), usable in both Content and Location search. The criterion works on compound visibility of Content and Location objects: the Content is visible if it's marked as visible; the Location is visible if it's marked as visible, is not hidden by one of its ancestor Locations, and its Content is visible.
- [Spellcheck suggestions support](https://docs.netgen.io/projects/search-extra/en/latest/reference/spellcheck_suggestions.html) (`solr`)
- [`CustomField`](https://github.com/netgen/ibexa-search-extra/blob/master/lib/API/Values/Content/Query/SortClause/CustomField.php) sort clause (`solr`)

    Provides a way to sort directly on Solr field by its name.
- Pagerfanta adapters providing access to extra information returned by the search engine, aggregations, max score, and execution time (`solr`, `legacy`):

    - [`SearchAdapter`](https://github.com/netgen/ibexa-search-extra/blob/master/lib/Core/Pagination/Pagerfanta/SearchAdapter.php) when using `API` search service
    - [`SearchHandlerAdapter`](https://github.com/netgen/ibexa-search-extra/blob/master/lib/Core/Pagination/Pagerfanta/SearchHandlerAdapter.php) when using `SPI` search handler
- [`ObjectStateIdentifier`](https://github.com/netgen/ibexa-search-extra/blob/master/lib/API/Values/Content/Query/Criterion/ObjectStateIdentifier.php) criterion (`solr`, `legacy`)
- [`SectionIdentifier`](https://github.com/netgen/ibexa-search-extra/blob/master/lib/API/Values/Content/Query/Criterion/SectionIdentifier.php) criterion (`solr`, `legacy`)
- Support for custom Content subdocuments (Solr search engine) (`solr`)

    Provides a way to index custom subdocuments to a Content document and [`SubdocumentQuery`](https://github.com/netgen/ibexa-search-extra/blob/master/lib/API/Values/Content/Query/Criterion/SubdocumentQuery.php)criterion, available in Content search to define grouped conditions for a custom subdocument.
- [`SubdocumentField`](https://github.com/netgen/ibexa-search-extra/blob/master/lib/API/Values/Content/Query/SortClause/SubdocumentField.php) sort clause (`solr`)

    Provides a way to sort Content by a subdocument field, choosing score calculation mode and optionally limiting with `SubdocumentQuery` criterion.

    **Note:** This will require Solr `6.6` or higher to work correctly with all scoring modes.
- [`LocationQuery`](https://github.com/netgen/ibexa-search-extra/blob/master/lib/API/Values/Content/Query/Criterion/LocationQuery.php) criterion (`solr`, `legacy`)

    Allows grouping of Location criteria so that they apply together on a Location.
- Indexable implementations for [`RichText`](https://github.com/netgen/ibexa-search-extra/blob/master/lib/Core/FieldType/RichText/Indexable.php) (`solr`)

    These implementations shorten text indexed as keyword to 256 characters, which prevents failures when the field's content is too big for Solr's string field. They can be controlled with semantic configuration (showing defaults):

    ```
    netgen_ibexa_search_extra:
        indexable_field_type:
            ezrichtext:
                enabled: true
                short_text_limit: 256
    ```
- [`Loading`](https://github.com/netgen/ibexa-search-extra/blob/master/lib/Core/Search/Solr/ResultExtractor/LoadingResultExtractor.php) implementation of result extractor (`solr`)

    Loading result extractor gets its value objects by loading them from the persistence. This prevents:

    - `UnauthorizedException` failures because of the missing `content/versionread` permission when Content is updated and incremented current version number is not yet indexed in Solr
    - `NotFoundException` failures when Content/Location is deleted and the corresponding document is not yet removed from Solr index

    Usage of loading result extractor can be controlled with semantic configuration (showing defaults):

    ```
    netgen_ibexa_search_extra:
        use_loading_search_result_extractor: true
    ```

Installation
------------

[](#installation)

To install Ibexa Search Extra first add it as a dependency to your project:

```
composer require netgen/ibexa-search-extra:^3.0
```

Once the added dependency is installed, activate the bundle in `config/bundles.php` file by adding it to the returned array, together with other required bundles:

```
