How to get search to work?

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
1/4/2007 12:33:14 AM
Gravatar
Total Posts 22

How to get search to work?

Hej Joe

I can not get the search function to work. www.sfkspinnaren.se

It is hosted, is there some settings i am missing?

Regards

Tommy

1/4/2007 2:15:50 AM
Gravatar
Total Posts 18439

Re: How to get search to work?

Hi Tommy,

When I visit your site and try to search it works for me.

Joe
1/4/2007 3:53:32 AM
Gravatar
Total Posts 22

Re: How to get search to work?

Hej Joe
You are right, it work for whole words like 'Sallerup' but not if the word is cut like Salleru' no problem.

Is there a way to make it work if the word contains Swedish characters like 'gånger'?
When you look at the result text from search
SFK Spinnaren har idag 5 st småbåtar som medlemmarna kan låna Ringsj&
it replaces Swedish characters.


I tried to add ÅÄÖ in web.config but then the site stop working.
<add key="AlphaPagerChars" value="ABCDEFGHIJKLMNOPQRSTUVWXYZ" />
Or is it the mysql database?

Regards

Tommy

1/4/2007 4:05:50 AM
Gravatar
Total Posts 18439

Re: How to get search to work?

Hi Tommy,

Can you edit the SearchResults.aspx file and where you see this:

<%# Server.HtmlEncode(DataBinder.Eval(Container.DataItem, "Intro").ToString()) %>

replace it with this:

<%# SecurityHelper.PreventCrossSiteScripting(DataBinder.Eval(Container.DataItem, "Intro").ToString()) %>

and let me know if that fixes it?

Thanks,

Joe
1/4/2007 5:22:07 AM
Gravatar
Total Posts 22

Re: How to get search to work?

Hej Joe

It working for the replay string, it now reply’s

SFK Spinnaren har idag 5 st småbåtar som medlemmarna kan låna

Any idea how to make search work if the word contains Swedish characters like 'gånger'?


Regards

Tommy

1/4/2007 6:42:04 AM
Gravatar
Total Posts 18439

Re: How to get search to work?

Is any error being logged in /Data/curentlog.config when you search on words with Swedish characters?

Joe
1/4/2007 6:57:44 AM
Gravatar
Total Posts 18439

Re: How to get search to work?

On the DotLucene site http://www.dotlucene.net/, they mention it is localizable for "Brazilian, Czech, Chinese, Dutch, English, French, German, Japanese, Korean and Russian" so maybe it needs an implementation for Swedish.

Joe
1/4/2007 6:58:32 AM
Gravatar
Total Posts 22

Re: How to get search to work?

Hej Joe
No, There is no new entrys, some old like

2007-01-04 12:22:12,454 [676] ERROR mojoPortal.Web.ForumUI.ForumThreadView [(null)] - ForumThreadView Error Parsing pagenumber from query string
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at mojoPortal.Web.ForumUI.ForumThreadView.LoadParams()
2007-01-04 17:29:18,692 [4160] ERROR mojoPortal.Web.ForumUI.ForumThreadView [(null)] - ForumThreadView Error Parsing pagenumber from query string
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at mojoPortal.Web.ForumUI.ForumThreadView.LoadParams()

Regards

Tommy

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