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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e945af-14cd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e945af-14cd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?