Skip to content

Commit

Permalink
HPCC-22229 INDEX docs should show how to use "results in" (=>) operat…
Browse files Browse the repository at this point in the history
…or for payload index

Signed-off-by: Jim DeFabia <[email protected]>
  • Loading branch information
Jim DeFabia committed Oct 25, 2023
1 parent 5161525 commit ad081b0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/EN_US/ECLLanguageReference/ECLR_mods/Recrd-Index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,9 @@ Bld := BUILDINDEX(AlphaInStateCity);</programlisting>
sorting behavior can be controlled by using
<emphasis>sortIndexPayload</emphasis> in a #OPTION statement.</para>

<para>You can also use the "results in" operator (=&gt;) before payload
fields as shown below.</para>

<para>Example:</para>

<programlisting>Vehicles := DATASET('vehicles',
Expand All @@ -336,6 +339,10 @@ Payload := RECORD
END;
VehicleKey2 := INDEX(Vehicles,SearchTerms,Payload,'vkey::st.city2');
BUILD(VehicleKey2);

// Using "results in" operator (=&gt;) for payload fields
VehicleKey3 := INDEX(Vehicles,{st,city =&gt; lname},'vkey::st.city3');
BUILD(VehicleKey3);
</programlisting>
</sect2>

Expand Down

0 comments on commit ad081b0

Please sign in to comment.