4teamwork/opengever.core — pull request #136 by lukasgraf (2013-11-07 15:04:03+00:00)
Title: Modify indexer for documents so that it queries for our own IDocumentIndexer adapter.

This allows us to choose whether to index original documents or their preview PDF, depdending on whether `opengever.pdfconverter` is installed or not.

- Default Behavior in `opengever.core`: `DefaultDocumentIndexer` from `opengever.document` is used. This indexer extracts the plain text from the original documents, using a portal transform to `text/plain`.
- Behavior if `opengever.pdfconverter` is installed: Because the documents then provide the `IPreviewMarker` interface, the `OfficeDocumentFromPDFIndexer` from `opengever.pdfconverter` will be selected. This indexer extracts the text from the preview PDF of the adapted document.

TODO
====

- [ ] Prevent indexer from being executed multiple times.