Closed (fixed)
Project:
Search API
Version:
8.x-1.x-dev
Component:
Views integration
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2020 at 10:26 UTC
Updated:
20 Oct 2021 at 16:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
nbaosullivan commentedComment #3
drunken monkeyThanks a lot for reporting this issue!
After a quick look, it seems it should be quite simple to just support all kinds of bundle types generically in our filters. Please see (and test) the attached patch.
Optimally, of course, we’d also add test coverage for this. Would you be prepared to work on that? I fear, though, that we currently have no (direct) test coverage at all for
search_api_views_data()hook (or should I call it an ecosystem already – it’s pretty complex, in any case, so could really use some tests). Shouldn’t be too hard to do, though. Just a lot of setup involved to get the necessary fields both in Drupal and in Search API.Comment #4
drunken monkeyDid you get a chance to test my patch? Can you confirm it works for you?
Tests would still be great, in any case.
Comment #5
nbaosullivan commentedI've just replaced my patch with yours and it works as expected for an exposed Media Type filter. Sorry I missed your previous comment - I don't have the time to do test coverage at the moment, but will return to help when I do. Thanks!
Comment #7
drunken monkeyThanks a lot for reporting back, and even being generally open to providing tests.
I really shouldn’t do this, but anyways, as tests will be quite a bit of work probably: let’s just commit this now and, ideally, add tests later. If you get the time and still feel motivated, it would be awesome if you could create a new issue with tests for this functionality.
Committed here. Thanks again for your work!
Comment #9
hchonovWe previously had used the filter "search_api_string" for bundles and now since we've updated from 1.15 to 1.16 our views using that filter for bundles are all broken.
Why wasn't there an update for this? How should we proceed now? Should we just manually update our views to use the new filter "search_api_options" or will there be an update provided?
Comment #10
ahaomar commentedI tried with search api along with Media but cant able to search from media. although from indexed fields are added from media type but still search not working. any special settings required ? I have media type along with fields title, description etc i want to search from these fields too.
please guide me settings, patch for that