We could see the lot of below exceptions in the Sitecore log file. Could you please provide some suggestions to resolve this issue?

Exception: System.NotSupportedException
Message: Unknown query node type: 'Constant'
Source: Sitecore.ContentSearch.Linq.Solr
   at Sitecore.ContentSearch.Linq.Solr.SolrQueryMapper.Visit(QueryNode node, SolrQueryMapperState state)
   at Sitecore.ContentSearch.Linq.Solr.SolrQueryMapper.Visit(QueryNode node, SolrQueryMapperState state)
   at Sitecore.ContentSearch.Linq.Solr.SolrQueryMapper.MapQuery(IndexQuery query)
   at Sitecore.ContentSearch.Linq.Linq.Parsing.DefaultQueryTranslator`1.GetQuery(Expression expression)
   at Sitecore.ContentSearch.Linq.Linq.Parsing.DefaultQueryExecutor`1.Execute[TElement,TResult](Expression expression)
   at Sitecore.ContentSearch.Linq.QueryableExtensions.GetResults[TSource](IQueryable`1 source)
  • can you please share the Solr query which you are calling ..
    – ckhanna
    Commented May 24 at 9:43
  • Solr Query - ?q=((group:("cff35512246d49ae9cf41fa78190a398") AND _latestversion:("True")) AND _language:("en")) AND _val:__boost&start=0&rows=1000000&fl=*,score&fq=_indexname:("indexname")&wt=xml
    – Astle
    Commented May 27 at 9:36
  • This is the correct solr query. There must be issue in dotnet code while creating query to Solr. Can you share that solr predicate builder code. There must be an error on the predicate builder.
    – ckhanna
    Commented May 28 at 13:55
  • We are getting the same error like in this article community.sitecore.com/community/…. But we never used the || condition and only used the aggregate with or condition. Are there any troubleshooting steps available?
    – Astle
    Commented May 31 at 10:37


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.