[SERVER-55863] createIndexes permits some text index-only options for non-text indexes Created: 07/Apr/21  Updated: 06/Dec/22  Resolved: 14/Jan/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Kaitlin Mahar Assignee: Backlog - Query Optimization
Resolution: Duplicate Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-49224 Improve validation of index spec fields Closed
Related
related to SERVER-54712 createIndexes permits weights for non... Closed
related to SERVER-49224 Improve validation of index spec fields Closed
Assigned Teams:
Query Optimization
Operating System: ALL
Participants:

 Description   

SERVER-54712 broke a test in the Swift driver against latest (v4.9.0-alpha7-524-ge07610a) which was relying on the server accepting weights for a non text index. In the process of investigating I noticed that there seem to be a number of other text index-only options that are still allowed for a non-text index:

  • default_language
  • language_override
  • textIndexVersion

I would assume these should be handled in the same way as weights? Sorry if there's a ticket for this already; it didn't seem to quite be covered by those linked to SERVER-54712.



 Comments   
Comment by Kaitlin Mahar [ 07/Apr/21 ]

louis.williams It does sound similar, though I wasn't sure if it would be considered exactly the same, since that ticket was considered "related to" but not a duplicate of SERVER-54712 which this ticket is just an extension of. I think, possibly, the distinction is what layer the options are validated at: SERVER-54712 seems to be about failing at the command level, whereas SERVER-49224 is about doing so at the index build level.

That said, my knowledge of how indexes are implemented in the server is very limited, so maybe that isn't a meaningful distinction - I'd defer to you on whatever you think is best here.

Comment by Louis Williams [ 07/Apr/21 ]

kaitlin.mahar, this sounds similar to SERVER-49224. Do you think we can close this as a duplicate of that ticket?

Generated at Thu Feb 08 05:37:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.