Query.QueryOperator.AND_Field
We were using this method in Tridion R5.3 VBscript templates and it worked well.
Recently , while migrating to Tridion 2011 SP1, we tried using this method, but it doesn’t works.
We understood that this method is depreciated in new tridion versions.
As per some posts in Forum, we also enabled the following lines in CD_Storage_Conf:
<SearchFilter Name="SearchFilter" Class="com.tridion.broker.components.meta.MsSqlSearchFilterHome" defaultStorageId="defaultdb"/>
<Item typeMapping="Query" storageId="defaultdb"/>
The question is, what is replacement of the ‘Query.QueryOperator.AND_Field’ method? How can we use this filter in C# ?
How to use the Broker Querying Mechanism mentioned in the support API files?
Thanks.
In SDL Tridion 2011 Content Delivery, you create a
Queryobject and add aCriteriaobject to it using thesetCriteriamethod. TheQueryobject accepts one Criteria object ONLY, but thatCriteriaobject can in turn reference otherCriteriaobjects in a tree structure.For a good example of creating a Query filter using both AND and OR operators, see Creating a filter in the SDL Tridion 2011 SP1 documentation in SDL LiveContent.