diff --git a/docs/EN_US/ECLLanguageReference/ECLR_mods/Recrd-Index.xml b/docs/EN_US/ECLLanguageReference/ECLR_mods/Recrd-Index.xml index feed4cd55fc..a1b9358527d 100644 --- a/docs/EN_US/ECLLanguageReference/ECLR_mods/Recrd-Index.xml +++ b/docs/EN_US/ECLLanguageReference/ECLR_mods/Recrd-Index.xml @@ -318,6 +318,9 @@ Bld := BUILDINDEX(AlphaInStateCity); sorting behavior can be controlled by using sortIndexPayload in a #OPTION statement. + You can also use the "results in" operator (=>) before payload + fields as shown below. + Example: Vehicles := DATASET('vehicles', @@ -336,6 +339,10 @@ Payload := RECORD END; VehicleKey2 := INDEX(Vehicles,SearchTerms,Payload,'vkey::st.city2'); BUILD(VehicleKey2); + +// Using "results in" operator (=>) for payload fields +VehicleKey3 := INDEX(Vehicles,{st,city => lname},'vkey::st.city3'); +BUILD(VehicleKey3);