Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Search does not display result



Search fails to obtain results despite healthy indexes.

Error Messages

Search request failed. Query: [*AMT*], Index [work-vm-km-work*]

Caused by: java.lang.IllegalArgumentException: No field found for [_m_CBRTeamList] in mapping with types [def]
               at ~[elasticsearch-5.6.9.jar:?]
               at ~[elasticsearch-5.6.9.jar:?]
               at org.elasticsearch.painless.PainlessScript$Script.execute(native_oneof_script:28) ~[?:?]
               at ~[lang-painless-5.6.9.jar:?]
               at org.elasticsearch.index.query.ScriptQueryBuilder$ScriptQuery$1$1.get( ~[elasticsearch-5.6.9.jar:?]
               at$1.matches( ~[lucene-core-6.6.1.jar:?]
               at$TwoPhase.getSubMatches( ~[lucene-core-6.6.1.jar:?]
               at ~[lucene-core-6.6.1.jar:?]
               at ~[lucene-core-6.6.1.jar:?]

Steps to Reproduce

  1. Add a content article with words in the body.
  2. Publish the solution.
  3. Searching for the solution.

Root Cause

A defect in Pegasystems’ code or rules.
Attribute-based Access Control (ABAC) policy condition is applied on work class instances that are searched. The Elasticsearch Search query has additional filters if ABAC is enabled on the work class.
After enabling the Elasticsearch debugging, the exception message indicates that the mapping for the ABAC property is not created in the index. This occurs when none of the work instances of this class have this value populated (Pega creates a property mapping on the index only when it encounters an instance with a non-empty value for the first time).


Perform the following local-change:

Populate a value in one of the instances which belong to the class type to generate Elasticsearch mapping when indexing the instance.

Published August 12, 2020 - Updated December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us