I love this module! It is so flexible. For example, I was able to index a field of type "List (text)" with a predefined list of value in the field UI, and index it in solr. When browsing my solr documents, it is indexed as a bunch of <str> inside <arr> which means Solr trully understands it as a list. I'm also able to expose this field as an exposed filter in Views, which gives me a drop down.
Is there any way to achieve the same with an aggregated field aggregating a bunch of fields of type list? In my case, all the aggregated fields are the same (a bunch of field collections sharing the same fields), but potentially this could be achieved by merging all the list into one. It would be indexed as such a list in Solr, and could also be exposed in Views as a drop down exposed filter.
I've tried to accomplish this by setting all my fields as string index, but when I aggregate them all, there is no "string" in the aggregation type drop down. Is there any way to achieve this?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | callback_add_aggregation.patch | 1.95 KB | jackbravo |
Comments
Comment #1
drunken monkeySo you want a „List“ aggregation type for the „Aggregated fields“ data alteration, that just throws all encountered values into a single list – right?
Shouldn't be too hard to do, and is also a sensible idea, but right now I don't have the time. You'll either have to create a patch yourself or wait a while.
Comment #2
BarisW commentedSame request, described here as well: #1374128: How to filter on term instead of term_reference?. Currently, aggregating only accepts fulltext, min, max, count, etc. I'd like to aggregate list items into one big list. In my case, several term_reference fields pointing to the same vocabulary.
Comment #3
wwhurley commentedWe experienced the same need. We have some code up in a module that provides that functionality. Currently it has been tested on combining taxonomy terms for a single facet -- though we haven't branched out past that yet we want to get it working for strings and other data type as well. http://drupal.org/project/search_api_combined
Comment #4
jackbravo commentedThis is a small patch that adds a list type aggregation. Works fine I on my tests.
Comment #5
legolasboThis issue has not seen activity in over 2,5 years. I am therefore closing this issue to clean up the issue queue. Feel free to re-open and update this issue if you feel this issue is still relevant and of importance.