I have a number of fields on my site that don't appear on the 'Select fields to index' page.

They are fields from modules like link, name & cck_phone.

How do I go about getting these fields to be recognized?

I'm happy to make patches for those modules to do whatever is required.

Thanks.

Comments

cappadona’s picture

I'm also having trouble with this and am happy to chip in as well if someone can point me in the right direction.

rooby’s picture

Can anyone point us in the right direction?

jsacksick’s picture

Status: Active » Fixed

The link field is already recognized, you only need to add it thanks to the related fields select list in the bottom of search index ui. For the name field, I posted a patch here => http://drupal.org/node/1423160#comment-5741950 , try it, it should work for you.
For cck_phone... I didn't try.

rooby’s picture

Thanks for your work on that.
As I said originally, I'm happy to make the patches so I'll do one for cck_phone.

So to answer the question, what you have to do to make fields indexable is to give the field a property type.
This can be done using hook_field_info() (or hook_field_info_alter() if need be).

For further details see entity.api.php in the entity module and look at the doco for:
hook_entity_property_info()
entity_hook_field_info()

Also, for examples see field.info.inc in the entity module and also check out the patch linked in #3 and the patch at #1079782: support hook_entity_property_info().

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Fixing broken links