Like the title says, when using the hook_search_api_data_type_info() with a fallback on text, you're not able to boost your fields
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 1750144-5--boost_for_custom_fulltext_types.patch | 3.18 KB | drunken monkey |
| #2 | search_api-fix-boost-hiding-1750144-2.patch | 3.68 KB | jsacksick |
| #1 | search_api-fix-boost-hiding-1750144-1.patch | 3.68 KB | jsacksick |
Comments
Comment #1
jsacksick commentedComment #2
jsacksick commentedComment #3
danielnolde commented#2 Worked for me, Thanks!
Comment #4
danielnolde commentedStill works like a charme (also bith newest dev from 2013-sep-13), so let's commit it!
Comment #5
drunken monkeyThanks a lot for posting, it works really well!
However, I find the code a bit hard to follow. Also, you include types multiple times in the array, and call
hook_search_api_data_type_info()several times.I reworked the code a bit, patch attached. Please test, then I'll commit it.
Why don't you set the issue to RTBC when you think it's ready?
Comment #6
drunken monkeyOK, since no-one seems to want to review this, I just committed it.
Thanks again for your contribution, Jonathan!
Comment #7
drunken monkey