Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query Problem. Please Help!!!! #8627

Open
mehranrezaei opened this issue Oct 6, 2022 · 4 comments
Open

Query Problem. Please Help!!!! #8627

mehranrezaei opened this issue Oct 6, 2022 · 4 comments

Comments

@mehranrezaei
Copy link

I have a custom content type with a Taxonomy Field and the TagsPart attached.
I want to query for content items that contain one of the terms in a given term list and are tagged with all the tags in a list.
Is it possible to write such a query with IContentQuery?

I think for this purpose I need to create a subquery on ContentTagRecord, but I can't find a way to combine these queries using ContentManager.Query.

Can someone write an example of such a query?

@sebastienros
Copy link
Member

Not sure but worst case scenario you can always use custom SQL queries.

@mehranrezaei
Copy link
Author

@sebastienros Thank you for your reply.
The problem with using SQL queries is that the output of the query is not in the form of entities. In particular, in this case I need to work with content item data, its parts, ....

@Skrypt
Copy link
Contributor

Skrypt commented Oct 7, 2022

When you click on "Return Documents" option it returns ContentItems.

@mehranrezaei
Copy link
Author

mehranrezaei commented Oct 7, 2022

@Skrypt I did not understand your point! Where is Return Documents option when I query using TransactionManager?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants