Search feature with a combination of a textindex and keywordindex
Hi, I have a need for the search feature described below. Any ideas on how best to approach this, or if it is possible would be great. Running... Zope: 2.6.1 Python: 2.1.3 A group of items are catalogued with keyphrases. These keyphrases can be any combination of single words or 2-3 word phrases. I want to pass a string to the catalog to see if there are any phrase matches. For example... Item keyphrases: ['mobile phone', 'dial', 'hands free'] Catalog returns item if: -string 'mobile phone number' is passed. (because 'mobile phone' matches) -string 'speed dial call' is passed. (because 'dial' matches) Catalog doesn't return item if: -string 'ringing mobile number' is passed. -string 'free phone' I haven't found anything with this kind of functionality so I assume I need to start looking into creating my own catalog index? I have begun looking into this, but any ideas on where to find more information or the best approach to take would be great. Thanks for your help. Richard. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/03
Richard Ettema wrote at 2003-9-10 10:26 +0100:
... A group of items are catalogued with keyphrases. These keyphrases can be any combination of single words or 2-3 word phrases. I want to pass a string to the catalog to see if there are any phrase matches. For example...
Item keyphrases: ['mobile phone', 'dial', 'hands free']
Catalog returns item if: -string 'mobile phone number' is passed. (because 'mobile phone' matches) -string 'speed dial call' is passed. (because 'dial' matches)
Catalog doesn't return item if: -string 'ringing mobile number' is passed. -string 'free phone'
I haven't found anything with this kind of functionality so I assume I need to start looking into creating my own catalog index? I have begun looking into this, but any ideas on where to find more information or the best approach to take would be great.
This sounds like "phrase searches" supported by some text indexes. They would match any phrase and not only those from a phrase dictionary. Dieter
TextINdexNG supports phrase searches. -aj --On Mittwoch, 10. September 2003 10:26 Uhr +0100 Richard Ettema <richard.ettema@yoursolutions.com> wrote:
Hi,
I have a need for the search feature described below. Any ideas on how best to approach this, or if it is possible would be great. Running... Zope: 2.6.1 Python: 2.1.3
A group of items are catalogued with keyphrases. These keyphrases can be any combination of single words or 2-3 word phrases. I want to pass a string to the catalog to see if there are any phrase matches. For example...
Item keyphrases: ['mobile phone', 'dial', 'hands free']
Catalog returns item if: -string 'mobile phone number' is passed. (because 'mobile phone' matches) -string 'speed dial call' is passed. (because 'dial' matches)
Catalog doesn't return item if: -string 'ringing mobile number' is passed. -string 'free phone'
I haven't found anything with this kind of functionality so I assume I need to start looking into creating my own catalog index? I have begun looking into this, but any ideas on where to find more information or the best approach to take would be great.
Thanks for your help.
Richard. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/03
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Andreas Jung -
Chris Withers -
Dieter Maurer -
Richard Ettema