Feature Request: Compound Full-Text Indexes #875
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note
Related to previous requests in #724 and #833.
Overview
Assuming we're having a coumpound full-text index like:
Old behaviour
SQLSTATE[HY000]: General error: 1191 Can't find FULLTEXT index matching the column list ...
New behaviour
Arguments
🟢 Pro
Similarly to linked previous requests I mistakenly assumed that the existence of the
SearchUsingFullText
attribute meant that compound full-text indexes are supported.🔴 Against
Like mentioned already in #833 (comment) - it can be done using the default query builder.
I felt like the cost of this change is not so heavy compared to already existing similar feature request tickets and that it would be a nice "completion" of the
SearchUsingFullText
behaviour.Tests
Did not add any - I believe there are non for the attributes to limit the required migrations? ( 🤔 ) Correct me if I'm wrong on that.
What has been done - I hooked up my local scout package to a bigger internal project and was testing the behaviour and queries like that. There are no breaking changes so the existing tests should run through.