Closed (fixed)
Project:
Apache Solr Search
Version:
7.x-1.x-dev
Component:
schema.xml
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Mar 2011 at 19:58 UTC
Updated:
1 Apr 2011 at 19:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
pwolanin commentedhere's a start.
Comment #2
pwolanin commentedTotally untested, but this removed a lot of the non-dynamic fields, and renames some of the others.
Comment #3
janusman commentedCode looks good, let me actually apply it and do some testing. =)
Comment #4
janusman commentedJust noticed we might have to update the tests too.
Comment #5
pwolanin commentedcommitting this patch - might still have issues, but seems to basically work.
Comment #6
pwolanin commentedSeems to basically be working - open new issues for major follow-up
Comment #7
jpmckinney commentedJust realized this breaks contrib modules like apachesolr_attachments... :(
Comment #8
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 commentedComment #10
pwolanin commentedre: #8 - that's the processing of the response doc.
e.g. before the schema change it was:
Comment #11
pwolanin commentedsome mistaken conversions in there:
should be:
Comment #12
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 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 commentedoops - that messed up title in drush search. so actually committing this one.
Comment #15
jpmckinney commentedCool, thanks for the review. I think that covers everything now.