CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Feature #28073

fileindexer should allow for additionalfields as well

Added by Stefan Neufeind almost 2 years ago. Updated 5 months ago.

Status:Closed Start date:2011-07-10
Priority:Could have Due date:
Assignee:- % Done:

100%

Category:File Indexing
Target version:-
TYPO3 Version:4.5 Has patch:No
PHP Version: Tags:
Votes: 0

Description

pageindexer supports writing additionalfields to the index. It would be great to have such support for the fileindexer as well. For the easiest usecases it might be okay to just replicate the additionalfields from the referencedocument (the page from where the file is linked). Unfortunately it is not possible afterwards to determine which fields of a page are "additionalfields" at the moment.

A quick workaround is for now to explicitly transfer fields from the referencedocument to the file.
(For an example see attached one-line-patch).

Small usecase:
Additional fields through typoscript for example allow to easily tag certain pages/pagetrees with static (or dynamic) values which can later be used in searches. Extending this to files as well allows to search for files from a certain branch of the website (among other things).

fileindexer-additionalfields.patch - one-line-example how to transfer a field from the page (referencedocument) to a file (626 Bytes) Stefan Neufeind, 2011-07-10 22:19

28073.diff (3.6 kB) Ingo Renner, 2012-01-05 18:46

solr_28073.patch (4.8 kB) Stefan Galinski, 2012-06-08 18:54


Related issues

duplicated by Apache Solr for TYPO3 CMS - Bug #28449: No additional fields are indexed during file indexing Closed 2011-07-25

History

Updated by Ingo Renner almost 2 years ago

  • Target version changed from 2.0 to 2.5-dkd

Updated by Ingo Renner over 1 year ago

  • Assignee set to Stefan Sprenger

Updated by Olivier Dobberkau over 1 year ago

  • Status changed from New to Needs Feedback

Updated by Ingo Renner over 1 year ago

  • Status changed from Needs Feedback to Accepted
  • Assignee deleted (Stefan Sprenger)

Updated by Ingo Renner over 1 year ago

I added an initial PHP API in dkd-EAP r 87792

Updated by Ingo Renner over 1 year ago

  • Priority changed from Should have to Could have

Updated by Ingo Renner over 1 year ago

  • Tracker changed from Bug to Feature

Updated by Ingo Renner over 1 year ago

  • % Done changed from 0 to 50

Updated by Ingo Renner about 1 year ago

  • Target version changed from 2.5-dkd to 2.6-dkd

Updated by Ingo Renner about 1 year ago

  • Target version deleted (2.6-dkd)

Updated by Stefan Galinski 12 months ago

I have written a dirty hack with lot's of duplicated code from the index queue to enable the configuration of new fields. Maybe someone can use it as a small base, but it's far away from to be good enough for the solr core.

Example:

[...]
    queue {
      tx_solr_file.fields {
        field1_stringS = value
        field2_stringS = TEXT
        field2_stringS {
           value = another value
        }
      }
[...]

Updated by Stefan Neufeind 6 months ago

  • TYPO3 Version set to 4.5
  • Has patch set to No

Additional fields are meanwhile possible afaik. Could somebody please confirm this is still an issue? The dynamic fields seem to work as expected on 2.8.

http://forge.typo3.org/projects/extension-solr/wiki/Dynamic_Fields

Updated by Ingo Renner 5 months ago

  • Status changed from Accepted to Closed
  • % Done changed from 50 to 100

yes, that's been implemented in EXT:solrfile 1.0

Updated by Stefan Neufeind 5 months ago

Hmm, you mean a separate solrfile-extension? But it's not in TER yet, right?

Updated by Ingo Renner 5 months ago

Stefan Neufeind wrote:

Hmm, you mean a separate solrfile-extension? But it's not in TER yet, right?

it's part of the EAP, please contact dkd

Also available in: Atom PDF