Skip to content

Commit

Permalink
removing unused indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
costero-e committed May 17, 2024
1 parent 60999f9 commit 56f43f6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions beacon/reindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@
client.beacon.validate_collection("similarities")
except Exception:
db=client.beacon.create_collection(name="similarities")
client.beacon.analyses.create_index([("$**", "text")])
client.beacon.biosamples.create_index([("$**", "text")])
client.beacon.cohorts.create_index([("$**", "text")])
client.beacon.datasets.create_index([("$**", "text")])
client.beacon.genomicVariations.create_index([("$**", "text")])
client.beacon.genomicVariations.create_index([("caseLevelData.biosampleId", 1)])
client.beacon.genomicVariations.create_index([("variation.location.interval.end.value", -1), ("variation.location.interval.start.value", 1)])
#client.beacon.analyses.create_index([("$**", "text")])
#client.beacon.biosamples.create_index([("$**", "text")])
#client.beacon.cohorts.create_index([("$**", "text")])
#client.beacon.datasets.create_index([("$**", "text")])
#client.beacon.genomicVariations.create_index([("$**", "text")])
#client.beacon.genomicVariations.create_index([("caseLevelData.biosampleId", 1)])
#client.beacon.genomicVariations.create_index([("variation.location.interval.end.value", -1), ("variation.location.interval.start.value", 1)])
client.beacon.genomicVariations.create_index([("variantInternalId", 1), ("caseLevelData.biosampleId", 1)])
client.beacon.genomicVariations.create_index([("identifiers.genomicHGVSId", 1), ("variation.location.interval.start.value", 1), ("caseLevelData.biosampleId", 1), ("variation.referenceBases", 1), ("variation.alternateBases", 1)])
#client.beacon.genomicVariations.create_index([("identifiers.genomicHGVSId", 1), ("variation.location.interval.start.value", 1), ("caseLevelData.biosampleId", 1), ("variation.referenceBases", 1), ("variation.alternateBases", 1)])
client.beacon.genomicVariations.create_index([("variation.location.interval.end.value", -1), ("variation.location.interval.start.value", 1), ("variation.referenceBases", 1), ("variation.alternateBases", 1)])
client.beacon.genomicVariations.create_index([("molecularAttributes.geneIds", 1), ("variantInternalId", 1), ("variation.variantType", 1)])
client.beacon.individuals.create_index([("$**", "text")])
client.beacon.runs.create_index([("$**", "text")])
#client.beacon.individuals.create_index([("$**", "text")])
#client.beacon.runs.create_index([("$**", "text")])
#collection_name = client.beacon.analyses
#print(collection_name.index_information())

0 comments on commit 56f43f6

Please sign in to comment.