private void processIndexContent(final IndexField indexField, final String value) {
        try {
            final Val val = convertValue(indexField, value);
            if (val != null) {
                if (currentEventTime == null &&
                        FieldType.DATE.equals(indexField.getFldType()) &&
                        indexField.getFldName().equals(index.getTimeField())) {
                    try {
                        // Set the current event time if this is a recognised event time field.
                        currentEventTime = val.toLong();
                    } catch (final RuntimeException e) {
                        LOGGER.trace(e.getMessage(), e);
                    }
                }

                // Add the current field to the document if it is not null.
                final FieldValue fieldValue = new FieldValue(indexField, val);

                // Output some debug.
                if (LOGGER.isDebugEnabled()) {
                    debugBuffer.append("processIndexContent() - Adding to index indexName=");
                    debugBuffer.append(indexRef.getName());
                    debugBuffer.append(" name=");
                    debugBuffer.append(indexField.getFldName());
                    debugBuffer.append(" value=");
                    debugBuffer.append(value);

                    final String debug = debugBuffer.toString();
                    debugBuffer.clear();

                    LOGGER.debug(debug);
                }

                document.add(fieldValue);
            }

        } catch (final RuntimeException e) {
            log(Severity.ERROR, e.getMessage(), e);
        }
    }
Sets the locator to use when reporting errors.

@param locator The locator to use.
stroom-index/stroom-index-impl/src/main/java/stroom/index/impl/IndexingFilter.java