Search forum

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.
2/20/2007 2:48:22 AM
Gravatar
Total Posts 41

Search forum

Hi!

I'm having problem with the search function. I want to search for a word in all forums but the result I get back isn't complete. I'm sure there are other threads that should show up in the search result.

Is there a config setting or something that I have missed?

Thanks

Emil

2/20/2007 7:59:23 AM
Gravatar
Total Posts 18439

Re: Search forum

Hi Emil,

Can you provide steps to reproduce this bug?

Thanks,

Joe
2/20/2007 8:14:32 AM
Gravatar
Total Posts 41

Re: Search forum

If I'm using the search on this site and searching for the keyword "problem" I get 200 results back, seems ok. When I'm searching on my site for the word "Operationer" (which is used in several posts) I get 0 results back. Could this be affected that I'm using swedish characters in the posts?
2/20/2007 8:31:22 AM
Gravatar
Total Posts 18439

Re: Search forum

Hi Emil,

Yes it is because of Swedish characters, if you search this site for "swedish characters" you will find several posts about this problem. Its because the Lucene.NET search engine is not localized or implemented for Swedish. I'm not sure what it would take to implement it, I don't know much about the internal workings of Lucene myself.

Wish I had a solution.

Joe
2/21/2007 4:35:56 AM
Gravatar
Total Posts 41

Re: Search forum

Hi Joe!

1. If I'm logged in and searching (without swedish chars), forum results are included. If I'm not logged in, forum posts are excluded. Is this by design or a bug?

2. It's possible to search for swedish chars if using the html code instead in the search box. Searching for the swedish word "ändringar" will result in 0 match, but searching for "Ändringar" will find it. A hackfix would be to change the searchstring before searching. What do you think?

/Emil

2/21/2007 7:47:34 AM
Gravatar
Total Posts 18439

Re: Search forum

1. Depends on the permission to view the page the forum is on. If its visible to anonymous users then anonymous users can search and see the search results. If not they have to be logged in and in a role with permission to see the page.

When I search this site without being logged in I get forums posts in the search results because anonymous users can view the forum page.

2. That doesn't seem to work on this site. I get 0 results searching for "ändringar" and 0 results searching for "Ändringar" but if it worked I should see your post.

Joe
2/22/2007 1:28:18 AM
Gravatar
Total Posts 41

Re: Search forum

1. I can view the forum without login, but the search doesn't work on my site. It doesn't behave the same way as this site does. It's really strange. Is role permissions the only thing that can affect search?

2. Again, it works on my site and not here. I'm really confused.

Can the culture setting in in web.config have anything to do with this?

2/22/2007 7:40:41 AM
Gravatar
Total Posts 18439

Re: Search forum

I'm really no expert on the Lucene.NET search engine so I don't know what can affect search beyond the things that I specifically coded. I coded it to store and maintain the view roles with the search results in order to prevent users from seeing results in the search that they should not be able to see. Its very straightforward and I don't see anything in the code that would be affected by culture.

I don't know whether the web.config culture settings have any affect, the culture setting is applied to the executing thread.

I suspect the main problem is the lack of support for the Swedish language in Lucene and the solution is to implement support (someone may be working on it already)

The only other experimental suggestion I can think of is back up the contents of the Data/Sites/1/index folder then delete those contents and do a search. This will rebuild the search index. It may not make a difference but its possible that it will.

Wish I had more help to offer,

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