Search API not working after 7.1.7 upgrade
After upgrading to 7.1.7 searches using a custom search gadget based on the search API no longer return any results. Post upgrade distributed search (Elasticsearch) is now being used and when tracing you can see this by checking that step one of the pzSearch activity is processed. Even though all the parameters appear to be correct based on the previous implementation of the search functionality the results are not being returned as expected. In the pzSearch activity we appear to be passing the pySearch page as the content page and then exiting the activity without populating the results to the pySearchResults page. From the search API documentation the page should be created and the data set in the engine.
This issue is caused by the parameters being passed to the distributed search. In this case the parameter that was causing the issue was the pySearchOnProperty. The value was set to "contents".
To resolve the issue all that is needed is to stop setting the value for this parameter. The pySearchOnProperty is an internal field that shouldn't be set and will default to "_content" for the distributed search.
0% found this useful