Now I compare the modules: Apache Solr framework and Search API .
One of the tasks is to make facets look as images.
Please take a look at the attached files to see as I've settled Apache Solr framework for this.
Easy and perfect!
But when I do the same with Search API module I fail to reach this result -may be I need more sofisticated tuning - please advice.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 1343642--html-options-lists-7.patch | 777 bytes | drunken monkey |
| #4 | no image facets.PNG | 5.05 KB | SergeyR |
| #2 | facet block.PNG | 9.11 KB | SergeyR |
| field setting.JPG | 18.46 KB | SergeyR | |
| facets with image.JPG | 5.59 KB | SergeyR |
Comments
Comment #1
drunken monkeyWhat result do you reach, and what are the steps you take for that?
Comment #2
SergeyR commentedStep by step
1.i installed Apache Solr Search Integration module
2.i put images in /images directory
3.created content type with new field "shape" that has field type =list(text)
4.in field setting i made allowed values list as:
5.i add some content with different values of "shape" field
6.in Apache Solr Search configuration -i made checked this field as enabled filter
7.Activated blocks with this facet to be visible
8.Made new search page
9.indexed all
and finally i have got a facets block with combined image+text facets (see new attachment !!!)
=================================================================
i tried to make the same with Search API -with NO success -may be another approach has to be (?????)
Comment #3
drunken monkeySteps and (especially) results for the Search API would be slightly more relevant.
Comment #4
SergeyR commentedthe problem is that -i dont see pics for facets (using search api and making the same steps) (see the latest attachment !!)
Comment #5
drunken monkeyFinally! Was that so hard?
Comment #6
SergeyR commentedSorry ,Thomas ))))
Thank you for attention anyway and hope for your help
Comment #7
drunken monkeyShould be fixed by the attached patch. Please test!
Comment #8
SergeyR commentedit works!! Great !! thank you !!
Comment #9
damien tournoud commentedNot sure about that. Are we sure that the option list isn't plaintext?
Comment #10
drunken monkeyAccording to fago, options lists have the same format as specified by
hook_options_list(), which (can) contain HTML. So this should be correct.I wondered about the same thing, though.
Comment #11
damien tournoud commentedIn that case, even the example of hook_options_list() is wrong :) We should have a
check_plain()in there.Comment #12
drunken monkeyWhere? Don't know what you mean, please elaborate!
Anyways, great that you are chiming in here, as said, I'm not that certain myself this is the right way.
Comment #12.0
drunken monkeygrammar corrections
Comment #13
legolasboThis issue has not seen activity in over 2,5 years. I am therefore closing this issue to clean up the issue queue. Feel free to re-open and update this issue if you feel this issue is still relevant and of importance.