[Zope] Search engine returning all pages?

Etienne Labuschagne etiennel@geospace.co.za
Wed, 23 May 2001 12:14:26 +0200


Hi all,

Ok I have fixed half of my problem.  The engine now searches correctly,
except when I enter nothing in the boxes.  When nothing is entered, I still
get all the pages.  Now this may be correct in a sense (all pages contain
some text and some nothing!), but I'd prefer to rather not receive anything
if nothing is inputted.  I can do a pre-check with JavaScript, but would
prefer not to do this.

Thanks
Etienne

-----Original Message-----
From: Etienne Labuschagne [mailto:etiennel@geospace.co.za]
Sent: Wednesday, May 23, 2001 11:46 AM
To: Zope user list (E-mail)
Subject: [Zope] Search engine returning all pages?


Hi all 

I have the following search form:

<form action="IsisSearch\results" target="Main" method="get">
Search text in pages and page titles:<br>
<input name="GetAllBodyText" width="10"><input type="submit" value="Go">
</form>
<hr>
<form action="IsisSearch\results" target="Main" method="get">
Search only page titles:<br>
<input name="title" type="text" width="10"><input type="submit" value="Go">
</form>

The search engine indexes title and GetAllBodyText.

This gives the user a choice of searching only titles, or all the text
(Including title and body).  I have indexed a method called GetAllBodyText
which returns both the body text and title_or_id text to the search engine
to index (as one string).

When I enter a word (or nothing) in either of the search boxes above, the
search engine returns ALL the pages in the catalogue, rather than none.
What am I doing wrong?

Any help would be greatly appreciated.
Regards
Etienne



_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )