textindex: no numbers appears
Hello zope-specialists, i have the following problem: First, I have created an Zcatalog object. Then, I cataloged some objects. The title-Field is indexed with the type TextIndex. Sometimes, the title of the objects contains only numbers. The problem: If the title contains only numbers, the index is empty. title=123 => no value in the index title=123abc => the value is indexed. Question: What is wrong? What have I to do, to index titles which contains only numbers? Have I to patch some *.py-files? Have I to use a speciall package? Because I am a zope-Newbie, every help will be welcomed, Stephan Abele abele@wlb-stuttgart.de
The TextIndex in Zope < 2.5.X does not support indexing of numbers. Zope 2.6 will support this feature among other new features. I will backport the changes maybe back to 2.5 after the official release of 2.5.1. TextIndexNG also supports the indexing of numbers (currently in development). -aj ----- Original Message ----- From: "Stephan Abele" <abele@wlb-stuttgart.de> To: <zope@zope.org> Sent: Tuesday, April 09, 2002 08:11 Subject: [Zope] textindex: no numbers appears Hello zope-specialists, i have the following problem: First, I have created an Zcatalog object. Then, I cataloged some objects. The title-Field is indexed with the type TextIndex. Sometimes, the title of the objects contains only numbers. The problem: If the title contains only numbers, the index is empty. title=123 => no value in the index title=123abc => the value is indexed. Question: What is wrong? What have I to do, to index titles which contains only numbers? Have I to patch some *.py-files? Have I to use a speciall package? Because I am a zope-Newbie, every help will be welcomed, Stephan Abele abele@wlb-stuttgart.de _______________________________________________ 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 )
The default word splitter for text indexes in Zope 2.5 ignores "words" that are purely numeric. Solutions are: 1. Use a different splitter (anybody got one?) 2. Try Andreas' TextIndexNG which I believe may index numbers out of the box. hth, Casey Stephan Abele wrote:
Hello zope-specialists,
i have the following problem: First, I have created an Zcatalog object. Then, I cataloged some objects. The title-Field is indexed with the type TextIndex. Sometimes, the title of the objects contains only numbers.
The problem: If the title contains only numbers, the index is empty.
title=123 => no value in the index title=123abc => the value is indexed.
Question: What is wrong? What have I to do, to index titles which contains only numbers? Have I to patch some *.py-files? Have I to use a speciall package?
Because I am a zope-Newbie, every help will be welcomed,
Stephan Abele abele@wlb-stuttgart.de
_______________________________________________ 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 )
participants (3)
-
Andreas Jung -
Casey Duncan -
Stephan Abele