Closed (won't fix)
Project:
MongoDB
Version:
8.x-1.x-dev
Component:
Field storage
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Jun 2013 at 12:50 UTC
Updated:
20 Feb 2014 at 17:30 UTC
Jump to comment: Most recent
Comments
Comment #1
giorgio79 commentedI managed to exclude geom column from migration, and now migration runs fine! So, it is definitely geofield's geom column that is incompatible. Couple solutions:
1. detect mysql column type, if it is binary, store it as binary
2. exclude column from migration?
3. manually specify as MongoBinData?
Possibly related issue at Geofield queue #1811682: "geom" binary data breaks Services JSON - unable to encode value to JSON -- FOLLOW UP
Comment #2
marcingy commentedYou can define which fields to migrate in
so once you use drush_mongodb_migrate_prepare you could remove the field from the list
Comment #3
giorgio79 commentedIt would be preferable to define the field as MongoBinData, so everything is in mongo. Any tips for that? :)
Comment #4.0
(not verified) commentedlguiotguiog
Comment #5
giorgio79 commentedMaybe for 8x? :)
Comment #6
giorgio79 commentedFor a sample implementation Search API Solr offers field types for storing in Solr for each field. Check the index settings admin/config/search/search_api/index/xxxxx/fields
Comment #7
giorgio79 commentedComment #8
marcingy commentedNope
Comment #9
giorgio79 commentedCan you tell me why? :) Looks like a well supported Mongodb feature
http://www.php.net/manual/en/class.mongobindata.php
http://api.mongodb.org/perl/current/MongoDB/DataTypes.html#Binary%20Data