Skip to content

Commit

Permalink
[DOC] Add infos about adding own field processors
Browse files Browse the repository at this point in the history
Update the wrong section on that it's still impossible to extend the field processors

Ports: #3939
  • Loading branch information
kitzberger authored and dkd-kaehm committed Jan 18, 2024
1 parent 36e7ee4 commit 18b320b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Documentation/Configuration/Reference/TxSolrIndex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ fieldProcessingInstructions
:Since: 1.2 2.0
:Options: timestampToIsoDate, uppercase, pathToHierarchy (2.5-dkd), pageUidToHierarchy (2.5-dkd)

Assigns processing instructions to Solr fields during indexing (Syntax: Solr index field = processing instruction name). Currently it is not possible to extend / add own processing instructions.
Before documents are sent to the Solr server they are processed by the field processor service. Currently you can make a filed's value all uppercase, convert a UNIX timestamp to an ISO date, or transform a path into a hierarchy for hierarchical facets (2.0 only). Currently you can use only one processing instruction at a time.
Assigns processing instructions to Solr fields during indexing (Syntax: Solr index field = processing instruction name). Before documents are sent to the Solr server they are processed by the field processor service. Currently you can make a filed's value all uppercase, convert a UNIX timestamp to an ISO date, or transform a path into a hierarchy for hierarchical facets (2.0 only). Currently you can use only one processing instruction at a time.

Example:

Expand All @@ -65,6 +64,14 @@ Example:
endtime = timestampToIsoDate
}
Since version 11.5 it is possible to extend / add own processing instructions.

.. code-block:: php
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['fieldProcessor']['yourFieldProcessor'] = ACustomFieldProcessor::class;
Custom processors have to implement interface `ApacheSolrForTypo3\Solr\FieldProcessor\FieldProcessor`.

queue
-----

Expand Down

0 comments on commit 18b320b

Please sign in to comment.