2017 © Pedro PelĂĄez
 

ezplatform-bundle ezplatform-search-extra

image

netgen/ezplatform-search-extra

  • Sunday, July 29, 2018
  • by emodric
  • Repository
  • 6 Watchers
  • 0 Stars
  • 92 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Netgen's extra bits for eZ Platform search

Build Status Read the Docs Downloads Latest stable eZ License, (*1)

Other versions

  • release compatible with eZ Platform 3.1 is 2.4
  • release compatible with eZ Platform 2.x is 1.14

Features

This only lists all implemented features, see the documentation for more details on specific ones., (*2)

  • ContentName criterion that works on matched translation's Content name (solr, legacy), (*3)

  • ContentName sort clause that works on matched translation's Content name (solr, legacy), (*4)

  • ContentId and LocationId criteria with support for range operators (solr, legacy), (*5)

    Supported operators are: EQ, IN, GT, GTE, LT, LTE, BETWEEN., (*6)

  • Visible criterion (solr, legacy), usable in both Content and Location search. The criterion works on compound visiblity 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 it's Content is visible., (*7)

  • Spellcheck suggestions support (solr), (*8)

  • CustomField sort clause (solr), (*9)

    Provides a way to sort directly on Solr field by its name., (*10)

  • Pagerfanta adapters providing access to extra information returned by the search engine, like facets, aggregations, max score and execution time (solr, legacy):, (*11)

  • A set of User related criteria (legacy):, (*12)

  • IsFieldEmpty criterion (solr), (*13)

    Requires initial reindexing after installation., (*14)

  • ObjectStateIdentifier criterion (solr, legacy), (*15)

  • SectionIdentifier criterion (solr, legacy)
  • Support for custom Content subdocuments (Solr search engine) (solr), (*16)

    Provides a way to index custom subdocuments to Content document and SubdocumentQuery criterion, available in Content search to define grouped conditions for a custom subdocument., (*17)

  • SubdocumentField sort clause (solr), (*18)

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

    Note: This will require Solr 6.6 or higher in order to work correctly with all scoring modes., (*20)

  • LocationQuery criterion (solr, legacy), (*21)

    Allows grouping of Location criteria so that they apply together on a Location., (*22)

  • CustomFieldFacetBuilder facet builder (solr), (*23)

    Allows building facets on custom Solr fields., (*24)

  • RawFacetBuilder facet builder (solr), (*25)

    Exposes Solr's JSON facet API in full., (*26)

  • Score sort clause (solr), (*27)

    Provides a way to sort Content by score value., (*28)

  • Random sort clause (solr), (*29)

    Provides a way to sort Content randomly., (*30)

  • Indexable implementations for RichText and XmlText (solr), (*31)

    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):, (*32)

    netgen_ez_platform_search_extra:
      indexable_field_type:
          ezxmltext:
              enabled: true
              short_text_limit: 256
          ezrichtext:
              enabled: true
              short_text_limit: 256
    
  • Loading implementation of result extractor (solr), (*33)

    Loading result extractor gets it's value objects by loading them from the persistence. This prevents:, (*34)

    • 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):, (*35)

    netgen_ez_platform_search_extra:
      use_loading_search_result_extractor: true
    

Installation

To install eZ Platform Search Extra first add it as a dependency to your project:, (*36)

composer require netgen/ezplatform-search-extra:^2.5

Once the added dependency is installed, activate the bundle in app/AppKernel.php file by adding it to the $bundles array in registerBundles() method, together with other required bundles:, (*37)

public function registerBundles()
{
    ...

    $bundles[] = new Netgen\Bundle\EzPlatformSearchExtraBundle\NetgenEzPlatformSearchExtraBundle;

    return $bundles;
}

The Versions