elasticsearch/elasticsearch — pull request #2160 by s1monw (2012-08-10 13:22:43+00:00)
Title: Expose omitPositions via FieldMapping to omit positions only if frequencies are required

Lucene has the ability to omit positions only and keep frequencies. This is one of the most common usecases when folks don't need proximity information. Yet, if you need freqs for scoring you might pay a huge price for indexing and merging positions like wasting CPU, Memory and diskspace. This PR exposes omit_positions just like omit_norms etc.