Use getStringId instead of direct field access.
CARROT-996: QueryWordHighlighter erases string IDs by copying/cloning. Made Document shallow-cloneable.