Es retrieves how to exclude some fields from Standard Red

when using elasticsearch to retrieve, you need to search keywords in red. There is a status field in the condition that must be provided. As a result, the value of the status is also marked in red. How do you generally deal with it?


the preliminary solution that comes to mind now is to replace value 1 with values such as statusxxx1 and statusxxx2, so that values like statusxxx1 basically do not appear in the retrieved text, but we use enumerated storage, which does not feel very friendly. Do you have a solution to the type problem

Jun.11,2022

find a solution. Just set the property requireFieldMatch to true.

Menu