I can't seem to find any documentation on doing an exact phrase search in Zope. I've tried "exact phrase" ,(exact phrase), +"exact phrase" and they all seem to work just like an "and" search. Does anyone have any ideas on where I can find documentation? Even zope.org returns 0 on "exact phrase" Michael
Using a Zope TextIndex, there's really no good way to do a phrase search. However, in Zope 2.6, using a "ZCTextIndex" (which is similarly named and performs a similar function as a TextIndex, just better), you can perform phrase searches by "surrounding them in quotes". On Tue, 2002-09-10 at 22:36, Michael wrote:
I can't seem to find any documentation on doing an exact phrase search in Zope. I've tried "exact phrase" ,(exact phrase), +"exact phrase" and they all seem to work just like an "and" search. Does anyone have any ideas on where I can find documentation? Even zope.org returns 0 on "exact phrase"
Michael
_______________________________________________ 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 )
Thanks Chris, If I upgrade from 2.44 to 2.6, will my text indexes get upgraded to ZCTextindexes, or would I have to re-engineer the whole thing? Michael On Tuesday 10 September 2002 10:35 pm, Chris McDonough wrote:
Using a Zope TextIndex, there's really no good way to do a phrase search. However, in Zope 2.6, using a "ZCTextIndex" (which is similarly named and performs a similar function as a TextIndex, just better), you can perform phrase searches by "surrounding them in quotes".
You'll need to delete the text indexes and replace them with ZCTextIndexes then update the catalog. HTH, - C On Wed, 2002-09-11 at 00:35, Michael wrote:
Thanks Chris,
If I upgrade from 2.44 to 2.6, will my text indexes get upgraded to ZCTextindexes, or would I have to re-engineer the whole thing?
Michael
On Tuesday 10 September 2002 10:35 pm, Chris McDonough wrote:
Using a Zope TextIndex, there's really no good way to do a phrase search. However, in Zope 2.6, using a "ZCTextIndex" (which is similarly named and performs a similar function as a TextIndex, just better), you can perform phrase searches by "surrounding them in quotes".
Chris, When I changed some field indexes to text indexes to enable sorting, I lost everything that was previously indexed. I tried to reindex, but that did nothing. Also, all of my ZClasses are catalog aware if that makes a difference. Is there a way to accomplish this without losing the data? I'm putting together a community of job boards, 25 in all, and I'm going to have some actual postings on them in the next couple of days. I already have a number of candidates who have set up accounts and posted resumes. The URL is http://www.nichestaffing.com , from there you can navigate to the other sites. Michael On Tue, 2002-09-10 at 22:56, Chris McDonough wrote:
You'll need to delete the text indexes and replace them with ZCTextIndexes then update the catalog.
HTH,
I'm afraid I dont understand what you're doing. We didn't talk about FieldIndexes before this, we just talked about replacing existing TextIndexes with ZCTextIndexes. On Wed, 2002-09-11 at 01:05, Michael Lewis wrote:
Chris,
When I changed some field indexes to text indexes to enable sorting, I lost everything that was previously indexed. I tried to reindex, but that did nothing. Also, all of my ZClasses are catalog aware if that makes a difference. Is there a way to accomplish this without losing the data? I'm putting together a community of job boards, 25 in all, and I'm going to have some actual postings on them in the next couple of days. I already have a number of candidates who have set up accounts and posted resumes. The URL is http://www.nichestaffing.com , from there you can navigate to the other sites.
Michael
On Tue, 2002-09-10 at 22:56, Chris McDonough wrote:
You'll need to delete the text indexes and replace them with ZCTextIndexes then update the catalog.
HTH,
On Tue, Sep 10, 2002 at 08:36:21PM -0600, Michael wrote:
I can't seem to find any documentation on doing an exact phrase search in Zope. I've tried "exact phrase" ,(exact phrase), +"exact phrase" and they all seem to work just like an "and" search. Does anyone have any ideas on where I can find documentation? Even zope.org returns 0 on "exact phrase"
TextIndexNG supports things like phrase search and NEAR search out-of-the-box. -aj
participants (4)
-
Chris McDonough -
Michael -
Michael Lewis -
zopyx@t-online.de