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.
In the BoF today at Drupalcon there seemed to be broad agreement that we should eliminate more of the non-dynamic fields in the schema since they can be confusing when trying to understand what and how to index.
Comment | File | Size | Author |
---|---|---|---|
#14 | 1088208-giga-fix-14.patch | 17.58 KB | pwolanin |
#13 | 1088208-giga-fix-13.patch | 17.64 KB | pwolanin |
#12 | 1088208-giga-fix-12.patch | 17.1 KB | pwolanin |
#8 | 1088208-giga-fix.patch | 17.43 KB | jpmckinney |
#5 | 1088208-simplify-schema-5.patch | 27.76 KB | pwolanin |
Comments
Comment #1
pwolanin CreditAttribution: pwolanin commentedhere's a start.
Comment #2
pwolanin CreditAttribution: pwolanin commentedTotally untested, but this removed a lot of the non-dynamic fields, and renames some of the others.
Comment #3
janusman CreditAttribution: janusman commentedCode looks good, let me actually apply it and do some testing. =)
Comment #4
janusman CreditAttribution: janusman commentedJust noticed we might have to update the tests too.
Comment #5
pwolanin CreditAttribution: pwolanin commentedcommitting this patch - might still have issues, but seems to basically work.
Comment #6
pwolanin CreditAttribution: pwolanin commentedSeems to basically be working - open new issues for major follow-up
Comment #7
jpmckinney CreditAttribution: jpmckinney commentedJust realized this breaks contrib modules like apachesolr_attachments... :(
Comment #8
jpmckinney CreditAttribution: jpmckinney commentedBroken stuff:
* Can't sort by title
* apachesolr_delete_index can't delete by node type
* apachesolr_index_nodes doesn't report nids that failed indexing
* apachesolr_block_visibility doesn't respect node type restrictions
* apachesolr_mlt_suggestions doesn't respect node type restrictions
* excluding node types from index via admin doesn't delete them from index
* highlighting is broken
* drush solr-search doesn't report nid
* tests broken (maybe already broken)
These lines are mysterious to me:
Those fields are ignored by schema.xml. What use is it to assign them?
Comment #9
jpmckinney CreditAttribution: jpmckinney commentedComment #10
pwolanin CreditAttribution: pwolanin commentedre: #8 - that's the processing of the response doc.
e.g. before the schema change it was:
Comment #11
pwolanin CreditAttribution: pwolanin commentedsome mistaken conversions in there:
should be:
Comment #12
pwolanin CreditAttribution: pwolanin commentedMost of the tests were totally non-functional other than the query class unit. tests. The changes here should not have been required to make that work, though useful to update the field names there (I knew they were out of date).
For date fields, it might be useful to have a more generic conversion to timestamps? e.g.
rather than hard-coding the 2 used by nodes?
Comment #13
pwolanin CreditAttribution: pwolanin commentedActually the drush command was totally broken - apachesolr_search_execute() doesn't exist in 7, it's apachesolr_search_search_execute()
Committing this. Re-open if we need any more cleanup.
Comment #14
pwolanin CreditAttribution: pwolanin commentedoops - that messed up title in drush search. so actually committing this one.
Comment #15
jpmckinney CreditAttribution: jpmckinney commentedCool, thanks for the review. I think that covers everything now.