Hi Is there any kind of index of ZCatalog to make dynamic indexing? I would like to find objects with some values on a list index but index is dynamic I the propertyA I have a list, for example: Object1 propertyA Value1 Value2 Value3 I would like to search for propertyA, index 1 for all object that have Value2 in this index Can I make these kind of searches? TIA
Garito wrote at 2004-11-26 17:08 +0100:
Is there any kind of index of ZCatalog to make dynamic indexing?
I would like to find objects with some values on a list index but index is dynamic
I the propertyA I have a list, for example:
Object1 propertyA Value1 Value2 Value3
I would like to search for propertyA, index 1 for all object that have Value2 in this index
Can I make these kind of searches?
I fear you have to take greater care when you formulate your questions. At least I am unable to understand your problem. What precisely are the kind of queries you would like to make: The description should somehow look like: The query should return all objects for which .... is fulfilled. You must specify "....". I do not expect that "...." must reference an index but instead only object properties. -- Dieter
Dieter Maurer wrote:
Garito wrote at 2004-11-26 17:08 +0100:
Is there any kind of index of ZCatalog to make dynamic indexing?
I would like to find objects with some values on a list index but index is dynamic
I the propertyA I have a list, for example:
Object1 propertyA Value1 Value2 Value3
I would like to search for propertyA, index 1 for all object that have Value2 in this index
Can I make these kind of searches?
I fear you have to take greater care when you formulate your questions.
At least I am unable to understand your problem.
What precisely are the kind of queries you would like to make:
The description should somehow look like:
The query should return all objects for which .... is fulfilled.
You must specify "....". I do not expect that "...." must reference an index but instead only object properties.
Hi Sorry for my english Imagine an object with propertyA This property is a lines In each line of propertyA I write 3 informations: ALabel:TheOrder:SecurityAccess I would know the security access for ALabel like: ObjectA porpertyA Label1:1:Everyone Label2:1:Administrator Label2:1:Users I would like to retrieve ObjectA if I ask for Label1 for Users You know what I mean? Thanks!!
Garito wrote at 2004-11-27 16:05 +0100:
... I would know the security access for ALabel like:
ObjectA porpertyA Label1:1:Everyone Label2:1:Administrator Label2:1:Users
I would like to retrieve ObjectA if I ask for Label1 for Users
You know what I mean?
No. I might have understood had you asked for "Label1" or "Users" or (maybe: "Label2 for Users") but "Label1 for Users" simply does not fit with your example ;-) Independent of language, your examples should be consistent... I will try to give you some hints. As you have a lines property, almost surely a KeywordIndex (maybe more) is what you are looking for. You have several options: * A single KeywordIndex for "propertyA" - indexing the triples this means, you must specify always triples. With a "Managable KeywordIndex" you can use pattern matching to replace missing parts by wildcards. - indexing "label", "order", "access" separately This would allow you to ask for the parts separately. To work well, it would require that the names used in the different categories are different. * several (Keyword) indexes for "propteryA", e.g. one index each for "label", "order" and "access". -- Dieter
Michel Pelletier has a new project called "Zemantic" in the Sourceforge Collective which has this capability (of indexing objects using triples). It is not yet released but is available via CVS. On Sun, 2004-11-28 at 18:09, Dieter Maurer wrote:
Garito wrote at 2004-11-27 16:05 +0100:
... I would know the security access for ALabel like:
ObjectA porpertyA Label1:1:Everyone Label2:1:Administrator Label2:1:Users
I would like to retrieve ObjectA if I ask for Label1 for Users
You know what I mean?
No.
I might have understood had you asked for "Label1" or "Users" or (maybe: "Label2 for Users") but "Label1 for Users" simply does not fit with your example ;-)
Independent of language, your examples should be consistent...
I will try to give you some hints.
As you have a lines property, almost surely a KeywordIndex (maybe more) is what you are looking for.
You have several options:
* A single KeywordIndex for "propertyA"
- indexing the triples
this means, you must specify always triples.
With a "Managable KeywordIndex" you can use pattern matching to replace missing parts by wildcards.
- indexing "label", "order", "access" separately
This would allow you to ask for the parts separately.
To work well, it would require that the names used in the different categories are different.
* several (Keyword) indexes for "propteryA", e.g. one index each for "label", "order" and "access".
Dieter Maurer wrote:
Garito wrote at 2004-11-27 16:05 +0100:
... I would know the security access for ALabel like:
ObjectA porpertyA Label1:1:Everyone Label2:1:Administrator Label2:1:Users
I would like to retrieve ObjectA if I ask for Label1 for Users
You know what I mean?
No.
I might have understood had you asked for "Label1" or "Users" or (maybe: "Label2 for Users") but "Label1 for Users" simply does not fit with your example ;-)
Independent of language, your examples should be consistent...
I will try to give you some hints.
As you have a lines property, almost surely a KeywordIndex (maybe more) is what you are looking for.
You have several options:
* A single KeywordIndex for "propertyA"
- indexing the triples
this means, you must specify always triples.
With a "Managable KeywordIndex" you can use pattern matching to replace missing parts by wildcards.
- indexing "label", "order", "access" separately
This would allow you to ask for the parts separately.
To work well, it would require that the names used in the different categories are different.
* several (Keyword) indexes for "propteryA", e.g. one index each for "label", "order" and "access".
Hi Dieter Thanks for your response I hope this will posible, but... I will check for Zematic (thanks to Chris!) Thanks again
participants (3)
-
Chris McDonough -
Dieter Maurer -
Garito