We have upgraded our Sitecore instance from 8 to 9.0.2 version. In one of our component on datasource level we are using query like below.
query:./ancestor-or-self::*[@@templatename='Website']/Local Content/Header/Content Source
On front-end everything is working as expected, but when I saw search logs I am seeing below error multiple times.
ERROR Solr Error : ["undefined field query"] - Query attempted: [query:(.\/ancestor\-or\-self)]
.
If I am removing component from page then this error is not showing in search logs. Does anything needs to be updated in query syntax.
Please help me to resolve this error.