Re: [Repoze-dev] [Repoze-checkins] r3602 - in repoze.catalog/trunk: . repoze/catalog repoze/catalog/indexes repoze/catalog/indexes/tests

2009-02-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chris McDonough wrote:

 - It is now possible to pass a dictionary to the CatalogFieldIndex
   ``apply`` method.  When a dictionary is passed, the member of the
   dictionary named ``query`` is treated as the query.  It may be a
   single term, a sequence of terms, or a Range.  An additional
   dictionary member named ``operator`` may also be specified: when
   this is specified, it must be one of ``or`` or ``and`` (the default
   is ``or``).  If the query specifies multiple terms, and the operator
   is ``or``, the results will be unioned; if the query specifies
   multiple terms and the operator is ``and``, the results will be
   intersected.

How is an 'and' operator going to work for a field index (as opposed to
a keyword index)?  Every document should have exactly one value for the
field index, which means that there should always be an empty intersection.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJlKSV+gerLs4ltQ4RAjKkAKCsB+0RwTFTelGCKY/sVr5pw+0VhACeIlOm
2ZcdLqwdHuAUbSikbPGrGF0=
=s/lp
-END PGP SIGNATURE-
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] [Repoze-checkins] r3602 - in repoze.catalog/trunk: . repoze/catalog repoze/catalog/indexes repoze/catalog/indexes/tests

2009-02-12 Thread Chris McDonough
If one of the terms is a range search.

- C

On Feb 12, 2009, at 5:37 PM, Tres Seaver wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Chris McDonough wrote:

 - It is now possible to pass a dictionary to the CatalogFieldIndex
  ``apply`` method.  When a dictionary is passed, the member of the
  dictionary named ``query`` is treated as the query.  It may be a
  single term, a sequence of terms, or a Range.  An additional
  dictionary member named ``operator`` may also be specified: when
  this is specified, it must be one of ``or`` or ``and`` (the default
  is ``or``).  If the query specifies multiple terms, and the operator
  is ``or``, the results will be unioned; if the query specifies
  multiple terms and the operator is ``and``, the results will be
  intersected.

 How is an 'and' operator going to work for a field index (as opposed  
 to
 a keyword index)?  Every document should have exactly one value for  
 the
 field index, which means that there should always be an empty  
 intersection.


 Tres.
 - --
 ===
 Tres Seaver  +1 540-429-0999  tsea...@palladion.com
 Palladion Software   Excellence by Designhttp://palladion.com
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFJlKSV+gerLs4ltQ4RAjKkAKCsB+0RwTFTelGCKY/sVr5pw+0VhACeIlOm
 2ZcdLqwdHuAUbSikbPGrGF0=
 =s/lp
 -END PGP SIGNATURE-


___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev