// QueryIndex - obo index
// Get IDs of terms matching the query (name or synonymes)
obo index
Get IDs of terms matching the query (name or synonymes)
// QueryIndex - obo index // Get IDs of terms matching the query ( name or synonymes )
func QueryIndex(query Queries.ITamalouQuery) ([]string, error) {
	results, err := indexing.QueryIndex(index, query, buildOboStructFromDoc)
	if err != nil {
		return nil, err
	}
	var diseasesIDs []string
	for _, res := range results {
		diseasesIDs = append(diseasesIDs, res.GetID())
	}
	return diseasesIDs, nil
}
func QueryIndex ( query Queries . ITamalouQuery ) ( [ ] string , error ) { results , err := indexing . QueryIndex ( index , query , buildOboStructFromDoc ) if err != nil { return nil , err } var diseasesIDs [ ] string for _ , res := range results { diseasesIDs = append ( diseasesIDs , res . GetID ( ) ) } return diseasesIDs , nil }
obo index
Get IDs of terms matching the query (name or synonymes)
obo index Get IDs of terms matching the query ( name or synonymes )