I managed to get it right. It's quite simple actually, I only had to add a 
predicate to where clause having the following form:

<predicate parameter="schema_prefix:complexType:property1" operator="IN">
  <field schema="query_document_schema" name="property1_field" />
</predicate>

Mihai

On Wednesday 05 November 2008 15:32:26 Mihai Durbaca wrote:
> Hi all,
>
> I'm trying to build a statefull query model to search in a complex property
> of a document. The property is defined in document's schema like this:
>
>   <xs:complexType name="complexTypeInDocument">
>     <xs:sequence>
>       <xs:element name="item" type="complexType" minOccurs="0"
>         maxOccurs="unbounded" />
>     </xs:sequence>
>   </xs:complexType>
>
> where complexType is defined as follows:
>
>   <xs:complexType name="complexType">
>     <xs:sequence>
>       <xs:element name="property1" type="xs:string" minOccurs="0"
>         maxOccurs="unbounded" />
>       <xs:element name="property2" type="xs:string" minOccurs="0"
>         maxOccurs="unbounded" />
>     </xs:sequence>
>   </xs:complexType>
>
> I need to search all documents that have property1 for example in a list of
> values. Is there a way to do this?
>
> Mihai DURBACA
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to