Needs review
Project:
Search API
Version:
8.x-1.x-dev
Component:
Views integration
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2025 at 16:27 UTC
Updated:
12 Jun 2026 at 08:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
albionbrown commentedComment #5
drunken monkeyThanks for reporting this problem and already providing a patch!
We now use MR for working on changes, though – I created one with the changes from your patch and also added test coverage.
Just one more question, otherwise I think this is ready to be merged: Your patch also contains changes to
SearchApiMoreLikeThis. Are these related and also necessary or did you just include them by mistake? In the former case, could you quickly explain why those are needed?PS: It seems you (like many others – it's really easy to misinterpret) are confused by the "Issue tags" field. As the guidelines state, they aren't meant for free text tags related to the issue, but only for specific categorization purposes, usually by module maintainers.
So, if you aren't sure your current usage is correct, please just leave the field empty.
Comment #6
jvollebregt-swis commentedFound this issue when searching for my error. I'm getting a
Call to a member function setOption() on nullinSearchApiMoreLikeThis::querywhich was fixed by the patch. I presume it was deliberate.Not sure if checking the index is the more robust solution instead of just checking if
getSearchApiQuery()returns anything like the patch does inSearchApiCachePluginTraitbut it works in my case.