Problems with search feature

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
10/8/2009 8:24:25 AM
Gravatar
Total Posts 22

Problems with search feature

Hello Joe,

this is Stephan Hofer from eTASK Service-Managemen, Cologe, Germany.

Since we updated the mojo software to version 2.3.1.6 we have problems with the search feature.

For some search terms the website " /SearchResults.aspx" returns following error message:

We're sorry but a server error has occurred while trying to process your request.

The error has been logged and will be reviewed by our staff as soon as possible. It is possible that the error was just a momentary hiccup and you may wish to use the back button and try again or go back to the home page.

For some search terms the search returns correct results as usual - also for those who don't return any reslts ("No results found.")

I have found out that the error is reported to the log file. Here is a part of our log file, where I reproduced the error three times one after another:

2009-10-07 11:15:07,906 ERROR mojoPortal.Web.Global - 192.168.10.8-de-DE -

/SearchResults.aspx?q=RFID

System.IndexOutOfRangeException: Not a valid hit number: 4

bei Lucene.Net.Search.Hits.HitDoc(Int32 n)

bei Lucene.Net.Search.Hits.Doc(Int32 n)

bei mojoPortal.Business.WebHelpers.IndexHelper.Search(Int32 siteId, Boolean

isAdmin, List`1 userRoles, Guid featureGuid, String queryText, Boolean

highlightResults, Int32 pageNumber, Int32 pageSize, Int32& totalHits)

bei mojoPortal.Web.UI.Pages.SearchResults.DoSearch()

bei mojoPortal.Web.UI.Pages.SearchResults.Page_Load(Object sender, EventArgs

e)

bei System.Web.UI.Control.OnLoad(EventArgs e)

bei mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e)

bei System.Web.UI.Control.LoadRecursive()

bei System.Web.UI.Page.ProcessRequestMain(Boolean

includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

2009-10-07 11:15:22,046 ERROR mojoPortal.Web.mojoBasePage - 192.168.10.8-de-DE

- /SearchResults.aspx?q=Google

System.IndexOutOfRangeException: Not a valid hit number: 3

bei Lucene.Net.Search.Hits.HitDoc(Int32 n)

bei Lucene.Net.Search.Hits.Doc(Int32 n)

bei mojoPortal.Business.WebHelpers.IndexHelper.Search(Int32 siteId, Boolean

isAdmin, List`1 userRoles, Guid featureGuid, String queryText, Boolean

highlightResults, Int32 pageNumber, Int32 pageSize, Int32& totalHits)

bei mojoPortal.Web.UI.Pages.SearchResults.DoSearch()

bei mojoPortal.Web.UI.Pages.SearchResults.Page_Load(Object sender, EventArgs

e)

bei System.Web.UI.Control.OnLoad(EventArgs e)

bei mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e)

bei System.Web.UI.Control.LoadRecursive()

bei System.Web.UI.Page.ProcessRequestMain(Boolean

includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

2009-10-07 11:15:22,046 ERROR mojoPortal.Web.Global - 192.168.10.8-de-DE -

/SearchResults.aspx?q=Google

System.IndexOutOfRangeException: Not a valid hit number: 3

bei Lucene.Net.Search.Hits.HitDoc(Int32 n)

bei Lucene.Net.Search.Hits.Doc(Int32 n)

bei mojoPortal.Business.WebHelpers.IndexHelper.Search(Int32 siteId, Boolean

isAdmin, List`1 userRoles, Guid featureGuid, String queryText, Boolean

highlightResults, Int32 pageNumber, Int32 pageSize, Int32& totalHits)

bei mojoPortal.Web.UI.Pages.SearchResults.DoSearch()

bei mojoPortal.Web.UI.Pages.SearchResults.Page_Load(Object sender, EventArgs

e)

bei System.Web.UI.Control.OnLoad(EventArgs e)

bei mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e)

bei System.Web.UI.Control.LoadRecursive()

bei System.Web.UI.Page.ProcessRequestMain(Boolean

includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

I have also found out, that I am not able to reproduce the error, when I'm logged in to the mojoportal.

Maybe you can help us with this problem.
I had to hide the search link as long as this error exists.

10/8/2009 8:24:57 AM
Gravatar
Total Posts 22

Re: Problems with search feature

Sry, THANK YOU VERY MUCH in advance Smile

10/8/2009 8:47:54 AM
Gravatar
Total Posts 18439

Re: Problems with search feature

Hi Stephan,

I would recommend upgrading to 2.3.1.9

Then make sure you have this in your user.config

<add key="SearchIncludeModuleRoleFilters" value="true" />  
<add key="EnableSearchResultsHighlighting" value="true" />  
<add key="SearchUseBackwardCompatibilityMode" value="false" />
<add key="DisableSearchFeatureFilters" value="false" />

then touch web.config to recycle the app.

then rebuild the search index

Hope it helps,

Joe

10/27/2009 7:31:34 AM
Gravatar
Total Posts 22

Re: Problems with search feature

Hi Joe,

thank you very much for your answer... this issue is not high in priority. The next update for our Mojo Software is not planned yet.

Stephan

You must sign in to post in the forums. This thread is closed to new posts.