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.
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.
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?
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
I am experiencing the same problem.
Thanks
Which version of ublogsy and umbraco are you using?
Try deleting your examine indexes and umbraco.config, then publish.
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?
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.
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
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.
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
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
Owen did you also delete your examine indexes and republish?
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?
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.
is working on a reply...