I am working to retrieve work object data by using report definition configuration by having elastic search as database
I have created an custom search properties and dedicated index for App-Name-work-travel class. After that i reindexed dedicated indexes in search landing page. I am have created a report definition in App-Name-work-travel class. I have chossed Prefer Elasticsearch index in data access tab.
While runnning report i am getting results from elastic search(i have ensured it is returning from elastic search by seeing elastic search query in tracer )if i configured single value properties like .FirstName, .LastName.
But i am trying to use .Traveller.FirstName. traveller is a single page property while trying to run report definition i am seeing SQL query in tracer.
Is there any possible way to retrieve results from elastic search for embedded properties.
We have the same scenario like we need to fetch embedded properties and when I have contacted the corresponding team in Pega who owns this functionality.
They clearly said embedded properties are not supported for elastic search from RD.
Alternatively we need to use pxRetrieveSearchData activity in Report definition class to use elastic search for embedded properties.
Thanks @tiruk . But while trying to run Report definition(source → prefer elastic search in data access tab in Report definition) in pxRetrieveSearchData activity sql query is found (while checking with tracer sql query is found, no elastic search query is found in tracer). How i will ensure pxRetrieveSearchData is retrieving from elastic search index.
For the pxRetrieveSearchData, you need to send the query param which is nothing but a query in the JSON format. And also the activity is solely purposed for the elastic search purposes only.
Please let me know if you need any further assistance.
Thanks @Hoyath. I have tried to find this setting in prlog4j.xml to enable but PegaSearch.Searcher.ESSearcher not found in the log file. Can you help me where to add this setting in pega..
@DhanasekarC0202 you dont need to change your prlog4j2 for this.
Just navigate to Configure->system->operations->Logs and then Choose Log Level Settings and enter "PegaSearch.Searcher.ESSearcher" and then set the level to ALL or Debug