Automatic Phrasing has two associated URL query parameters: Ntpc
and Ntpr
.
Both Ntpc
and Ntpr
are Boolean parameters that are enabled by setting to 1 and disabled by setting to 0.
Adding the Ntpc=1
parameter instructs the MDEX Engine to compute phrasing alternatives for a query. Using this parameter alone, the MDEX Engine processes the original query and not any of the automatic phrasings computed by the MDEX Engine.
Here is an example URL that processes a user’s query napa valley without phrasing and provides an alternative automatic phrasing, Did you mean "napa valley"?:
<application>?N=0&Ntk=All&Ntt=napa%20valley&Nty=1&Ntpc=1
If you omit Ntpc=1
or set Ntpc=0
, then automatic phrasing is disabled.
The Ntpr
parameter instructs the MDEX Engine to rewrite the query using the available automatic phrase computed by Ntpc
. The Ntpr
parameter depends on the presence of Ntpc=1
.
Here is an example URL that automatically phrases the user’s query napa valley to "napa valley" and processes the phrased query. The Web application may also provide an unphrased alternative, so users can submit their original unphrased query (for example, "Did you mean napa valley?"):
<application>?N=0&Ntk=All&Ntt=napa%20valley&Nty=1&Ntpc=1&Ntpr=1
If you omit Ntpr=1
or set Ntpr=0
, then the query is not re-written using an automatic phrasing alternative. You can omit Ntpr=1
and still use the Ntpc=1
parameter to compute an available alternative for display as a DYM option.