func (o HitsList) ToSparse(fields ...string) elemental.Identifiables {

	out := make(SparseHitsList, len(o))
	for i := 0; i < len(o); i++ {
		out[i] = o[i].ToSparse(fields...).(*SparseHit)
	}

	return out
}
// ToSparse returns the HitsList converted to SparseHitsList.
// Objects in the list will only contain the given fields. No field means entire field set.
ToSparse returns the HitsList converted to SparseHitsList.
Objects in the list will only contain the given fields. No field means entire field set.
// ToSparse returns the HitsList converted to SparseHitsList . // Objects in the list will only contain the given fields . No field means entire field set .
func (o HitsList) ToSparse(fields ...string) elemental.Identifiables {
	out := make(SparseHitsList, len(o))
	for i := 0; i < len(o); i++ {
		out[i] = o[i].ToSparse(fields...).(*SparseHit)
	}
	return out
}
func ( o HitsList ) ToSparse ( fields ... string ) elemental . Identifiables { out := make ( SparseHitsList , len ( o ) ) for i := 0 ; i < len ( o ) ; i ++ { out [ i ] = o [ i ] . ToSparse ( fields ... ) . ( * SparseHit ) } return out }
ToSparse returns the HitsList converted to SparseHitsList.
ToSparse returns the HitsList converted to SparseHitsList .