Refereeing this nice post https://ggullentops.blogspot.com/2019/01/extending-sxa-search-query-tokens.html

Above approach works well with simple conditions which generate the below SOLR query e.g. condition 1(must) And Condition 2(must) OR Condition 3(Default) OR Condition 4(Default)

However, I want something like below which can be complex:

condition 1(must) And Condition 2(must) And (Condition 3(Default) OR Condition 4(Default))

Currently, I'm trying to achieve the above requirement by overriding GetQuery implementation of ISearchService.

Does anybody know a better approach? Please share your thoughts.

Sitecore: 9.2

SXA: 1.9

  • 2
    If you want to manipulate the query that is the only way. Oct 31 '19 at 23:02
  • Thanks @DawidRutkowski for the confirmation Nov 1 '19 at 0:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.