Lines Matching defs:index

204 	virtual	void		CalculateScore(Index& index) = 0;
226 The type/size of the value, the score, and if it has an index or not.
255 status_t PrepareQuery(Context* context, Index& index,
261 virtual void CalculateScore(Index &index);
317 virtual void CalculateScore(Index& index);
556 // the max. string in an index, it make sense to have it that way
765 Equation<QueryPolicy>::CalculateScore(Index &index)
770 // do we have to operate on a "foreign" index?
772 || QueryPolicy::IndexSetTo(index, fAttribute) < B_OK) {
787 // least one character to set your index to
792 // take index size into account
793 fScore = QueryPolicy::IndexGetWeightedScore(index, fScore);
799 Equation<QueryPolicy>::PrepareQuery(Context* /*context*/, Index& index,
802 status_t status = QueryPolicy::IndexSetTo(index, fAttribute);
804 // if we should query attributes without an index, we can just proceed here
811 // index but we need the call to the original index to get the correct type
813 // Try to get an index that holds all files (name)
814 // Also sets the default type for all attributes without index
816 type = status < B_OK ? B_STRING_TYPE : QueryPolicy::IndexGetType(index);
818 if (QueryPolicy::IndexSetTo(index, "name") != B_OK)
824 type = QueryPolicy::IndexGetType(index);
830 *iterator = QueryPolicy::IndexCreateIterator(index);
840 int32 keySize = QueryPolicy::IndexGetKeySize(index);
899 // only compare against the index entry when this is the correct
900 // index for the equation
903 // we always start at the beginning of the index (or the correct
1063 Operator<QueryPolicy>::CalculateScore(Index &index)
1065 fLeft->CalculateScore(index);
1066 fRight->CalculateScore(index);
1343 // create index on the stack and delete it afterwards