[campsite-dev] search in multilingual sites
  • hi folks,

    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.
  • 7 Comments sorted by
  • 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:







    value="高">
    all search words


    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:











    Hope this helps Smile

    _______________________________
    Raed Neshiewat
    Director

    TamamTech Inc.
    PO Box: 20513
    Amman, Jordan 11118
    Tel: +962 6 461 7474
    Fax: +962 6 463 0238
    Email: raed@tamamtech.com


    ----- Original Message -----
    From: "Micz Flor"
    To:
    Sent: Wednesday, December 07, 2005 11:49 AM
    Subject: [campsite-dev] search in multilingual sites


    > hi folks,
    >
    > 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.
    >
    >
    >
    >
    >
  • raed, i want your kids Wink

    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:
    >
    >
    >
    >
    >
    >
    >
    > > value="高">
    > all search words
    >
    >
    > 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:
    >
    >

    >
    >
    >
    >
    >
    >
    >
    >
    >
    > Hope this helps Smile
    >
    > _______________________________
    > Raed Neshiewat
    > Director
    >
    > TamamTech Inc.
    > PO Box: 20513
    > Amman, Jordan 11118
    > Tel: +962 6 461 7474
    > Fax: +962 6 463 0238
    > Email: raed@tamamtech.com
    >
    >
    > ----- Original Message -----
    > From: "Micz Flor"
    > To:
    > Sent: Wednesday, December 07, 2005 11:49 AM
    > Subject: [campsite-dev] search in multilingual sites
    >
    >
    > > hi folks,
    > >
    > > 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.
    > >
    > >
    > >
    > >
    > >
    >
    >
  • 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 Wink
    >
    > 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:
    > >
    > >
    > >
    > >
    > >
    > >
    > >
    > > > > value="高">
    > > all search words
    > >
    > >
    > > 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:
    > >
    > >

    > >
    > >
    > >
    > >
    > >
    > >
    > >
    > >
    > >
    > > Hope this helps Smile
    > >
    > > _______________________________
    > > Raed Neshiewat
    > > Director
    > >
    > > TamamTech Inc.
    > > PO Box: 20513
    > > Amman, Jordan 11118
    > > Tel: +962 6 461 7474
    > > Fax: +962 6 463 0238
    > > Email: raed@tamamtech.com
    > >
    > >
    > > ----- Original Message -----
    > > From: "Micz Flor"
    > > To:
    > > Sent: Wednesday, December 07, 2005 11:49 AM
    > > Subject: [campsite-dev] search in multilingual sites
    > >
    > >
    > > > hi folks,
    > > >
    > > > 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.
    > > >
    > > >
    > > >
    > > >
    > > >
    > >
    > >

    --
    Aleksandar Brajanoski
    Internet Development Manager
    Transitions Online
    Chlumova 22, 130 00 Praha 3
    Czech Republic
    420 2 2278-0805 (extension 26)
    420 2 2278-0804 (fax)
    http://www.tol.cz

    TOL: Intelligent Eastern Europe!
  • 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.

    don't know.
  • 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 Wink
    >
    > 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:
    > >
    > >
    > >
    > >
    > >
    > >
    > >
    > > > > value="高">
    > > all search words
    > >
    > >
    > > 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:
    > >
    > >

    > >
    > >
    > >
    > >
    > >
    > >
    > >
    > >
    > >
    > > Hope this helps Smile
    > >
    > > _______________________________
    > > Raed Neshiewat
    > > Director
    > >
    > > TamamTech Inc.
    > > PO Box: 20513
    > > Amman, Jordan 11118
    > > Tel: +962 6 461 7474
    > > Fax: +962 6 463 0238
    > > Email: raed@tamamtech.com
    > >
    > >
    > > ----- Original Message -----
    > > From: "Micz Flor"
    > > To:
    > > Sent: Wednesday, December 07, 2005 11:49 AM
    > > Subject: [campsite-dev] search in multilingual sites
    > >
    > >
    > > > hi folks,
    > > >
    > > > 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.
    > > >
    > > >
    > > >
    > > >
    > > >
    > >
    > >
    >
    >
    >




    __________________________________________
    Yahoo! DSL
  • you are all welcomed Smile

    ----- 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 Wink
    >
    > 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:
    > >
    > >
    > >
    > >
    > >
    > >
    > >
    > > > > value="
  • 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 Wink

    well, i can't upgrade, fullstop Wink

    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 Wink
    > >
    > > 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:
    > > >
    > > >
    > > >
    > > >
    > > >
    > > >
    > > >
    > > > > > > value="高">
    > > > all search words
    > > >
    > > >
    > > > 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:
    > > >
    > > >

    > > >
    > > >
    > > >
    > > >
    > > >
    > > >
    > > >
    > > >
    > > >
    > > > Hope this helps Smile
    > > >
    > > > _______________________________
    > > > Raed Neshiewat
    > > > Director
    > > >
    > > > TamamTech Inc.
    > > > PO Box: 20513
    > > > Amman, Jordan 11118
    > > > Tel: +962 6 461 7474
    > > > Fax: +962 6 463 0238
    > > > Email: raed@tamamtech.com
    > > >
    > > >
    > > > ----- Original Message -----
    > > > From: "Micz Flor"
    > > > To:
    > > > Sent: Wednesday, December 07, 2005 11:49 AM
    > > > Subject: [campsite-dev] search in multilingual sites
    > > >
    > > >
    > > > > hi folks,
    > > > >
    > > > > 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.
    > > > >
    > > > >
    > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    > >
    >
    >
    >
    >
    > __________________________________________
    > Yahoo! DSL