drupal 6 - conversion of DateField to TrieDateField in Solr -
i'm using apache solr powering search functionality in drupal site using contributed module drupal named apachesolr search integration. i'm pretty novice solr , have basic understanding of it, hence wish convey apologies in advance if query sounds outrageous.
i have date field added through 1 of drupal's hooks named ds_mydate
used sorting search results. decided use date boosting, search results displayed based on relevancy , boosted date rather merely being displayed descending order of date. once had updated hook implement same adding boost field recip(ms(now/hour,ds_mydate),3.16e-11,1,1)
got http 400 error stating
can't use ms() function on non-numeric legacy date field ds_mydate
googling same suggested use triedatefield instead of legacy datefield prevent error. adding triedate field named tds_mydate
following suggested naming convention , implementing boost recip(ms(now/hour,tds_mydate),3.16e-11,1,1)
did achieve boosting. requires me reindex content (close 500k records) populate new triedate field may able use effectively.
i'd request know if there's effective workaround re-indexing content such converting ds_mydate
triedate field running alter query on mysql table field change type. since i'm unfamiliar how solr works request know if such option feasible , right thing case.
unfortunately, once document has been indexed way , change schema, cannot have new schema changes applied existing documents until documents re-indexed.
please see previous question - does schema change need reindex additional details.
Comments
Post a Comment