-
Hi, How can i query (Lucene or Sql or Graphql) Article content type "... where title='ABC' order by subtitle desc" I want to execute a simple query like this; Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
I found a way like this: SELECT json_extract(Content,'$.Article.Title.Text') as Title, json_extract(Content,'$.Article.SubTitle.Text') as SubTitle but is it correct to use json_extract for each field in the select? |
Beta Was this translation helpful? Give feedback.
-
Using a Lucene Query is more appropriate. These JSON functions are not supported by SQL Queries as far as I know. And they are different from one database provider to another. |
Beta Was this translation helpful? Give feedback.
-
Could you please show me how to do the query in this example with a simple Lucene query? I searched a lot, but I could not find any example or document. |
Beta Was this translation helpful? Give feedback.
Could you please show me how to do the query in this example with a simple Lucene query? I searched a lot, but I could not find any example or document.
Thanks in advance for your help.