List Info

Thread: Searching for substrings, not just whole words




Searching for substrings, not just whole words
country flaguser name
Sweden
2007-04-04 09:18:15
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

Re: Searching for substrings, not just whole words
country flaguser name
Sweden
2007-04-04 09:39:43
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


Re: Searching for substrings, not just whole words
user name
2007-04-04 14:30:50
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 < dalenjpl.se">dalenjpl.se>; 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
&gt; without spaces it's not possible to search on the chinese articles as
> the campsite search function interprets every paragraph of the articles
&gt; 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.
&gt;
> /Erik Dalén


Re: Searching for substrings, not just whole words
country flaguser name
Sweden
2007-04-05 06:41:58
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* <dalenjpl.se
<mailto:dalenjpl.se>> 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
>     <http://www.chinaworke
r.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
> 
> 


Re: Searching for substrings, not just whole words
user name
2007-04-11 14:14:11
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 < dalenjpl.se">dalenjpl.se>; 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 &nbsp; 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,
&gt; Mugur
>
> On 4/4/07, *Erik Dalén* < dalenjpl.se">dalenjpl.se <mailto: dalenjpl.se"> dalenjpl.se>;> wrote:
>;
; &nbsp;  Sorry to reply myself, but opened a ticket on this:
>
  http://code.campware.org/projects/campsite/ticket/2450
>
>; &nbsp; &nbsp; Erik DalĂ©n wrote:
>; &nbsp; &nbsp; &nbsp;> Hi, I'm designing a new site for www.chinaworker.info
  ;  <http://www.chinaworker.info >; which should be up
>&nbsp; &nbsp; &nbsp; > in a week or so using campsite.
> &nbsp;   ; >
  ; &nbsp; >; The remaining problem is the search function. As chinese is written
&gt; &nbsp; &nbsp; &nbsp;> without spaces it's not possible to search on the chinese
&gt; &nbsp; &nbsp; articles as
>&nbsp; &nbsp; &nbsp; > the campsite search function interprets every paragraph of the
>&nbsp; &nbsp;  articles
&gt; &nbsp; &nbsp;  > as a single word. How can searching on substrings be done?
>  ; &nbsp; &nbsp;>
&gt; &nbsp; &nbsp; &nbsp;> I would be very grateful for a quick patch to the php files. So I
>&nbsp; &nbsp;  can
>&nbsp; &nbsp;   ;> have it up and running soon and not wait for the next campsite
&gt; &nbsp; &nbsp; release.
&gt; &nbsp; &nbsp;  >
  ; &nbsp; >; /Erik DalĂ©n
>;
>


Re: Searching for substrings, not just whole words
country flaguser name
Sweden
2007-04-12 12:17:56
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://chinawor
ker.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 <http://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* <dalenjpl.se
<mailto:dalenjpl.se>> 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
>     <http://81.230.157.78>
  www.chinaworker.org
>     <http://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* <dalenjpl.se
<mailto:dalenjpl.se>
>     <mailto: dalenjpl.se <mailto:dalenjpl.se>>> wrote:
>      >
>      >     Sorry to reply myself, but opened a
ticket on this:
>      >
>      >     http://code.campware.org/projects/campsite/ticket/2450

>     <http://code.campware.org/projects/campsite/ticket/2450
>
>      >
>      >     Erik Dalén wrote:
>      >      > Hi, I'm designing a new site for
www.chinaworker.info
>     <http://www.chinaworke
r.info>
>      >     <http://www.chinaworker.in
fo <http://www.chinaw
orker.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
>      >
>      >
> 
> 


[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )