<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Search index problems</title><link>https://community.telligent.com/community/11/w/user-documentation/67618/search-index-problems</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>Search index problems</title><link>https://community.telligent.com/community/11/w/user-documentation/67618/search-index-problems</link><pubDate>Fri, 12 Feb 2021 22:43:34 GMT</pubDate><guid isPermaLink="false">4913c3ef-7de7-4669-895e-44e48e6bc536</guid><dc:creator>Michael Kelley</dc:creator><comments>https://community.telligent.com/community/11/w/user-documentation/67618/search-index-problems#comments</comments><description>Current Revision posted to User Documentation by Michael Kelley on 02/12/2021 22:43:34&lt;br /&gt;
&lt;p&gt;[toc]&lt;/p&gt;
&lt;p&gt;&lt;a name="top"&gt;&lt;/a&gt;Search is a key mechanism that members of your community will use to locate content that they are interested in. You must [[Install and configure search|install and configure search]] for your community.&amp;nbsp;If you are having difficulty with using search, review how to [[Troubleshoot search errors]].&lt;/p&gt;
&lt;h2 id="reindex_your_search_index"&gt;&lt;a name="reindex"&gt;&lt;/a&gt;Reindex your search index&lt;/h2&gt;
&lt;p&gt;The Telligent Community Server search provider uses a powerful search engine to furnish search results for content and conversations within the community. The search instance is self-updating and will add and remove content as it changes on your site. The search results are trimmed based on the user&amp;#39;s roles. If for some reason the index becomes corrupt or has invalid data, you can manually delete and reindex the content on the site.&lt;/p&gt;
&lt;p&gt;The primary reason for reindex your site would be if the search results are not the expected results or they have data that is not correct.&lt;/p&gt;
&lt;p&gt;Reasons this may occur:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Corruption of current data when indexing the site&lt;/li&gt;
&lt;li&gt;Requirement to update the version of the search components&lt;/li&gt;
&lt;li&gt;Failure to synchronize permissions to the search index&lt;/li&gt;
&lt;li&gt;Search indexing tasks fail to update the search index&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="#top"&gt;top&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="reset_the_index"&gt;&lt;a name="reset"&gt;&lt;/a&gt;Reset the index&lt;/h2&gt;
&lt;p&gt;There are two cores (indexes) within the Solr instance: &amp;quot;telligent-content&amp;quot; and &amp;quot;telligent-conversations&amp;quot;. To delete one or both of the cores the following tasks need to be performed:&lt;/p&gt;
&lt;h3 id="delete_the_existing_index"&gt;&lt;a name="Delete_the_existing_index"&gt;&lt;/a&gt;Delete the existing&amp;nbsp;cores&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Stop the &amp;quot;Telligent Search&amp;quot; service using the Windows Services MMC.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Navigate to the &amp;quot;telligent-content&amp;quot; core folder in the Solr home folder (ex. c:\Search\data\home\telligent-content\data\) and delete the &amp;quot;index&amp;quot; and &amp;quot;tlog&amp;quot; folders.&amp;nbsp;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;If also reindexing conversations, n&lt;span&gt;avigate to the &amp;quot;&lt;/span&gt;telligent&lt;span&gt;-conversations&amp;quot; core folder in the Solr home folder (ex. c:\Search\data\home\telligent-conversations\) and delete the &amp;quot;index&amp;quot; and &amp;quot;&lt;/span&gt;tlog&lt;span&gt;&amp;quot; folders.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart the &amp;quot;Telligent Search&amp;quot; service.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="set_the_content_to_be_reindexed"&gt;&lt;a name="Set_the_content_to_be_reindexed"&gt;&lt;/a&gt;Set the content to be reindexed&lt;/h3&gt;
&lt;p&gt;To set the content to be reindexed, you need access to the database where the content is contained and permission to run SQL scripts against the database.&lt;/p&gt;
&lt;p&gt;Execute the following to reset all content:&lt;/p&gt;
&lt;p&gt;/* Resets all default content types */ &lt;br /&gt;DELETE FROM cs_Search_Queue &lt;br /&gt;EXEC te_SearchIndex_ReindexAllDefaultContentTypes &lt;br /&gt;&lt;br /&gt;Execute the following to reset all conversations: &lt;br /&gt;&lt;br /&gt;UPDATE dbo.te_ConversationMessages SET IsIndexed = 0&lt;/p&gt;
&lt;h2 id="things_to_keep_in_mind"&gt;&lt;a name="things"&gt;&lt;/a&gt;Things to keep in mind&lt;/h2&gt;
&lt;p&gt;Due to the fact that this should only be done in rare cases, you should keep in mind a few items to think about prior to resetting your index on a live site:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;During the reindexing period, your search services will not be fully functional on your site.&lt;/li&gt;
&lt;li&gt;You will not get all of the search results returned until the search process has finished, but content that has been indexed at the time of the search will be returned.&lt;/li&gt;
&lt;li&gt;The indexing service can be processor-intensive - so you will want to perform these operations in off hours if possible.&lt;/li&gt;
&lt;li&gt;Back up all data prior to performing any of these steps - the database as well as the search index.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="#top"&gt;top&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="scenario_you_have_the_following_log_for_an_ifilter_index_error"&gt;&lt;a name="Scenario_You_have_the_following_log_for_an_IFilter_index_error"&gt;&lt;/a&gt;Scenario: You have the following log for an IFilter index error&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-family:courier new,courier;"&gt;Error Indexing Attachment : [Filename=document.pdf ]System.ApplicationException: TextFilter error:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;CommunityServer.Components.Search.TextFilterException: IFilter instance not found for file C:\Windows\TEMP\1000.69.1626.document.pdf at CommunityServer.Components.Search.TextFilter.&amp;aacute;&amp;Atilde;&amp;fnof;&amp;acirc;&amp;euro;&amp;scaron;&amp;Atilde;&amp;sbquo;&amp;Acirc;&amp;Acirc;&amp;Atilde;&amp;fnof;&amp;acirc;&amp;euro;&amp;scaron;&amp;Atilde;&amp;sbquo;&amp;Acirc;&amp;Acirc;() at CommunityServer.Components.Search.TextFilter.&amp;aacute;&amp;Atilde;&amp;fnof;&amp;acirc;&amp;euro;&amp;scaron;&amp;Atilde;&amp;sbquo;&amp;Acirc;&amp;Acirc;&amp;Atilde;&amp;fnof;&amp;acirc;&amp;euro;&amp;scaron;&amp;Atilde;&amp;sbquo;&amp;Acirc;&amp;Acirc;() at CommunityServer.Components.Search.TextFilter..ctor(String file) at CommunityServer.Search.MappingExtension.GetAttachmentText(PostAttachment attachment) Search Indexing 9/23/2009 2:26:41 PM WEB1 500 Warning 1000&lt;/span&gt;&lt;/p&gt;
&lt;h3 id="solution_install_ifilter_and_reindex_the_files"&gt;&lt;a name="Solution_Install_iFilter_and_reindex_the_files"&gt;&lt;/a&gt;&lt;span style="font-family:courier new,courier;"&gt;&lt;span style="font-family:arial,helvetica,sans-serif;"&gt;Solution: Install iFilter and reindex the files&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;You do not need to have Windows Search index &amp;#39;D:&amp;quot;; it can be removed. The indexing task copies (and deletes) attachment to the Windows TEMP folder.&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;/span&gt;Download the Adobe PDF iFilter (&lt;a href="http://www.adobe.com/support/downloads/detail.jsp?ftpID=2611" rel="noopener noreferrer" target="_blank"&gt;http://www.adobe.com/support/downloads/detail.jsp?ftpID=2611&lt;/a&gt;). Starting after Adobe 6.0, 32-bit servers only require that you install Adobe Reader to get the iFilter. But for 64-bit servers, you need a different download:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025" rel="noopener noreferrer" target="_blank"&gt;http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Install the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://www.microsoft.com/download/en/details.aspx?id=17062"&gt;Microsoft filter pack&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Install Windows Search (if you have not already done so).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;To be prudent, recycle application pool so you can be certain that the indexing task is refreshed.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;For testing, flag posts that have attachments to be reindexed:&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre class="brush: bash;fontsize: 100; first-line: 1; "&gt;      UPDATE [dbo].[te_Blog_Posts] SET [IsIndexed] = 0 
            WHERE PostID IN (select ContentId from te_Attachments where IsRemote = 0 and ApplicationTypeId = 1)
      UPDATE [dbo].[te_Forum_Threads] SET IsIndexed = 0
            WHERE ThreadId IN (select ContentId from te_Attachments where IsRemote = 0 and ApplicationTypeId = 0 and ApplicationContentTypeId = 0)
      UPDATE [dbo].[te_Forum_ThreadReplies] SET IsIndexed = 0
            WHERE ThreadReplyId IN (select ContentId from te_Attachments where IsRemote = 0 and ApplicationTypeId = 0 and ApplicationContentTypeId = 1)
      UPDATE [dbo].[te_FileGallery_Files] SET IsIndexed = 0
&lt;/pre&gt;
&lt;p&gt;To check the index for documents that have attachment text, you can issue the following query against your Solr instance:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;(&lt;b&gt;Notes&lt;/b&gt;: Keep in mind that there is an almost 30-second delay before the documents are committed to the Solr index, so be patient. Also, do a hard refresh in the browser to avoid the browser caching the results.)&lt;/p&gt;
&lt;p&gt;http://[your Solr Server]:8080/solr/select/?q=attachmenttext:[*+TO+*]&amp;amp;sort=indexed_at+desc&amp;amp;fl=attachmentname,indexed_at&amp;amp;rows=100&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2 id="scenario_the_searchunknownerror_is_repeating_every_minute_or_so"&gt;&lt;/h2&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Search index problems</title><link>https://community.telligent.com/community/11/w/user-documentation/67618/search-index-problems/revision/2</link><pubDate>Fri, 12 Feb 2021 22:41:37 GMT</pubDate><guid isPermaLink="false">4913c3ef-7de7-4669-895e-44e48e6bc536</guid><dc:creator>Michael Kelley</dc:creator><comments>https://community.telligent.com/community/11/w/user-documentation/67618/search-index-problems#comments</comments><description>Revision 2 posted to User Documentation by Michael Kelley on 02/12/2021 22:41:37&lt;br /&gt;
&lt;p&gt;[toc]&lt;/p&gt;
&lt;p&gt;&lt;a name="top"&gt;&lt;/a&gt;Search is a key mechanism that members of your community will use to locate content that they are interested in. You must [[Install and configure search|install and configure search]] for your community.&amp;nbsp;If you are having difficulty with using search, review how to [[Troubleshoot search errors]].&lt;/p&gt;
&lt;h2 id="reindex_your_search_index"&gt;&lt;a name="reindex"&gt;&lt;/a&gt;Reindex your search index&lt;/h2&gt;
&lt;p&gt;The Telligent Community Server search provider uses a powerful search engine to furnish search results for content and conversations within the community. The search instance is self-updating and will add and remove content as it changes on your site. The search results are trimmed based on the user&amp;#39;s roles. If for some reason the index becomes corrupt or has invalid data, you can manually delete and reindex the content on the site.&lt;/p&gt;
&lt;p&gt;The primary reason for reindex your site would be if the search results are not the expected results or they have data that is not correct.&lt;/p&gt;
&lt;p&gt;Reasons this may occur:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Corruption of current data when indexing the site&lt;/li&gt;
&lt;li&gt;Requirement to update the version of the search components&lt;/li&gt;
&lt;li&gt;Failure to synchronize permissions to the search index&lt;/li&gt;
&lt;li&gt;Search indexing tasks fail to update the search index&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="#top"&gt;top&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="reset_the_index"&gt;&lt;a name="reset"&gt;&lt;/a&gt;Reset the index&lt;/h2&gt;
&lt;p&gt;There are two cores (indexes) within the Solr instance: &amp;quot;telligent-content&amp;quot; and &amp;quot;telligent-conversations&amp;quot;. To delete one or both of the cores the following tasks need to be performed:&lt;/p&gt;
&lt;h3 id="delete_the_existing_index"&gt;&lt;a name="Delete_the_existing_index"&gt;&lt;/a&gt;Delete the existing&amp;nbsp;cores&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Stop the &amp;quot;Telligent Search&amp;quot; service using the Windows Services MMC.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Navigate to the &amp;quot;telligent-content&amp;quot; core folder in the Solr home folder (ex. c:\Search\data\home\telligent-content\data\) and delete the &amp;quot;index&amp;quot; and &amp;quot;tlog&amp;quot; folders.&amp;nbsp;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;If also reindexing conversations, n&lt;span&gt;avigate to the &amp;quot;&lt;/span&gt;telligent&lt;span&gt;-conversations&amp;quot; core folder in the Solr home folder (ex. c:\Search\data\home\telligent-conversations\) and delete the &amp;quot;index&amp;quot; and &amp;quot;&lt;/span&gt;tlog&lt;span&gt;&amp;quot; folders.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart the &amp;quot;Telligent Search&amp;quot; service.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="set_the_content_to_be_reindexed"&gt;&lt;a name="Set_the_content_to_be_reindexed"&gt;&lt;/a&gt;Set the content to be reindexed&lt;/h3&gt;
&lt;p&gt;To set the content to be reindexed, you need access to the database where the content is contained and permission to run SQL scripts against the database.&lt;/p&gt;
&lt;p&gt;Execute the following to reset all&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;content&lt;/strong&gt;:&lt;/p&gt;
&lt;div&gt;
&lt;pre class="brush: bash;fontsize: 100; first-line: 1; "&gt;/* Resets all default content types */
DELETE FROM cs_Search_Queue&lt;/pre&gt;
&lt;pre class="brush: bash;fontsize: 100; first-line: 1; "&gt;EXEC te_SearchIndex_ReindexAllDefaultContentTypes&lt;/pre&gt;
&lt;pre class="brush: bash;fontsize: 100; first-line: 1; "&gt;Execute the following to reset all&lt;span style="font-family:inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;strong style="font-family:inherit;"&gt;conversations&lt;/strong&gt;&lt;span style="font-family:inherit;"&gt;:&lt;/span&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;pre class="brush: bash;fontsize: 100; first-line: 1; "&gt;UPDATE dbo.te_ConversationMessages SET IsIndexed = 0&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h2 id="things_to_keep_in_mind"&gt;&lt;a name="things"&gt;&lt;/a&gt;Things to keep in mind&lt;/h2&gt;
&lt;p&gt;Due to the fact that this should only be done in rare cases, you should keep in mind a few items to think about prior to resetting your index on a live site:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;During the reindexing period, your search services will not be fully functional on your site.&lt;/li&gt;
&lt;li&gt;You will not get all of the search results returned until the search process has finished, but content that has been indexed at the time of the search will be returned.&lt;/li&gt;
&lt;li&gt;The indexing service can be processor-intensive - so you will want to perform these operations in off hours if possible.&lt;/li&gt;
&lt;li&gt;Back up all data prior to performing any of these steps - the database as well as the search index.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="#top"&gt;top&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="scenario_you_have_the_following_log_for_an_ifilter_index_error"&gt;&lt;a name="Scenario_You_have_the_following_log_for_an_IFilter_index_error"&gt;&lt;/a&gt;Scenario: You have the following log for an IFilter index error&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-family:courier new,courier;"&gt;Error Indexing Attachment : [Filename=document.pdf ]System.ApplicationException: TextFilter error:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;CommunityServer.Components.Search.TextFilterException: IFilter instance not found for file C:\Windows\TEMP\1000.69.1626.document.pdf at CommunityServer.Components.Search.TextFilter.&amp;aacute;&amp;Atilde;&amp;fnof;&amp;acirc;&amp;euro;&amp;scaron;&amp;Atilde;&amp;sbquo;&amp;Acirc;&amp;Acirc;&amp;Atilde;&amp;fnof;&amp;acirc;&amp;euro;&amp;scaron;&amp;Atilde;&amp;sbquo;&amp;Acirc;&amp;Acirc;() at CommunityServer.Components.Search.TextFilter.&amp;aacute;&amp;Atilde;&amp;fnof;&amp;acirc;&amp;euro;&amp;scaron;&amp;Atilde;&amp;sbquo;&amp;Acirc;&amp;Acirc;&amp;Atilde;&amp;fnof;&amp;acirc;&amp;euro;&amp;scaron;&amp;Atilde;&amp;sbquo;&amp;Acirc;&amp;Acirc;() at CommunityServer.Components.Search.TextFilter..ctor(String file) at CommunityServer.Search.MappingExtension.GetAttachmentText(PostAttachment attachment) Search Indexing 9/23/2009 2:26:41 PM WEB1 500 Warning 1000&lt;/span&gt;&lt;/p&gt;
&lt;h3 id="solution_install_ifilter_and_reindex_the_files"&gt;&lt;a name="Solution_Install_iFilter_and_reindex_the_files"&gt;&lt;/a&gt;&lt;span style="font-family:courier new,courier;"&gt;&lt;span style="font-family:arial,helvetica,sans-serif;"&gt;Solution: Install iFilter and reindex the files&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;You do not need to have Windows Search index &amp;#39;D:&amp;quot;; it can be removed. The indexing task copies (and deletes) attachment to the Windows TEMP folder.&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;/span&gt;Download the Adobe PDF iFilter (&lt;a href="http://www.adobe.com/support/downloads/detail.jsp?ftpID=2611" rel="noopener noreferrer" target="_blank"&gt;http://www.adobe.com/support/downloads/detail.jsp?ftpID=2611&lt;/a&gt;). Starting after Adobe 6.0, 32-bit servers only require that you install Adobe Reader to get the iFilter. But for 64-bit servers, you need a different download:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025" rel="noopener noreferrer" target="_blank"&gt;http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Install the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://www.microsoft.com/download/en/details.aspx?id=17062"&gt;Microsoft filter pack&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Install Windows Search (if you have not already done so).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;To be prudent, recycle application pool so you can be certain that the indexing task is refreshed.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;For testing, flag posts that have attachments to be reindexed:&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre class="brush: bash;fontsize: 100; first-line: 1; "&gt;      UPDATE [dbo].[te_Blog_Posts] SET [IsIndexed] = 0 
            WHERE PostID IN (select ContentId from te_Attachments where IsRemote = 0 and ApplicationTypeId = 1)
      UPDATE [dbo].[te_Forum_Threads] SET IsIndexed = 0
            WHERE ThreadId IN (select ContentId from te_Attachments where IsRemote = 0 and ApplicationTypeId = 0 and ApplicationContentTypeId = 0)
      UPDATE [dbo].[te_Forum_ThreadReplies] SET IsIndexed = 0
            WHERE ThreadReplyId IN (select ContentId from te_Attachments where IsRemote = 0 and ApplicationTypeId = 0 and ApplicationContentTypeId = 1)
      UPDATE [dbo].[te_FileGallery_Files] SET IsIndexed = 0
&lt;/pre&gt;
&lt;p&gt;To check the index for documents that have attachment text, you can issue the following query against your Solr instance:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;(&lt;b&gt;Notes&lt;/b&gt;: Keep in mind that there is an almost 30-second delay before the documents are committed to the Solr index, so be patient. Also, do a hard refresh in the browser to avoid the browser caching the results.)&lt;/p&gt;
&lt;p&gt;http://[your Solr Server]:8080/solr/select/?q=attachmenttext:[*+TO+*]&amp;amp;sort=indexed_at+desc&amp;amp;fl=attachmentname,indexed_at&amp;amp;rows=100&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2 id="scenario_the_searchunknownerror_is_repeating_every_minute_or_so"&gt;&lt;/h2&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Search index problems</title><link>https://community.telligent.com/community/11/w/user-documentation/67618/search-index-problems/revision/1</link><pubDate>Wed, 09 Dec 2020 21:53:37 GMT</pubDate><guid isPermaLink="false">4913c3ef-7de7-4669-895e-44e48e6bc536</guid><dc:creator>Michael Kelley</dc:creator><comments>https://community.telligent.com/community/11/w/user-documentation/67618/search-index-problems#comments</comments><description>Revision 1 posted to User Documentation by Michael Kelley on 12/09/2020 21:53:37&lt;br /&gt;
&lt;p&gt;[toc]&lt;/p&gt;
&lt;p&gt;&lt;a name="top"&gt;&lt;/a&gt;Search is a key mechanism that members of your community will use to locate content that they are interested in. You must [[Install and configure search|install and configure search]] for your community.&amp;nbsp;If you are having difficulty with using search, review how to [[Troubleshoot search errors]].&lt;/p&gt;
&lt;h2 id="reindex_your_search_index"&gt;&lt;a name="reindex"&gt;&lt;/a&gt;Reindex your search index&lt;/h2&gt;
&lt;p&gt;The Telligent Community Server search provider uses a powerful search engine to furnish search results for content and conversations within the community. The search instance is self-updating and will add and remove content as it changes on your site. The search results are trimmed based on the user&amp;#39;s roles. If for some reason the index becomes corrupt or has invalid data, you can manually delete and reindex the content on the site.&lt;/p&gt;
&lt;p&gt;The primary reason for reindex your site would be if the search results are not the expected results or they have data that is not correct.&lt;/p&gt;
&lt;p&gt;Reasons this may occur:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Corruption of current data when indexing the site&lt;/li&gt;
&lt;li&gt;Requirement to update the version of the search components&lt;/li&gt;
&lt;li&gt;Failure to synchronize permissions to the search index&lt;/li&gt;
&lt;li&gt;Search indexing tasks fail to update the search index&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="#top"&gt;top&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="reset_the_index"&gt;&lt;a name="reset"&gt;&lt;/a&gt;Reset the index&lt;/h2&gt;
&lt;p&gt;There are two cores (indexes) within the Solr instance: &amp;quot;telligent-content&amp;quot; and &amp;quot;telligent-conversations&amp;quot;. To delete one or both of the cores the following tasks need to be performed:&lt;/p&gt;
&lt;h3 id="delete_the_existing_index"&gt;&lt;a name="Delete_the_existing_index"&gt;&lt;/a&gt;Delete the existing&amp;nbsp;cores&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Stop the &amp;quot;Telligent Search&amp;quot; service using the Windows Services MMC.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Navigate to the &amp;quot;telligent-content&amp;quot; core folder in the Solr home folder (ex. c:\Search\data\home\telligent-content\data\) and delete the &amp;quot;index&amp;quot; and &amp;quot;tlog&amp;quot; folders.&amp;nbsp;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;If also reindexing conversations, n&lt;span&gt;avigate to the &amp;quot;&lt;/span&gt;telligent&lt;span&gt;-conversations&amp;quot; core folder in the Solr home folder (ex. c:\Search\data\home\telligent-conversations\) and delete the &amp;quot;index&amp;quot; and &amp;quot;&lt;/span&gt;tlog&lt;span&gt;&amp;quot; folders.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart the &amp;quot;Telligent Search&amp;quot; service.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="set_the_content_to_be_reindexed"&gt;&lt;a name="Set_the_content_to_be_reindexed"&gt;&lt;/a&gt;Set the content to be reindexed&lt;/h3&gt;
&lt;p&gt;To set the content to be reindexed, you need access to the database where the content is contained and permission to run SQL scripts against the database.&lt;/p&gt;
&lt;p&gt;Execute the following to reset all&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;content&lt;/strong&gt;:&lt;/p&gt;
&lt;div&gt;
&lt;pre class="brush: bash;fontsize: 100; first-line: 1; "&gt;/* Resets all default content types */
delete from cs_Search_Queue
exec te_SearchIndex_Update @IsIndexed = 0
update dbo.telligent_Calendar_Event set IsIndexed = 0
update dbo.telligent_Ideas_Ideas set IsIndexed = 0&lt;/pre&gt;
&lt;p&gt;Execute e the following to reset all&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;conversations&lt;/strong&gt;:&lt;/p&gt;
&lt;div&gt;
&lt;pre class="brush: bash;fontsize: 100; first-line: 1; "&gt;update dbo.te_ConversationMessages set IsIndexed = 0&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h2 id="things_to_keep_in_mind"&gt;&lt;a name="things"&gt;&lt;/a&gt;Things to keep in mind&lt;/h2&gt;
&lt;p&gt;Due to the fact that this should only be done in rare cases, you should keep in mind a few items to think about prior to resetting your index on a live site:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;During the reindexing period, your search services will not be fully functional on your site.&lt;/li&gt;
&lt;li&gt;You will not get all of the search results returned until the search process has finished, but content that has been indexed at the time of the search will be returned.&lt;/li&gt;
&lt;li&gt;The indexing service can be processor-intensive - so you will want to perform these operations in off hours if possible.&lt;/li&gt;
&lt;li&gt;Back up all data prior to performing any of these steps - the database as well as the search index.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="#top"&gt;top&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="scenario_you_have_the_following_log_for_an_ifilter_index_error"&gt;&lt;a name="Scenario_You_have_the_following_log_for_an_IFilter_index_error"&gt;&lt;/a&gt;Scenario: You have the following log for an IFilter index error&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-family:courier new,courier;"&gt;Error Indexing Attachment : [Filename=document.pdf ]System.ApplicationException: TextFilter error:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;CommunityServer.Components.Search.TextFilterException: IFilter instance not found for file C:\Windows\TEMP\1000.69.1626.document.pdf at CommunityServer.Components.Search.TextFilter.&amp;aacute;&amp;Atilde;&amp;fnof;&amp;acirc;&amp;euro;&amp;scaron;&amp;Atilde;&amp;sbquo;&amp;Acirc;&amp;Acirc;&amp;Atilde;&amp;fnof;&amp;acirc;&amp;euro;&amp;scaron;&amp;Atilde;&amp;sbquo;&amp;Acirc;&amp;Acirc;() at CommunityServer.Components.Search.TextFilter.&amp;aacute;&amp;Atilde;&amp;fnof;&amp;acirc;&amp;euro;&amp;scaron;&amp;Atilde;&amp;sbquo;&amp;Acirc;&amp;Acirc;&amp;Atilde;&amp;fnof;&amp;acirc;&amp;euro;&amp;scaron;&amp;Atilde;&amp;sbquo;&amp;Acirc;&amp;Acirc;() at CommunityServer.Components.Search.TextFilter..ctor(String file) at CommunityServer.Search.MappingExtension.GetAttachmentText(PostAttachment attachment) Search Indexing 9/23/2009 2:26:41 PM WEB1 500 Warning 1000&lt;/span&gt;&lt;/p&gt;
&lt;h3 id="solution_install_ifilter_and_reindex_the_files"&gt;&lt;a name="Solution_Install_iFilter_and_reindex_the_files"&gt;&lt;/a&gt;&lt;span style="font-family:courier new,courier;"&gt;&lt;span style="font-family:arial,helvetica,sans-serif;"&gt;Solution: Install iFilter and reindex the files&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;You do not need to have Windows Search index &amp;#39;D:&amp;quot;; it can be removed. The indexing task copies (and deletes) attachment to the Windows TEMP folder.&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;/span&gt;Download the Adobe PDF iFilter (&lt;a href="http://www.adobe.com/support/downloads/detail.jsp?ftpID=2611" rel="noopener noreferrer" target="_blank"&gt;http://www.adobe.com/support/downloads/detail.jsp?ftpID=2611&lt;/a&gt;). Starting after Adobe 6.0, 32-bit servers only require that you install Adobe Reader to get the iFilter. But for 64-bit servers, you need a different download:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025" rel="noopener noreferrer" target="_blank"&gt;http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Install the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://www.microsoft.com/download/en/details.aspx?id=17062"&gt;Microsoft filter pack&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Install Windows Search (if you have not already done so).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;To be prudent, recycle application pool so you can be certain that the indexing task is refreshed.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;For testing, flag posts that have attachments to be reindexed:&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre class="brush: bash;fontsize: 100; first-line: 1; "&gt;      UPDATE [dbo].[te_Blog_Posts] SET [IsIndexed] = 0 
            WHERE PostID IN (select ContentId from te_Attachments where IsRemote = 0 and ApplicationTypeId = 1)
      UPDATE [dbo].[te_Forum_Threads] SET IsIndexed = 0
            WHERE ThreadId IN (select ContentId from te_Attachments where IsRemote = 0 and ApplicationTypeId = 0 and ApplicationContentTypeId = 0)
      UPDATE [dbo].[te_Forum_ThreadReplies] SET IsIndexed = 0
            WHERE ThreadReplyId IN (select ContentId from te_Attachments where IsRemote = 0 and ApplicationTypeId = 0 and ApplicationContentTypeId = 1)
      UPDATE [dbo].[te_FileGallery_Files] SET IsIndexed = 0
&lt;/pre&gt;
&lt;p&gt;To check the index for documents that have attachment text, you can issue the following query against your Solr instance:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;(&lt;b&gt;Notes&lt;/b&gt;: Keep in mind that there is an almost 30-second delay before the documents are committed to the Solr index, so be patient. Also, do a hard refresh in the browser to avoid the browser caching the results.)&lt;/p&gt;
&lt;p&gt;http://[your Solr Server]:8080/solr/select/?q=attachmenttext:[*+TO+*]&amp;amp;sort=indexed_at+desc&amp;amp;fl=attachmentname,indexed_at&amp;amp;rows=100&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2 id="scenario_the_searchunknownerror_is_repeating_every_minute_or_so"&gt;&lt;/h2&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>