MatchReference
The references of documents to include in the results. Only matching results with the specified references can return. You can also set the ReferenceField parameter to specify the reference field that this reference value must occur in.
NOTE: When you use MatchReference
and DontMatchReference together, IDOL removes any documents in the DontMatchReference list from the MatchReference
list.
You should percent-encode document references. This ensures that any reserved characters that are part of a reference are not interpreted as query syntax. If you are sending HTTP requests using the content-type application/x-www-form-urlencoded
you should percent-encode all parameter values, meaning that document references are percent-encoded twice. For more information, see Percent Encoding in Queries.
If you have the following two references:
-
http://www.example.com/?script.pl&query=test
-
http://www.example.com/?script.pl&query=cat+dog
Percent-encode each reference:
http%3A%2F%2Fwww%2Eexample%2Ecom%2F%3Fscript%2Epl%26query%3Dtest
http%3A%2F%2Fwww%2Eexample%2Ecom%2F%3Fscript%2Epl%26query%3Dcat%2Bdog
Separate the two references with a plus symbol:
http%3A%2F%2Fwww%2Eexample%2Ecom%2F%3Fscript%2Epl%26query%3Dtest+http%3A%2F%2Fwww%2Eexample%2Ecom%2F%3Fscript%2Epl%26query%3Dcat%2Bdog
If you send your HTTP request using the content-type application/x-www-form-urlencoded
, all parameter values should be percent-encoded. When IDOL Content Component receives the request, the references should have been percent-encoded twice and the "+" separator should have been percent-encoded only once:
http%253A%252F%252Fwww%252Eexample%252Ecom%252F%253Fscript%252Epl%2526query%253Dtest%2Bhttp%253A%252F%252Fwww%252Eexample%252Ecom%252F%253Fscript%252Epl%2526query%253Dcat%252Bdog
Actions: | List
Query Suggest SuggestOnText GetQueryTagValues |
Type: | String |
Default: | |
Example: | MatchReference=http%253A%252F%252Fwww%252Eexample%252Ecom%252F%253Fscript%252Epl%2526query%253Dtest%2B
|
See Also: | DontMatchReference
ReferenceField |