Results > Search and Retrieve > Parametric Search > Execute a Parametric Search

Execute a Parametric Search
After you configure IDOL server to index and recognize parametric fields, you can use these actions to execute a parametric search:
GetTagValues
This action allows you to specify one or more parametric fields and return all values that these fields contain in IDOL server. It includes values in documents that you do not have access to and values in documents that were deleted (unless you compacted the IDOL server data index after they were deleted).
For example:
http://localhost:5552/action=GetTagValues&FieldName=Grape
This action requests the different values of the IDOL server Grape fields. It returns a list of all grape varieties stored in an IDOL server wine database, for example.
You can also restrict the action, so it returns Grape field values only if they are in a document that also contains other specific fields that have specific values. For example:
http://localhost:5552/action=GetTagValues&FieldName=Grape&Restriction=MATCH{Barossa Valley}:Region+MATCH{Red}:Color
This action returns only Grape field values if the are in a document that also contains a Region field that has the value Barossa Valley and a Color field that has the value Red.
GetQueryTagValues
This action combines query text with one or more parametric fields. When IDOL server executes the query, it finds documents that match the specified query text, and returns the values of the specified parametric fields for these documents. Unlike the GetTagValues action, the GetQueryTagValues action does not return field values in documents that you do not have access to or that were deleted.
For example:
http://localhost:5552/action=GetQueryTagValues&FieldName=GRAPE,COUNTRY&Text= A smooth red wine that complements game
This action requests the different values of the GRAPE and COUNTRY fields of documents that are conceptually similar to the specified Text.
You can also restrict the action by combining it with various action parameters. For example:
http://localhost:5552/action=GetQueryTagValues&FieldName=GRAPE,COUNTRY&Text= A smooth red wine that complements game&MaxValues=10&Sort=Alphabetical
This action requests the 10 top values of the GRAPE and COUNTRY fields of documents that are conceptually similar to the specified Text. IDOL server displays the values in alphabetical order when it returns them.
http://localhost:5552/action=GetQueryTagValues&FieldName=GRAPE,COUNTRY&Text= A smooth red wine that complements game&DocumentCount=true
This action requests the different values of the GRAPE and COUNTRY fields of documents that are conceptually similar to the specified Text. The DocumentCount parameter instructs IDOL server to return the number of documents that contain each value.
http://localhost:5552/action=GetQueryTagValues&FieldName=GRAPE,COUNTRY&Text= A smooth red wine that complements game&FieldDependence=true
This action requests the different values of the GRAPE and COUNTRY fields of documents that are conceptually similar to the specified Text. The FieldDependence parameter instructs IDOL server to find sets of values that occur together. If IDOL server finds documents that contain the first parametric field listed, it checks if they also contain the subsequently listed parametric fields.
For further details on available parameters for the GetTagValues and GetQueryTagValues actions, refer to the IDOL server Online Help.
Related Topics 
*