|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPTSWeightedFieldList
A weighted list of IPTSField
objects.
Used when setting the default field(s) to be searched by text search queries.
See IPTSSearchableCollection.TextQueryDefault
and
IPTSQueryRequest.setTextQueryDefaultFields
.
Method Summary | |
---|---|
void |
addField(IPTSField field,
float weight)
Add a field to this list. |
IPTSField |
getFieldAt(int position)
Returns a single field from the list. |
int |
getSize()
Returns the number of fields already on the list. |
float |
getWeightAt(int position)
Returns a single weight from the list. |
Method Detail |
---|
void addField(IPTSField field, float weight)
field
- field to add to the list.weight
- weight of the field, relative to others in the list; must be positive. If all fields should have the same weight, use 1.0f
for all weights.int getSize()
IPTSField getFieldAt(int position)
position
- position on the list, from 0 to GetSize()-1
.float getWeightAt(int position)
position
- position on the list, from 0 to GetSize()-1
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |