Unfortunately, terms do not help solve my issue.

To elaborate - say i have 5 entries:
uuid - ipaddress - ipcount
1       1.1.1.1       80
2       2.2.2.2       1
3       3.3.3.3       20
4       3.3.3.3       20

When i run a facet query on the ipaddress, i get the following results:

http://localhost:8983/solr/alerts/select?q=*:*&facet=true&facet.mincount=1&facet.limit=10&facet.field=ipaddress

<lst name="facet_fields">
<lst name="ipaddress">
<int name="3.3.3.3">2</int>
<int name="1.1.1.1">1</int>
<int name="2.2.2.2">1</int>
</lst>
</lst>

BUT what i would like is to force the facet query to use the ipcount as the
sum, like this:

<lst name="facet_fields">
<lst name="ipaddress">
<int name="3.3.3.3">40</int>
<int name="1.1.1.1">80</int>
<int name="2.2.2.2">1</int>
</lst>
</lst>

Using the stats component with faceting gives me what i want but due to the
fact that i cannot limit this, i worry processing the data after the query
will take a long time.

Thanks





--
View this message in context: 
http://lucene.472066.n3.nabble.com/Facet-which-takes-sum-of-a-field-into-account-for-result-values-tp4061588p4061636.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to