Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

Distributed Search Features

Fetch function parameter: distributed_search

Distributed search sub-parameters, to be specified as a hash array:

Parameter

Type

Description

shards

array

Solr shards/cores to search as identified by their identifier in solr.ini

searchfields

array

Fields to search across the specified shards

returnfields

array

Fields to return across

rawfilterlist

array

Array of filter expressions which are combined with a boolean 'OR'. The combined expression is then also combined with a boolean 'OR' along the other filter queries (explicit or originating from the eZ Publish permissions)

Important: The use of distributed_search requires also the 'asObjects' parameter set to false()

Tips

  • For best relevancy, the respective solr schema's in schema.xml needs to be "tuned" for distributed search in order to function properly with respect to relevance. Best practice is to use <copyField> directives to aggregate fields together with a common field name.

          Example: Using the eZ Find aggregate field created by default for eZ Publish search indexes: ezf_def_text

  • Facets can be specified in the main facets parameter, by using the Raw Solr Field Identifiers used by the foreign search indexes.

Ricardo Correia (10/09/2013 9:50 am)

Ricardo Correia (10/09/2013 9:50 am)


Comments

There are no comments.