GraphQL filtering on Taxonomy #6873
-
Hi all! In our scenario, the content can be classified in 1 or more 'categories'. We are using Taxonomy for this. Now we should be able to query the content items where a given 'category' should be one of the parameters along with some 'text' that needs to be found in the fulltext field. We are retrieving our data from Orchard using GraphQL. We've already build a Lucene query for the full text search that we call via GraphQL to get our results. So far, everything is going well. But, we don't have any clue how we could possibly add this additional category filter. Hopefuly some smart people of the community can steer us in the right direction so we can build this! Thanks!! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I'm not sure I'm entirely following. So you have the content items with connected Taxonomy terms set up, right? And you have a Lucene index for the term titles (let's call the text there as such) and can retrieve these items via GraphQL. What is the missing step? Retrieving content items based on the title of their corresponding Taxonomies? |
Beta Was this translation helpful? Give feedback.
-
Taxonomies are included and indexed by lucene. Can you not include the taxonomy related information as a further filter on your full text query |
Beta Was this translation helpful? Give feedback.
Taxonomies are included and indexed by lucene.
Can you not include the taxonomy related information as a further filter on your full text query