Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Allan49 35 posts 55 karma points
    Oct 13, 2011 @ 20:04
    Allan49
    0

    Search is not working in a simple brand new installation

    Hi,

    I have just installed ublogsy and its search is not working. No matter what word I search, I get zero results. I copied and pated words within the post bodies into the search box still zero result.

    Am I missing any configuration settings?

    Thank you

  • Owen Hope 119 posts 140 karma points
    Oct 15, 2011 @ 01:01
    Owen Hope
    0

    I am experiencing the same problem.


    Thanks

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Oct 16, 2011 @ 17:49
    Anthony Dang
    0

    Which version of ublogsy and umbraco are you using?

    Try deleting your examine indexes and umbraco.config, then publish.

     

     

  • Allan49 35 posts 55 karma points
    Oct 17, 2011 @ 04:12
    Allan49
    0

    Thank you for help.

    Umbraco 4.7.1

    uBlogsy, 1.3.7 

    I deleted the whole App_Data\TEMP and App_Data\umbraco.config. Then the issue fixed.

    How ofthen do I need to do this process?

     

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Oct 17, 2011 @ 13:20
    Anthony Dang
    0

    You shouldnt need to do this ever, but sometimes if you're developing and doing a lot of stuff, something like incorrect file permissions slips through.

    Always check file permissions.

     

  • Owen Hope 119 posts 140 karma points
    Oct 17, 2011 @ 21:53
    Owen Hope
    0

    Hi Anthony,

    I deleted the App_Data/TEMP and App_Data/umbraco.config and then re-published but I still cannot search.

    Any advice?

     

    Owen

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Oct 23, 2011 @ 15:56
    Anthony Dang
    0

    Hmm...Lets see if the examine search is working at all.

    Delete everything from the uBlogsyListPosts.cshtml 

    Add these 2 lines:

    IEnumerable<SearchResult> results = ExamineManager.Instance.Search("YOUR SEARCH TERM", true); 

    @results.Count();

    Hopefully count is greater than 0.

     

     

  • Owen Hope 119 posts 140 karma points
    Oct 25, 2011 @ 00:59
    Owen Hope
    0

    Hi Anthony,


    I tried those two lines, and I was retrieveing a proper number of found "search words" but when I replace the code back no avail.

    Thanks

    Owen

  • Owen Hope 119 posts 140 karma points
    Oct 26, 2011 @ 18:55
    Owen Hope
    0

    Hmm, still can't get this working properly.

    I have checked that permissions are OK in App_Data and removed the two files as stated earlier,

    I tried your two lines of code and I do get a number of items found with the search keyword. So that part is working.

    The page does a really quick refresh, but no search is done.

    Any other debugging/info would be much appreciated.

    Love the blog!

    Owen

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Oct 27, 2011 @ 10:57
    Anthony Dang
    0

    Owen did you also delete your examine indexes and republish?

     

  • Janet Kirklen 102 posts 212 karma points
    Dec 07, 2013 @ 01:30
    Janet Kirklen
    0

    I'm running Umbraco 4.7.2 and 2.1.1.2 of uBlogsy.  Search on my main site returns results and it even returns nodes from posts in the blog area.  But the serach from the uBlogsy landing page returns 0 results.  How does uBlogsy know which Examine index to use?  The index on my main site is called ExternalIndex.  

    Update:  I am now getting an error returned on my search results page.  Perhaps this is helpful:

    Error Loading Razor Script (file: uBlogsy - List Posts) Object reference not set to an instance of an object.    at uBlogsy.BusinessLogic.PostService.<>c__DisplayClass19.<DoSearch>b__17(DynamicNode x) in d:\_PROJECTS\Personal\uBlogsy\uBlogsy\uBlogsy\uBlogsy.BusinessLogic\PostService.cs:line 543
      at System.Linq.Enumerable.<>c__DisplayClassf`1.<CombinePredicates>b__e(TSource x)
      at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
      at System.Linq.Enumerable.<DistinctIterator>d__81`1.MoveNext()
      at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
      at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__0.MoveNext()
      at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source)
      at uBlogsy.BusinessLogic.PostService.GetContentForPage(IEnumerable`1 nodes, Int32 pageNo, Int32 itemsPerPage) in d:\_PROJECTS\Personal\uBlogsy\uBlogsy\uBlogsy\uBlogsy.BusinessLogic\PostService.cs:line 613
      at uBlogsy.BusinessLogic.PostService.GetPosts(Int32 nodeId, String tag, String category, String author, String searchTerm, String commenter, Int32 pageNo, Int32 itemsPerPage) in d:\_PROJECTS\Personal\uBlogsy\uBlogsy\uBlogsy\uBlogsy.BusinessLogic\PostService.cs:line 223
      at ASP._Page_macroScripts_uBlogsy_uBlogsyListPosts_cshtml.Execute() in e:\web\healthykids\htdocs\macroScripts\uBlogsy\uBlogsyListPosts.cshtml:line 45
      at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
      at System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors)

    Error loading MacroEngine script (file: /uBlogsy/uBlogsyListPosts.cshtml, Type: ''
    Object reference not set to an instance of an object.
      at umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId)


    This is my first experience with uBlogsy so perhaps i've missed something somewhere. I've also noticed that my main search is not indexing the post title.  I thought that in my examineIndex.config that in my Index Set that if I left the blank that all document properties would be indexed.  Is that not the case?

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Dec 16, 2013 @ 18:10
    Anthony Dang
    0

    Hi

    That crash is a strange one. I'm not sure what's going on there, but my code doesnt line up with that line number.

    uBlogsy uses  

    results = ExamineManager.Instance.Search(cleanedSearchTerm, true)

    So it should be the external index.

    Can you make sure that the external indexes exist.

     

     

Please Sign in or register to post replies

Write your reply to:

Draft