Search only indexing public fields We have a problem with search only indexing fields that have their "Field visibility and permissions" either set to be "Public" or "Custom" with the anonymous user able to view. Any field that is private or has some other custom setting isn't indexed.

I only use Drupal occasionally so I'm far from an expert but as far as I can tell reading around, search should index everything except if it's explicitly told not to.

I've searched around and can't find any setting that would seem to be causing it to behave in this way.

Have I misunderstood how it should behave or is there a setting somewhere I'm missing?

cheers, Gordon

EDIT: I realise that I should have specified that the site is using the Field Permissions module to set the permissions on each of the fields.
Drupal renders a node and passes it to indexer. So whatever you see publicly that what is indexed. 

but there are few options you can fix that:


to render a node for indexing this is called: $build = node_view($node, 'search_index'); view mode is search_index, so in your node template you can check what view mode it is and render it differently.
you can use display suite module and then use this display "Search result highlighting input" to configure what is indexed
after node is rendered this hook is called $extra = module_invoke_all('node_update_index', $node);  you could implement it and return extra information 


hope it helps