Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I have a site where I want to index 16 content types each one having 30 fields.
My question is,should I create one big index or create a separate index for each content type,as they are many of them?
Thanks for your time
Comments
Comment #1
pinkonomy CreditAttribution: pinkonomy commentedComment #2
drunken monkeyHm, if you never want to search two different content types at the same time, then using separate indexes might be cleaner, the Fields form could otherwise get very messy. It might also perform better, depending on the backend and its setup.
However, as long as #1184610: Limit indexes to specific entity bundles isn't fixed, indexing is a bit suboptimal for indexes limited to a specific bundle, and in the case of such a large number of bundles, this might be a considerable performance drawback during indexing. Whether that effect would be enough to encourage the use of one index depends on how much indexing you expect to do. But if there's a constant flow of new nodes (no matter what type) then you should probably either use a single index or try to help me fix the linked issue.