diff --git a/beacon/reindex.py b/beacon/reindex.py index 5e335813..396f5d80 100644 --- a/beacon/reindex.py +++ b/beacon/reindex.py @@ -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())