Search Score Weights (Dev Import)
MongoDB Atlas Search index definition — dev environment import JSON.
jsonjsonatlas-searchweights
📘 Informative architecture document. No credentials, IDs, vault names, or internal URLs.
[{"version": 15,"description": "price by user location with frozen sale-pending price priority","createdTimestamp": {"$date": "2026-05-29T00:00:00.000Z"},"enabled": false,"sortType": "LOW_PRICE_USED_CAR","textSearchWeights": {"ymmt.make": 2000,"ymmt.model": 2000,"bodyStyle": 2000,"_id": 2000},"sortFactors": {"staticFactors": [{"CompoundBlock": {"filter": [],"must": [],"mustNot": [],"minimumShouldMatch": 1,"should": [{"CompoundBlock": {"filter": [],"mustNot": [],"should": [],"must": [{"NearBlock": {"origin": 0,"path": "frozenPriceWithFeesInCents","pivot": 3000000,"scoreBlock": {"BoostScoreBlock": {"value": 1000}}}}]}},{"CompoundBlock": {"filter": [{"QueryStringBlock": {"path": "dealer.state","query": "'#USER_STATE#'"}}],"must": [{"NearBlock": {"origin": 0,"path": "inStatePriceWithFees","pivot": 30000,"scoreBlock": {"BoostScoreBlock": {"value": 1000}}}}],"mustNot": [{"ExistsBlock": {"path": "frozenPriceWithFeesInCents"}}],"should": []}},{"CompoundBlock": {"filter": [],"should": [],"must": [{"NearBlock": {"origin": 0,"path": "outStatePriceWithFees","pivot": 30000,"scoreBlock": {"BoostScoreBlock": {"value": 1000}}}}],"mustNot": [{"QueryStringBlock": {"path": "dealer.state","query": "'#USER_STATE#'"}},{"ExistsBlock": {"path": "frozenPriceWithFeesInCents"}}]}}]}},{"CompoundBlock": {"filter": [],"must": [],"mustNot": [],"minimumShouldMatch": 4,"scoreBlock": {"ConstantScoreBlock": {"value": 10000}},"should": [{"EqualsBlock": {"path": "availability.purchasePending","value": false}},{"EqualsBlock": {"path": "availability.salesPending","value": false}},{"EqualsBlock": {"path": "availability.salesBooked","value": false}},{"EqualsBlock": {"path": "availability.inventoryInTransit","value": false}}]}}],"placeholders": []}},{"version": 8,"description": "price by user location with frozen sale-pending price priority","createdTimestamp": {"$date": "2026-05-29T00:00:00.000Z"},"enabled": false,"sortType": "HIGH_PRICE_USED_CAR","textSearchWeights": {"ymmt.make": 2000,"ymmt.model": 2000,"bodyStyle": 2000,"_id": 2000},"sortFactors": {"staticFactors": [{"CompoundBlock": {"filter": [],"must": [],"mustNot": [],"minimumShouldMatch": 1,"should": [{"CompoundBlock": {"filter": [],"mustNot": [],"should": [],"must": [{"NearBlock": {"origin": 100000000,"path": "frozenPriceWithFeesInCents","pivot": 10000000,"scoreBlock": {"BoostScoreBlock": {"value": 1000}}}}]}},{"CompoundBlock": {"filter": [{"QueryStringBlock": {"path": "dealer.state","query": "'#USER_STATE#'"}}],"must": [{"NearBlock": {"origin": 1000000,"path": "inStatePriceWithFees","pivot": 100000,"scoreBlock": {"BoostScoreBlock": {"value": 1000}}}}],"mustNot": [{"ExistsBlock": {"path": "frozenPriceWithFeesInCents"}}],"should": []}},{"CompoundBlock": {"filter": [],"should": [],"must": [{"NearBlock": {"origin": 1000000,"path": "outStatePriceWithFees","pivot": 100000,"scoreBlock": {"BoostScoreBlock": {"value": 1000}}}}],"mustNot": [{"QueryStringBlock": {"path": "dealer.state","query": "'#USER_STATE#'"}},{"ExistsBlock": {"path": "frozenPriceWithFeesInCents"}}]}}]}},{"CompoundBlock": {"filter": [],"must": [],"mustNot": [],"minimumShouldMatch": 4,"scoreBlock": {"ConstantScoreBlock": {"value": 10000}},"should": [{"EqualsBlock": {"path": "availability.purchasePending","value": false}},{"EqualsBlock": {"path": "availability.salesPending","value": false}},{"EqualsBlock": {"path": "availability.salesBooked","value": false}},{"EqualsBlock": {"path": "availability.inventoryInTransit","value": false}}]}}],"placeholders": []}},{"version": 6,"description": "audi & bmw by msrp, sort based off user location, with frozen sale-pending price priority","createdTimestamp": {"$date": "2026-05-29T00:00:00.000Z"},"enabled": false,"sortType": "LOW_PRICE_NEW_CAR","textSearchWeights": {"ymmt.make": 2000,"ymmt.model": 2000,"bodyStyle": 2000,"_id": 2000},"sortFactors": {"staticFactors": [{"CompoundBlock": {"filter": [],"must": [],"mustNot": [],"minimumShouldMatch": 1,"should": [{"CompoundBlock": {"filter": [{"QueryStringBlock": {"path": "ymmt.make","query": "Audi OR BMW"}}],"must": [{"NearBlock": {"origin": 0,"path": "msrp","pivot": 30000,"scoreBlock": {"BoostScoreBlock": {"value": 1000}}}}],"mustNot": [],"should": []}},{"CompoundBlock": {"filter": [],"should": [],"must": [{"NearBlock": {"origin": 0,"path": "frozenPriceWithFeesInCents","pivot": 3000000,"scoreBlock": {"BoostScoreBlock": {"value": 1000}}}}],"mustNot": [{"QueryStringBlock": {"path": "ymmt.make","query": "Audi OR BMW"}}]}},{"CompoundBlock": {"filter": [],"should": [],"must": [{"CompoundBlock": {"filter": [],"must": [],"mustNot": [],"minimumShouldMatch": 1,"should": [{"CompoundBlock": {"filter": [{"QueryStringBlock": {"path": "dealer.state","query": "'#USER_STATE#'"}}],"must": [{"NearBlock": {"origin": 0,"path": "inStatePriceWithFees","pivot": 30000,"scoreBlock": {"BoostScoreBlock": {"value": 1000}}}}],"mustNot": [],"should": []}},{"CompoundBlock": {"filter": [],"should": [],"must": [{"NearBlock": {"origin": 0,"path": "outStatePriceWithFees","pivot": 30000,"scoreBlock": {"BoostScoreBlock": {"value": 1000}}}}],"mustNot": [{"QueryStringBlock": {"path": "dealer.state","query": "'#USER_STATE#'"}}]}}]}}],"mustNot": [{"QueryStringBlock": {"path": "ymmt.make","query": "Audi OR BMW"}},{"ExistsBlock": {"path": "frozenPriceWithFeesInCents"}}]}}]}},{"CompoundBlock": {"filter": [],"must": [],"mustNot": [],"minimumShouldMatch": 4,"scoreBlock": {"ConstantScoreBlock": {"value": 10000}},"should": [{"EqualsBlock": {"path": "availability.purchasePending","value": false}},{"EqualsBlock": {"path": "availability.salesPending","value": false}},{"EqualsBlock": {"path": "availability.salesBooked","value": false}},{"EqualsBlock": {"path": "availability.inventoryInTransit","value": false}}]}}],"placeholders": []}},{"version": 7,"description": "audi & bmw by msrp, sort based off user location, with frozen sale-pending price priority","createdTimestamp": {"$date": "2026-05-29T00:00:00.000Z"},"enabled": false,"sortType": "HIGH_PRICE_NEW_CAR","textSearchWeights": {"ymmt.make": 2000,"ymmt.model": 2000,"bodyStyle": 2000,"_id": 2000},"sortFactors": {"staticFactors": [{"CompoundBlock": {"filter": [],"must": [],"mustNot": [],"minimumShouldMatch": 1,"should": [{"CompoundBlock": {"filter": [{"QueryStringBlock": {"path": "ymmt.make","query": "Audi OR BMW"}}],"must": [{"NearBlock": {"origin": 400000,"path": "msrp","pivot": 100000,"scoreBlock": {"BoostScoreBlock": {"value": 1000}}}}],"mustNot": [],"should": []}},{"CompoundBlock": {"filter": [],"should": [],"must": [{"NearBlock": {"origin": 40000000,"path": "frozenPriceWithFeesInCents","pivot": 10000000,"scoreBlock": {"BoostScoreBlock": {"value": 1000}}}}],"mustNot": [{"QueryStringBlock": {"path": "ymmt.make","query": "Audi OR BMW"}}]}},{"CompoundBlock": {"filter": [],"should": [],"must": [{"CompoundBlock": {"filter": [],"must": [],"mustNot": [],"minimumShouldMatch": 1,"should": [{"CompoundBlock": {"filter": [{"QueryStringBlock": {"path": "dealer.state","query": "'#USER_STATE#'"}}],"must": [{"NearBlock": {"origin": 400000,"path": "inStatePriceWithFees","pivot": 100000,"scoreBlock": {"BoostScoreBlock": {"value": 1000}}}}],"mustNot": [],"should": []}},{"CompoundBlock": {"filter": [],"should": [],"must": [{"NearBlock": {"origin": 400000,"path": "outStatePriceWithFees","pivot": 100000,"scoreBlock": {"BoostScoreBlock": {"value": 1000}}}}],"mustNot": [{"QueryStringBlock": {"path": "dealer.state","query": "'#USER_STATE#'"}}]}}]}}],"mustNot": [{"QueryStringBlock": {"path": "ymmt.make","query": "Audi OR BMW"}},{"ExistsBlock": {"path": "frozenPriceWithFeesInCents"}}]}}]}},{"CompoundBlock": {"filter": [],"must": [],"mustNot": [],"minimumShouldMatch": 4,"scoreBlock": {"ConstantScoreBlock": {"value": 10000}},"should": [{"EqualsBlock": {"path": "availability.purchasePending","value": false}},{"EqualsBlock": {"path": "availability.salesPending","value": false}},{"EqualsBlock": {"path": "availability.salesBooked","value": false}},{"EqualsBlock": {"path": "availability.inventoryInTransit","value": false}}]}}],"placeholders": []}}]