lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nickolay41189 <Klin892...@yandex.ru>
Subject Term count in multivalue fields
Date Fri, 07 Nov 2014 11:16:58 GMT
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.

Mime
View raw message