• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Search Function doesn't work

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I install jforum on my server on the resin app server, using utf-8 to support chinese language, but the search function get no result no matter i input english or chinese words. any body can help me?

regards,
waiting on line...
[originally posted on jforum.net by iintsy]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
https://coderanch.com/t/575725

u can try it.
[originally posted on jforum.net by xmvigour]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

xmvigour wrote:https://coderanch.com/t/575725

u can try it.



I install the forum on resin on redhat linux as 4, so i cann't find the URIEncoding parameter to set.

any more suggestions?

thanks for your reply.
[originally posted on jforum.net by iintsy]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Much likely search will not work for cyrillic data. This is an old issue and we have been not able to make it work correctly so far.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for your reply!
It seems i cann't use the search function in chinese language, maybe i should rewrite this function?

Regards,
iintsy
[originally posted on jforum.net by iintsy]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just something interesting I noticed by chance about searching on chinese characters.

Maybe you can see if it works for you too.

Go to the following post:
http://www.jforum.net/posts/list/2028.page

Select an entire line of Chinese (ex. three quick clicks with your mouse)

Copy your selection.

Go to search and paste the selection and perform a search.

The result is: it finds the correct post.

Luth

[originally posted on jforum.net by luthrian]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have found that the best mysql version for cyrillic data is 4.0.x (I'm using 4.0.17). 4.1+ will not work at all, and I cannot find a fix for it.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rafael,

So does that mean it is a database issue, and not a JForum configuration issue or so?

Regards,
Luth
[originally posted on jforum.net by luthrian]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure so far. Mysql 4.0.x and previous does not support "true" unicode, so the jdbc driver emulates that - which works very well.

However, starting from mysql version 4.1, native unicode support was added, and so then I never more was able to get JForum working correctly.

I have tried dozens of configurations, but nothing seems to work. I appreciate any kind of help

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just installed JForum:
- Fedora Core 4
- JDK 1.4.2
- Tomcat 5.0.28
- Postgresql 8.1.4

I configured UTF-8 for JForum and Postgresql.

The search can only work on English. Chinese search always return 0 search result.

I noticed there is an existing bug logged for adding Lucene integration. Maybe that is the answer? Do we know what's the time frame for fixing it?

PS. Love JForum. This is a very nice piece of work! Thanks!


[originally posted on jforum.net by frank123]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have the same problem,search for Chinese is not work
who can help me
[originally posted on jforum.net by fly]
 
Squanch that. And squanch this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic