I've checked the "Static HTML in pages" option in search indexes page. I then reindexed it. The search result page doesn't display words which are in content blocks. Can you help me find a solution?
I am not able to replicate this on any version of Sitefinity.
You can see a live demo here. Screenshots of the set up are attached.
Are you calling any code that uses session variables? This causes search to break on those pages because the HTTPContext returns null to the indexer.
Thank you for reply.
We don't use any Session, ViewState or HttpContext parameters in code behind. We haven't found a solution yet.
What else should I look out for?
Yes, i set all of them. Search widget is searching and displaying results in documents, user control, menu titles.
Just problem is search widget doesn't search static html on content blocks in all of pages.
Might be dumb question, but on the search widget you did set which index to be used and were to display.
Hello Orcun, Can you please go to your App_Data/Sitefinity/Logs folder, and temporarily move/remove all generated logs (you might need to stop the worker process for this site as it puts a lock on some of the logs). Afterwards please reindex the search index that contains Static HTML on pages in its settings, and let us know if any logs have been generated. The most common reason for the experienced issues is that the pages cannot be rendered internally for indexing, as there's a control on them that throws an exception when the page is rendered in index mode (e.g. calls to SiteMapBase.getActualCurrentNode() or using Session). Greetings, Boyan Barnev the Telerik team
The problem is probably the problem I think I'm having now. I disable 'static' in the search index, but enable 'contentblock' thinking this will only search the content blocks in the pages and not the surrounding text (ie, template stuff). What I do to fix this (unfortunatly) is click 'share' on the content blocks to make them show up in the 'content blocks' under modules.
So, just curious, is this intended? It appears that only 'shared content blocks' are search and not content blocks in pages. If this is the case, change the option for the search index from 'content blocks' to 'shared content blocks'. or rename the content blocks that are in pages but not shared.... bit confusing.
I got the error of Object Refrences when reindex the Search index
plz reply as soon as possible