Re: [Zope-dev] NOT operator in Unindex.

2004-09-24 Thread Dieter Maurer
Johan Carlsson wrote at 2004-9-23 13:24 +0200:
I've been hacking FieldIndex and KeywordIndex to allow it to take the 
operator not to exclude object that matches from the result.

As it seems to me it would be possible to patch the Unindex with the 
changes I've made.
Is this something that could be added to the core?

I do not think that any index should index all documents.
For example, I like very much, that my ManagableIndexes
do not index objects whose value (with respect to the index) is None
(or matched by the ignore predicate).

Such indexes do not have enough information to implement
NOT by themselves (they would need the set of all catalogued
objects from the catalog).

I would not implement NOT at the index level (as I would not
implement AND or OR at this level).

   All logical operators should be implemented by the search engine
   and not by the individual indexes.

-- 
Dieter
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] NOT operator in Unindex.

2004-09-23 Thread Andreas Jung
Why don't you use AdvancedQuery+ManageableIndes by DM?
-aj
--On Donnerstag, 23. September 2004 13:24 Uhr +0200 Johan Carlsson 
[EMAIL PROTECTED] wrote:

Hi,
I've been hacking FieldIndex and KeywordIndex to allow it to take the
operator not to exclude object that matches from the result.
As it seems to me it would be possible to patch the Unindex with the
changes I've made.
Is this something that could be added to the core?
Examples of special not-enabled indexes:
http://zope.org/Members/Colliberty/Easy%20Pieces/EasyIndexes/EasyIndexes-
0-0-1.tgz
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -  http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] NOT operator in Unindex.

2004-09-23 Thread Johan Carlsson
Andreas Jung wrote:
Why don't you use AdvancedQuery+ManageableIndes by DM?
Sure. Why would that be preferred?
And is there any chance of AdvancedQuery+ManageableIndes will
make it to the Zope Core?
My exampel extends Field- and KeywordIndex and any other index
based on Unindex without changing backward compatability.
I don't see a reason why this couldn't be included to the
Zope Core in a short term.
Regards,
Johan Carlsson
--
Johan Carlsson  Tel: + 46 8 31 24 94
Colliberty  Mob: + 46 70 558 25 24
Torsgatan 72Email: [EMAIL PROTECTED]
SE-113 37 STOCKHOLM
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] NOT operator in Unindex.

2004-09-23 Thread Andreas Jung

--On Donnerstag, 23. September 2004 23:51 Uhr +0200 Johan Carlsson 
[EMAIL PROTECTED] wrote:

Andreas Jung wrote:
Why don't you use AdvancedQuery+ManageableIndes by DM?
Sure. Why would that be preferred?
And is there any chance of AdvancedQuery+ManageableIndes will
make it to the Zope Core?
I don't see a reason why this couldn't be included to the
Zope Core in a short term.
DM would have to agree to change the license, moving the code to 
cvs.zope.org
and some other issues.

-aj
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )