With omitTermFremFreqAndPositions set to true and multivalued field you have no information how many times "zip" term or any other term has appeared in the particular field. If the number of unique values is low, you can try faceting query with prefix, but it will not give you accurate results due to reason I've stated above.
On Fri, Nov 7, 2014 at 12:16 PM, Nickolay41189 <klin892...@yandex.ru> wrote: > I have multivalue field in my schema.xml: > <field name="extensions" type="string_lowercase" indexed="true" > stored="true" multivalue="true" > omitNorms="true" omitTermFreqAndPositions="true"/> > > I have indexed the following documents: > <doc> > ... > <field name="extension">bmp</field> > <field name="extension">zip</field> > <field name="extension">bmp</field> > ... > </doc> > <doc> > ... > <field name="extension">zip</field> > <field name="extension">zip</field> > <field name="extension">bmp</field> > ... > </doc> > > How can I retrieve the count of the term "zip" (in this example it must be > 3) from all multivalued field in this index without adding a copy field > (without changes in schema.xml)? TermFrequency won't work because > 'omitTermFremFreqAndPositions' is enabled. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Term-count-in-multivalue-fields-tp4168138.html > Sent from the Solr - User mailing list archive at Nabble.com. >