[ZWeb] "Token 'ATOM' required, 'EOF' found" error in zopeorg

Ausum Studio ausum_studio at hotmail.com
Thu Dec 23 13:21:51 EST 2004


A word of wisdom by  GG:

"""
The "AND" operator is unnecessary -- we include all search terms by default.
"""

ZCTextIndex does the same AFAICK, the to-and-words-in-a-query thing.


Ausum



----- Original Message ----- 
From: "Andrew Sawyers" <andrew at zope.com>
To: "Chris Withers" <chris at simplistix.co.uk>
Cc: "'Ausum Studio'" <ausum_studio at hotmail.com>; <zope-web at zope.org>
Sent: Wednesday, December 22, 2004 10:54 AM
Subject: Re: [ZWeb] "Token 'ATOM' required, 'EOF' found" error in zopeorg


> Chris Withers wrote:
> > Tim Peters wrote:
> >
> >>> Looks like a ZCTextIndex bug. Is it already filed? I tried to look
> >>> for it
> >>> at the Collector, but I'm not sure it isn't there already.
> >>
> >>
> >> Well, it's an invalid search phrase, so I'm not sure what you'd like
> >> better.
> >> "and" is a keyword, and requires an atom on both sides of it.
> >
> >
> > This has long been a bugbear of mine. Yes, it is an invalid search
> > phrase, but should end users really see exceptions raised because they
> > accidentally tried to use a piece of ZCTextIndex functionality that they
> > didn't even know existed?
> >
> > cheers,
> >
> > Chris
> >
> You can catch this in a python script handler the searches go to.....
> This is how I've managed it in the past.
> Andrew
>
> -- 
> Zope Managed Hosting
> Systems Administrator/Software Engineer
> Zope Corporation
> (540) 361-1700
> _______________________________________________
> Zope-web maillist  -  Zope-web at zope.org
> http://mail.zope.org/mailman/listinfo/zope-web
>


More information about the Zope-web mailing list