i am in hong kong working on this site: http://cmp.hku.hk
don't kill me, but the version is CS 2.1.6 so it's been up and running or a bit over a year.
you can go to the site and search on the top bar or in the form on the search results page.
however, it does only find english content. the best way to try for you is to copy and paste content from the chinese articles into the search field and press search... nothing comes up. we have tried it here with chinese speaking editors, i.e. they were sensible phrases and words. but it did not work.
any experience with this? please help. quick. thanks.
Yes we faced this problem before, the solution (hopefully) is in the search
form code, right now this is the code of the search form on http://cmp.hku.hk:
As you see the hidden variable "IdLanguage" is "-1", it should be 16 for
chineese. I'm not sure why it's -1 (maybe for multilingual search?) but -1
didn't work with us in Ammannet while when we changed it to 18 (arabic)
campsite was able to search arabic articles.
Here is the code of ammannet search form that can search arabic articles:
but can you search both languages at the same time?
i know i could build a pulldown with both options i.e. either english or chinese and have the value in the pulldown. but both at the same time?
what if you don't set the parameter? have you tried that?
campsite-dev@campware.org schrieb am 07.12.05 14:34:29:
>
> Yes we faced this problem before, the solution (hopefully) is in the search
> form code, right now this is the code of the search form on
> http://cmp.hku.hk:
>
>
>
> As you see the hidden variable "IdLanguage" is "-1", it should be 16 for
> chineese. I'm not sure why it's -1 (maybe for multilingual search?) but -1
> didn't work with us in Ammannet while when we changed it to 18 (arabic)
> campsite was able to search arabic articles.
>
> Here is the code of ammannet search form that can search arabic articles:
>
>
i first did this form when we started with the russian language articles
like 4 years ago. so i switched it to -1 (this is what you get when you
say i think). this worked for both english and russian in
our case, so i don't know why it doesn't work for chinese and arabic...
can it be micz, that you are trying to type in something using the
english language OS? so in fact the search works the way it was set up,
it's just that you can't type/paste anything meaningful in the text
field of the search form?
Micz Flor wrote:
>
> raed, i want your kids
>
> i guess you should add this to the campsite manual:
> http://code.campware.org/manuals/campsite/2.3/index.php?id=104
>
> but can you search both languages at the same time?
>
> i know i could build a pulldown with both options i.e. either english or chinese and have the value in the pulldown. but both at the same time?
>
> what if you don't set the parameter? have you tried that?
>
> campsite-dev@campware.org schrieb am 07.12.05 14:34:29:
> >
> > Yes we faced this problem before, the solution (hopefully) is in the search
> > form code, right now this is the code of the search form on
> > http://cmp.hku.hk:
> >
> >
> >
> > As you see the hidden variable "IdLanguage" is "-1", it should be 16 for
> > chineese. I'm not sure why it's -1 (maybe for multilingual search?) but -1
> > didn't work with us in Ammannet while when we changed it to 18 (arabic)
> > campsite was able to search arabic articles.
> >
> > Here is the code of ammannet search form that can search arabic articles:
> >
> >
campsite-dev@campware.org schrieb am 07.12.05 15:05:14:
>
> i first did this form when we started with the russian language articles
> like 4 years ago. so i switched it to -1 (this is what you get when you
> say i think). this worked for both english and russian in
ok. didn't know that. so the default idea is that it should search all languages.
> can it be micz, that you are trying to type in something using the
> english language OS? so in fact the search works the way it was set up,
> it's just that you can't type/paste anything meaningful in the text
> field of the search form?
hm. don't think that this is the case, since this is the hong kong media lab with the set up they write chinese articles with, they posted the chinese articles into campsite and they tried the search with the same machine.
You saved me from a long debugging process. I'll check why the search doesn't
work when the language id is -1. It is a bug, it should search all langauges.
Maybe it worked and I made some change in the code that broke it.
Mugur
--- Micz Flor wrote:
> raed, i want your kids
>
> i guess you should add this to the campsite manual:
> http://code.campware.org/manuals/campsite/2.3/index.php?id=104
>
> but can you search both languages at the same time?
>
> i know i could build a pulldown with both options i.e. either english or
> chinese and have the value in the pulldown. but both at the same time?
>
> what if you don't set the parameter? have you tried that?
>
>
> campsite-dev@campware.org schrieb am 07.12.05 14:34:29:
> >
> > Yes we faced this problem before, the solution (hopefully) is in the search
> > form code, right now this is the code of the search form on
> > http://cmp.hku.hk:
> >
> >
> >
> > As you see the hidden variable "IdLanguage" is "-1", it should be 16 for
> > chineese. I'm not sure why it's -1 (maybe for multilingual search?) but -1
> > didn't work with us in Ammannet while when we changed it to 18 (arabic)
> > campsite was able to search arabic articles.
> >
> > Here is the code of ammannet search form that can search arabic articles:
> >
> >
----- Original Message -----
From: "Mugur Rus"
To:
Sent: Wednesday, December 07, 2005 4:23 PM
Subject: Re: [campsite-dev] search in multilingual sites
Thank you Raed,
You saved me from a long debugging process. I'll check why the search
doesn't
work when the language id is -1. It is a bug, it should search all
langauges.
Maybe it worked and I made some change in the code that broke it.
Mugur
--- Micz Flor wrote:
> raed, i want your kids
>
> i guess you should add this to the campsite manual:
> http://code.campware.org/manuals/campsite/2.3/index.php?id=104
>
> but can you search both languages at the same time?
>
> i know i could build a pulldown with both options i.e. either english or
> chinese and have the value in the pulldown. but both at the same time?
>
> what if you don't set the parameter? have you tried that?
>
>
> campsite-dev@campware.org schrieb am 07.12.05 14:34:29:
> >
> > Yes we faced this problem before, the solution (hopefully) is in the
> > search
> > form code, right now this is the code of the search form on
> > http://cmp.hku.hk:
> >
> >
as i said, this is running on 2.1.6 from late 2004. so this might not be an issue anymore. but i can't upgrade in the middle of the training
well, i can't upgrade, fullstop
campsite-dev@campware.org schrieb am 07.12.05 15:24:28:
>
> Thank you Raed,
>
> You saved me from a long debugging process. I'll check why the search doesn't
> work when the language id is -1. It is a bug, it should search all langauges.
> Maybe it worked and I made some change in the code that broke it.
>
> Mugur
>
> --- Micz Flor wrote:
> > raed, i want your kids
> >
> > i guess you should add this to the campsite manual:
> > http://code.campware.org/manuals/campsite/2.3/index.php?id4
> >
> > but can you search both languages at the same time?
> >
> > i know i could build a pulldown with both options i.e. either english or
> > chinese and have the value in the pulldown. but both at the same time?
> >
> > what if you don't set the parameter? have you tried that?
> >
> >
> > campsite-dev@campware.org schrieb am 07.12.05 14:34:29:
> > >
> > > Yes we faced this problem before, the solution (hopefully) is in the search
> > > form code, right now this is the code of the search form on
> > > http://cmp.hku.hk:
> > >
> > >
> > >
> > > As you see the hidden variable "IdLanguage" is "-1", it should be 16 for
> > > chineese. I'm not sure why it's -1 (maybe for multilingual search?) but -1
> > > didn't work with us in Ammannet while when we changed it to 18 (arabic)
> > > campsite was able to search arabic articles.
> > >
> > > Here is the code of ammannet search form that can search arabic articles:
> > >
> > >