Skip to Content
author's profile photo Former Member
Former Member

Can we use Advanced Search CNG Search API for multiple nodes of custom explorer tree?

I have custom explorer tree with one node using Advanced Search CNG Search API.

If I want to use advanced search CNG for another node in same custom explorer tree, how to do it?

Do we have method like getCurrentNode() or so? Based on which may be I can try filtering search criteria.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jul 27, 2016 at 08:33 AM


    two things:

    • Collection types are stored as coma separated lists of PKs and cannot be used in reference search; appropriate model should use relations instead of collections (read the persistence layer's documentation for more insights)

    • So far backoffice does not support searches over attributes of elements in relations (at least not in the UI). The only "workaround" I see here it to use the search initializer to fill the nested part of the query, nevertheless this is a bit more advanced and has significant limitations (in general would have to be a static value)

    Cheers, Wojtek

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 25, 2016 at 02:13 PM


    the initial search is initialized via the type (denoted by the node). If you need exactly the same behaviour on two nodes - just assign them the same type. I you need some pre-filtering you have to use the Advance Search initiaizer that should (conditionally, via, Condidion Evaluator Widget) pre-prepare the fixed part of the advnaced search query.

    Cheers, Wojtek

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I get following issue using FieldType:

      WARN [hybrisHTTP4] [GenericConditionQueryBuilder] Collection types aren't supported now by Field Search Facade! ERROR [hybrisHTTP4] [UiEngineImpl] java.lang.IllegalStateException: Commit node before counting its not empty relevance

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.