+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Problem with search index

Problem with search index

9 posts, 0 answered
  1. Paul
    Paul avatar
    176 posts
    Registered:
    18 Nov 2008
    19 Jun 2009
    Link to this post

    Hi!

    I have a problem with a search engine of Sitefinity. I create a page index and set All Site as source for search. But after few minutes of indexing I get only 1700 words and this is wrong because befor 1927 patch installation I have more then 10000 words indexed. What was happened with indexes? Also I have a strange behavior of search indexes in Sitefinity: I create new index and add two sources - page index and news index. After this I start indexing and I was redirected to error page with text that I have not any indexes and their sources. What can cause this? I delete my new index and all start working fine. 

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    19 Jun 2009
    Link to this post
    Hi Paul,

    The problem could be related if you are using RadScriptManager in your master pages. If so set EnableHandlerDetection property of the control to "false". Another option to fix the problem is using ScriptManager.

    If the problem persists, provide us with more information - project versions, custom implementations, errors during the indexing( clear sitefinity.log file and start indexing).

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Paul
    Paul avatar
    176 posts
    Registered:
    18 Nov 2008
    19 Jun 2009
    Link to this post

    Hi Ivan!

    Thanks for the reply!

    I have set value for EnableHandlerDetection to false on RadScriptManager in my masterpage but I get the same thing: after few minutes of indexing It show me that "the page cannot be displayed". When I open page with indexes It show me new result of indexing 3670 words (before was 1700) =) What can cause this error?

  4. Paul
    Paul avatar
    176 posts
    Registered:
    18 Nov 2008
    19 Jun 2009
    Link to this post

    After second try to start indexing process I get this:

    Server Error in '/' Application.
    no segments* file found: files:
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.IO.FileNotFoundException: no segments* file found: files:

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    19 Jun 2009
    Link to this post
    Hello Paul,

    I suggest that you should delete/remove the folders located under App_Data/Search/[name_of_index]. Then, login into Sitefinity backend, go to Administration >> Services and start indexing. The removed folders with the index names and data inside should be recreated.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Chris Emerson
    Chris Emerson avatar
    13 posts
    Registered:
    17 Apr 2009
    19 Apr 2010
    Link to this post
    Hey Ivan,
    We experienced this issue as well (both when publishing a page and deleting a page).

    I've just followed the steps you outlined on the server but could you elaborate on how this problem originates and if/when there is a permanent fix for avoiding it altogether in the future?

    Thanks
  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    19 Apr 2010
    Link to this post
    Hi Chris Emerson,

    Somehow the Lucene cannot create its segments properly. You could take a look at App_Data/sitefinity.log and see if there are any related errors.

    This is not the default behavior of the built-in SearchIndex. Make sure that you do not have any other custom index that is triggered in the same time as the page index you have created - for instance you have a common index - pages, news, blogs etc.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  8. Dennis
    Dennis avatar
    19 posts
    Registered:
    26 May 2009
    24 May 2011
    Link to this post
    Hello Ivan

    I have kind of the same problem - I received an error every time I published a page.

    The SF version is: Sitefinity 3.7.2136.2:1

    I turned off the auto index - and deleted the files under the app_data/search folder.

    Now when I try to access the administration tab in Sitefinity I get the following error:

    no segments* file found: files:


    and sometimes I receive an error with not enough space on disk (there is plenty space on disk)

    I also get the "Not enough space..." error when I try to upload even small files (like 400 kb) through SF - I then have to upload the files through FTP instead.

    Hope you can help - with those problems.

    Please contact me if you want my administrator login for testing.

    Regards Dennis

  9. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    24 May 2011
    Link to this post
    Hi Dennis,

    1. Open App_Data/Search folder. This folder contains the information about your search indexes and the segment files generated by Lucene search engine.

    2. Remove all folders inside App_Data/Search

    3. Try to access the backend >> Administration >> Search. If the problem persists go to step four.

    4. Open your database and remove all data from the tables listed below

    • [sf_Search_IndexignClient] - collects data for all indexes you have created
    • [sf_Search_IndexignService] - collects data for the index name and associated service
    • [sf_Search_ClientSettings] - collects data for all client settings - properties, starting node, categories etc.

    5. Go to the backend and create your search indexes. Then run them. Make sure that ASP.NET Worker process has full access( or at least read/write permissions) over App_Data/Search folder


    Lucene also uses Widnows Temp folder, so you can clear it. It is possible that there is not enough space there.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
9 posts, 0 answered