[campsite-support] Searching for substrings, not just whole words
  • Hi, I'm designing a new site for www.chinaworker.info which should be up
    in a week or so using campsite.

    The remaining problem is the search function. As chinese is written
    without spaces it's not possible to search on the chinese articles as
    the campsite search function interprets every paragraph of the articles
    as a single word. How can searching on substrings be done?

    I would be very grateful for a quick patch to the php files. So I can
    have it up and running soon and not wait for the next campsite release.

    /Erik Dal
  • 5 Comments sorted by
  • Sorry to reply myself, but opened a ticket on this:

    http://code.campware.org/projects/campsite/ticket/2450

    Erik Dal
  • Hi Erik,

    It seems strange to me because I helped somebody from Hong Kong build a site
    based on Campsite and there were no problems with the search in Chinese.
    Could you please give me access to your site so I can debug?

    Regards,
    Mugur

    On 4/4/07, Erik Dalén wrote:
    >
    > Sorry to reply myself, but opened a ticket on this:
    >
    > http://code.campware.org/projects/campsite/ticket/2450
    >
    > Erik Dalén wrote:
    > > Hi, I'm designing a new site for www.chinaworker.info which should be up
    > > in a week or so using campsite.
    > >
    > > The remaining problem is the search function. As chinese is written
    > > without spaces it's not possible to search on the chinese articles as
    > > the campsite search function interprets every paragraph of the articles
    > > as a single word. How can searching on substrings be done?
    > >
    > > I would be very grateful for a quick patch to the php files. So I can
    > > have it up and running soon and not wait for the next campsite release.
    > >
    > > /Erik Dalén
    >
    >
  • Sure, the only way to access it now is to add this to your /etc/hosts
    (or equivalent) and browse to www.chinaworker.org:

    81.230.157.78 www.chinaworker.org

    Mugur Rus wrote:
    > Hi Erik,
    >
    > It seems strange to me because I helped somebody from Hong Kong build a
    > site based on Campsite and there were no problems with the search in
    > Chinese. Could you please give me access to your site so I can debug?
    >
    > Regards,
    > Mugur
    >
    > On 4/4/07, *Erik Dalén* > wrote:
    >
    > Sorry to reply myself, but opened a ticket on this:
    >
    > http://code.campware.org/projects/campsite/ticket/2450
    >
    > Erik Dalén wrote:
    > > Hi, I'm designing a new site for www.chinaworker.info
    > which should be up
    > > in a week or so using campsite.
    > >
    > > The remaining problem is the search function. As chinese is written
    > > without spaces it's not possible to search on the chinese
    > articles as
    > > the campsite search function interprets every paragraph of the
    > articles
    > > as a single word. How can searching on substrings be done?
    > >
    > > I would be very grateful for a quick patch to the php files. So I
    > can
    > > have it up and running soon and not wait for the next campsite
    > release.
    > >
    > > /Erik Dalén
    >
    >
  • Hi Erik,

    Sorry for the late reply, I'm back after Easter. Going to
    www.chinaworker.org shows me a site that's surely not built on Campsite. How
    can I access the Campsite based version?

    Mugur

    On 4/5/07, Erik Dalén wrote:
    >
    > Sure, the only way to access it now is to add this to your /etc/hosts
    > (or equivalent) and browse to www.chinaworker.org:
    >
    > 81.230.157.78 www.chinaworker.org
    >
    > Mugur Rus wrote:
    > > Hi Erik,
    > >
    > > It seems strange to me because I helped somebody from Hong Kong build a
    > > site based on Campsite and there were no problems with the search in
    > > Chinese. Could you please give me access to your site so I can debug?
    > >
    > > Regards,
    > > Mugur
    > >
    > > On 4/4/07, *Erik Dalén* > wrote:
    > >
    > > Sorry to reply myself, but opened a ticket on this:
    > >
    > > http://code.campware.org/projects/campsite/ticket/2450
    > >
    > > Erik Dalén wrote:
    > > > Hi, I'm designing a new site for www.chinaworker.info
    > > which should be up
    > > > in a week or so using campsite.
    > > >
    > > > The remaining problem is the search function. As chinese is
    > written
    > > > without spaces it's not possible to search on the chinese
    > > articles as
    > > > the campsite search function interprets every paragraph of the
    > > articles
    > > > as a single word. How can searching on substrings be done?
    > > >
    > > > I would be very grateful for a quick patch to the php files. So I
    > > can
    > > > have it up and running soon and not wait for the next campsite
    > > release.
    > > >
    > > > /Erik Dalén
    > >
    > >
    >
    >
  • did you add to your hosts file?

    well, I fixed it now so it can be accessed without any changes to your
    hosts file. go to http://chinaworker.socialisterna.org/ instead.

    /Erik

    81.230.157.78 www.chinaworker.org

    Mugur Rus wrote:
    > Hi Erik,
    >
    > Sorry for the late reply, I'm back after Easter. Going to
    > www.chinaworker.org shows me a site that's
    > surely not built on Campsite. How can I access the Campsite based version?
    >
    > Mugur
    >
    > On 4/5/07, *Erik Dalén* > wrote:
    >
    > Sure, the only way to access it now is to add this to your /etc/hosts
    > (or equivalent) and browse to www.chinaworker.org
    > :
    >
    > 81.230.157.78 www.chinaworker.org
    >
    >
    > Mugur Rus wrote:
    > > Hi Erik,
    > >
    > > It seems strange to me because I helped somebody from Hong Kong
    > build a
    > > site based on Campsite and there were no problems with the search in
    > > Chinese. Could you please give me access to your site so I can debug?
    > >
    > > Regards,
    > > Mugur
    > >
    > > On 4/4/07, *Erik Dalén*
    > >> wrote:
    > >
    > > Sorry to reply myself, but opened a ticket on this:
    > >
    > > http://code.campware.org/projects/campsite/ticket/2450
    >
    > >
    > > Erik Dalén wrote:
    > > > Hi, I'm designing a new site for www.chinaworker.info
    >
    > > >
    > which should be up
    > > > in a week or so using campsite.
    > > >
    > > > The remaining problem is the search function. As chinese
    > is written
    > > > without spaces it's not possible to search on the chinese
    > > articles as
    > > > the campsite search function interprets every paragraph of the
    > > articles
    > > > as a single word. How can searching on substrings be done?
    > > >
    > > > I would be very grateful for a quick patch to the php
    > files. So I
    > > can
    > > > have it up and running soon and not wait for the next campsite
    > > release.
    > > >
    > > > /Erik Dalén
    > >
    > >
    >
    >