NOTE: This method is now obsolete.


Add a query using querylet field weights.


Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)

Syntax

Visual Basic (Declaration)
Public Sub addQuery( _ 
   ByVal query As String,  _ 
   ByVal names As String(),  _ 
   ByVal fieldWeights As Double(),  _ 
   ByVal queryletWeight As Double,  _ 
   ByVal alignField As Integer,  _ 
   ByVal thesaurusName As String _ 
)
C#
public void addQuery(
   string query,
   string[] names,
   double[] fieldWeights,
   double queryletWeight,
   int alignField,
   string thesaurusName
)
C++
public:
 void addQuery(
   String query,
   array<String>^ names,
   array<double>^ fieldWeights,
   double queryletWeight,
   int alignField,
   String thesaurusName
) sealed 
J#
public void addQuery(
   string query,
   string[] names,
   double[] fieldWeights,
   double queryletWeight,
   int alignField,
   string thesaurusName
)
JScript
public  function addQuery(
   query : String,
   names : String[],
   fieldWeights : double[],
   queryletWeight : double,
   alignField : int,
   thesaurusName : String
)

Parameters

query
The query that will be used to search the given field names.
names
The field names against which the query will be searched.
fieldWeights
An array of doubles which weigh the importance of fields. Use a higher number to weigh a given field as more important. The doubles are one per field for the fields specified for this query (the lengths of the 2nd and 3rd parameters to this method should be the same). The valid range for the doubles is from 0.0 to 1.0.
queryletWeight
Specifies the fraction of the entire record score that should come from this querylet. (A value of -1.0 will set each querylet to an equal weight.) If you set a queryletWeight for a query, you must set a queryletWeight for every query for the table.
alignField
The field number which this querylet will most likely be found in. This can be used as a hint to the search algorithm (field numbers start at 0).
thesaurusName
The name of a thesaurus to be used just for this querylet. (A null string will not use a thesaurus for the querylet.)

Remarks

This deprecated method can't be used with joined configurations.

See Also