When creating a new Search API index, you can choose the index "Item type" to be "Multiple types" which enables you to choose ie. both File and Content -types for your index. Currently Metatag seems to support only one selected type and it would be useful to be able to index metadata with "Multiple types" provided that the selected types are compatible.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3018692-search-api-multiple-types.patch | 2.93 KB | thatguy |
Comments
Comment #2
thatguy commentedI tried patching this issue myself but I don't have too much experience on patching so any feedback is welcome! I simply added check for the multiple type selection in the supportsIndex and making sure that atleast one of the selected types is an entity. For the alterItems I needed to add check for the multiple types too and also change a bit the logic since the data structure is different with multiple types. I think the code in this could be a bit better structured so I'll see if I have time to improve it.
Comment #3
thatguy commentedComment #4
damienmckennaThanks for taking the time to work through this and build a patch, it's appreciated.
FYI the "assigned" option is used to indicate that you're actively working on something, after you upload a patch or finish your work it's suggested to change that option back to "unassigned" so others know you're finished.
Comment #5
damienmckennaLooks good, thank you. Committed.
Comment #7
damienmckenna