The pylance docs list FTS as a valid index type for create_scalar_index, and internally this is treated as an alias for INVERTED, but this is not done consistently, and is disallowed by the function. I would suggest simply removing the alias as the simpler option, and the docs for INVERTED already make it clear it's the choice for full-text search.
I'm going to put up a PR that simply removes the partial implementation of such an alias. I'm happy to go through and more fully implement the alias instead if we feel that's best (it is a little more friendly to a new-comer, but overall I would say not worth the overhead of an alias).
The
pylancedocs listFTSas a valid index type forcreate_scalar_index, and internally this is treated as an alias forINVERTED, but this is not done consistently, and is disallowed by the function. I would suggest simply removing the alias as the simpler option, and the docs forINVERTEDalready make it clear it's the choice for full-text search.I'm going to put up a PR that simply removes the partial implementation of such an alias. I'm happy to go through and more fully implement the alias instead if we feel that's best (it is a little more friendly to a new-comer, but overall I would say not worth the overhead of an alias).