I am back, unfortunately.
The solution you suggested for finding URN-compliant docids using FTS regex matches worked great, until…
The number of records in our collection against which that search was applicable exceeded 1024.
This is curious because previously, we could search without the id filter just fine with only a date range required. This of course was insufficient because we maintain separation between tenants via a domain code encoded in the document id as explained in my original posts.
Now the document results exceed 1024 we get no results but only when we include the id filter. Weird. if we search only on date range results come back from all our customers - not acceptable. If we use the doc id filter the query breaks and we get nothing.Below is the response from the FTS REST API:
Why would FTS return results with the other filters but shut down once the ID filter is applied?
"status": {
"total": 6,
"failed": 6,
"successful": 0,
"errors": {
"screened_name_request_test_3f33ca20613e41ce_13aa53f3": "TooManyClauses[maxClauseCount is set to 1024]",
"screened_name_request_test_3f33ca20613e41ce_18572d87": "TooManyClauses[maxClauseCount is set to 1024]",
"screened_name_request_test_3f33ca20613e41ce_54820232": "TooManyClauses[maxClauseCount is set to 1024]",
"screened_name_request_test_3f33ca20613e41ce_6ddbfb54": "TooManyClauses[maxClauseCount is set to 1024]",
"screened_name_request_test_3f33ca20613e41ce_aa574717": "TooManyClauses[maxClauseCount is set to 1024]",
"screened_name_request_test_3f33ca20613e41ce_f4e0a48a": "TooManyClauses[maxClauseCount is set to 1024]"
}
},
"request": {
"query": {
"must": {
"conjuncts": [
{
"start": "2020-06-29T00:00:00-04:00",
"end": "2020-06-30T23:59:59-04:00",
"inclusive_start": true,
"inclusive_end": true,
"field": "completed"
},
{
"regexp": "biilthakatt::dp::some::thing::activity::[0-9]{4,10}",
"field": "_id"
}
]
}
},
"size": 20,
"from": 0,
"highlight": null,
"fields": [
"*"
],
"facets": null,
"explain": false,
"sort": [
"-start"
],
"includeLocations": false
},
"hits": null,
"total_hits": 0,
"max_score": 0,
"took": 4438027,
"facets": null
}