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

Forums / Developing with Sitefinity / search returning no records

search returning no records

7 posts, 0 answered
  1. Surya CD
    Surya CD avatar
    57 posts
    Registered:
    06 Apr 2010
    21 Jun 2012
    Link to this post
    Hi,
    Search option is working in local server. But in live, whatever word is given for search, it returns
    0 search results. can anyone please help.

    Thanks.
  2. Tim
    Tim avatar
    258 posts
    Registered:
    22 Jun 2011
    21 Jun 2012
    Link to this post
    Surya CD,

    First, I'd double check that the search index was defined correctly and, if it is, reindex it.
  3. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
  4. Steve
    Steve avatar
    6 posts
    Registered:
    18 Nov 2010
    26 Jun 2012
    Link to this post
    We are getting unexpected results.  I have at least 5 pages with the word 'asset' in the content, but only 3 are listed.  When defining the Search Index, what do they mean by 'default page that this type is published on'?
  5. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    26 Jun 2012
    Link to this post
    Default page where like all your "News" is listed, so when it returns the search result, there's a link to take the user over to it.

    I find the problem is since it's Lucene you need wildcards and other things to improve the search results...I wish it worked more like google...there's a PITS somwhere
  6. Steve
    Steve avatar
    6 posts
    Registered:
    18 Nov 2010
    26 Jun 2012
    Link to this post
    In 4.4, is there a way to exclude pages from the site search?  I have determined that several of the pages that access Session variables are causing exception during the indexing.  I read that you could determine if there were problems by starting your site in debug and then build indexes. If there are exceptions, then that portion of the index won't build.  So... can I exclude the pages that have exceptions?
  7. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    26 Jun 2012
    Link to this post
    You can put this code into your offending custom controls and it'll hide them from the indexer

    this.Visible = this.GetIndexRenderMode() == Telerik.Sitefinity.Web.UI.IndexRenderModes.Normal;
    (this being the control...but you get the idea)
7 posts, 0 answered