This is a rough patch but it's working for me. It provides meta data through the property_type and property_callbacks

Adding these and filling out the fields as default decimal for the properties made it work really well with the search API. I based this off the date module's implementation of the property_type.

This requires the Entity module, maybe you can get around that or add it to the requirements.

Cheers, hope that helps some people search this sweet field.

CommentFileSizeAuthor
geolocation.module.patch2.68 KBjoelpittet

Comments

noslokire’s picture

Just what I was looking for. I will try and apply get back

jm.federico’s picture

Status: Needs review » Closed (duplicate)

Hi, I'm marking this as a dup of #1366642: Property Info callback for Entity API

joelpittet’s picture

Hey jm.federico, you you have a infinite loop duplication status going on here...

I don't think this issue is resolved, or if it was, which patch did you use?

I just got a nice:
Error: Call to undefined function geolocation_property_info_callback() in
/sites/all/modules/entity/modules/field.info.inc, line 30

joelpittet’s picture

Also, the other patch #1366642 look at first glance to be well thought out, mine did work in practice and haven't had any troubles but the other looks more filled out.

jm.federico’s picture

Hello

I haven't tested any of the patches.
I didn't close the other issue, it actually is marked as "needs review".

I just had to close one to avoid dup of issues, so I closed this.

Please any new comments, patches, work, etc use the other issue so we can track things more easily

And thanks for the patch BTW.