Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8520099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:26:26+00:00 2026-06-11T06:26:26+00:00

Query.QueryOperator.AND_Field We were using this method in Tridion R5.3 VBscript templates and it worked

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T06:26:27+00:00Added an answer on June 11, 2026 at 6:26 am

    In SDL Tridion 2011 Content Delivery, you create a Query object and add a Criteria object to it using the setCriteria method. The Query object accepts one Criteria object ONLY, but that Criteria object can in turn reference other Criteria objects 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.

    // Schema has ID of either 511 (Article) or 34 (Press Release).
    ItemSchemaCriteria IsArticle = new ItemSchemaCriteria(511);
    ItemSchemaCriteria IsPressRelease = new ItemSchemaCriteria(34);
    Criteria IsArticleOrPressRelease = CriteriaFactory.Or(IsArticle, IsPressRelease);
    
    // Type of the item is 16 (Component).
    ItemTypeCriteria IsComponent = new ItemTypeCriteria(16);
    
    // Both of the above conditions must be true
    Criteria AllCriteria = CriteriaFactory.And(IsArticleOrPressRelease, IsComponent);
    
    // Add these criteria to a query
    Query MyQuery = new Query();
    MyQuery.Criteria = AllCriteria;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Query was this: CREATE TABLE `query` ( `id` int(11) NOT NULL auto_increment, `searchquery` varchar(255)
query = Files .Where(file => file.Fileinfo.Name.ToUpper().Contains(textBox1.Text.ToUpper())) .Take(7).ToList(); I hate asking this question, but I
Query I'm using: SELECT COUNT(*), SUM(amount) AS amount, FROM_UNIXTIME(added, '%W (%e/%m)') AS daily FROM
I am able to do this query just fine with the test repository which
This query is virtually identical to the working example I was shown: SELECT *
This query takes a group of comments, then counts their upvotes and downvotes in
I have this query that is bothering me; it is encapsulated as a new
When I write a code like below, I take this error message: The query
When using the query operator Distinct() the types in the queried sequence must either
using the following LINQ query: EntityQuery<Questions> query = context.GetQuestionsQuery() .Where(o => o.SurveyQuestions.Any(o2 => o2.SurveyID

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.