Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a node type with a CCK field called "lastname". While in the content type page, I have set the field to be indexed, it appears that after I enabled search config and reindexed the whole site (now indexed at 100%), I cannot find any node by entering the "lastname" in the core search.
I should mention that the node type that contains the "lastname" field is being indexed just fine by title, body, etc, ... Only the custom CCK fields are not indexed or searchable anymore.
Comments
Comment #1
jbomb CreditAttribution: jbomb commentedI was unable to reproduce this with the following steps.
Where did you "set the field to be indexed?" Also, are you using field access? Is the field hidden on the node display?
Comment #2
gafir777 CreditAttribution: gafir777 commentedHi,
Thanks for your support on this issue. I should have mentioned, the field is hidden in both the full node and the teaser in the following content type page: /admin/content/node-type/book/display
Teaser >>hidden
Full Node >>hidden
However, the field is not "excluded". I was simply hiding the field because I'm displaying them at the theme level. (in my node-book.tpl.php.)
That's for the "Basic" tab of the page. In the "Search tab", the field is set as:
Search Index Plain Text
Search Result Plain Text
These settings were working fine before the search config was installed.
Try to set the field as in the basic tab, and you might be able to reproduce this issue.
Comment #3
gafir777 CreditAttribution: gafir777 commentedComment #4
jbomb CreditAttribution: jbomb commentedAlright, I created a test field and set the display to hidden for both teaser and full node in the basic tab for the CCK field's display settings, and made sure that I set the "Search" tab to index "plain text" as you described. I re-indexed the site, however the search still returned the results as expected.
Is the content type selected in the advanced options for search? Note that selected content types are excluded from the index. Also, are you using the content search or the user search, and are you using field access?
Comment #5
jbomb CreditAttribution: jbomb commentedgafir777 did you have any luck sorting this out?
Comment #6
Alan D. CreditAttribution: Alan D. commentedNo response, so closing.