Closed (cannot reproduce)
Project:
Drupal core
Version:
7.x-dev
Component:
search.module
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Oct 2016 at 10:30 UTC
Updated:
28 Jan 2017 at 22:02 UTC
Jump to comment: Most recent
Comments
Comment #2
nikhilsukul commentedHi @vlorun,
Unable to reproduce the issue. Do let me know, if you taken up the following steps:
On the"Search-settings" page admin->config->search->settings, when it currently states that "0% of the site has been indexed. Did you click on "Reindex-Site" button, this will give you a message like "the index will be rebuild". Then you should run cron manually, after running cron, you should be able to check the search settings page again, if there are more than 100 items, it might give you some progress in indexing and running cron few times will make it 100% indexed.
Comment #3
abhisaknigam commentedunable to reproduce the issue
I have run the manual cron and 100% of the site has been indexed. There are 0 items left to index.
Comment #4
abhisaknigam commentedIs that your file having same code snippet :
try to use this code
$info = entity_get_info($entity_type);
// Objects being created might not have id/vid yet.
$id = isset($entity->{$info['entity keys']['id']}) ? $entity->{$info['entity keys']['id']} : NULL;
$vid = ($info['entity keys']['revision'] && isset($entity->{$info['entity keys']['revision']})) ? $entity->{$info['entity keys']['revision']} : NULL;
// If no bundle key provided, then we assume a single bundle, named after the
// entity type.
$bundle = $info['entity keys']['bundle'] ? $entity->{$info['entity keys']['bundle']} : $entity_type;
return array($id, $vid, $bundle);
Comment #5
cilefen commented