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.

Comments

drunken monkey’s picture

What result do you reach, and what are the steps you take for that?

SergeyR’s picture

StatusFileSize
new9.11 KB

Step 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:

                    1|<img src="/images/rect.png"/> Rectangular
                    2|<img src="/images/round.png"/> Round
                    3|<img src="/images/square.png"/> Square

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 (?????)

drunken monkey’s picture

Steps and (especially) results for the Search API would be slightly more relevant.

SergeyR’s picture

StatusFileSize
new5.05 KB

the problem is that -i dont see pics for facets (using search api and making the same steps) (see the latest attachment !!)

drunken monkey’s picture

Finally! Was that so hard?

SergeyR’s picture

Sorry ,Thomas ))))
Thank you for attention anyway and hope for your help

drunken monkey’s picture

Title: image facets » Fix escaping of HTML options lists
Category: support » bug
Status: Active » Needs review
StatusFileSize
new777 bytes

Should be fixed by the attached patch. Please test!

SergeyR’s picture

it works!! Great !! thank you !!

damien tournoud’s picture

Not sure about that. Are we sure that the option list isn't plaintext?

drunken monkey’s picture

According 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.

damien tournoud’s picture

In that case, even the example of hook_options_list() is wrong :) We should have a check_plain() in there.

drunken monkey’s picture

In that case, even the example of hook_options_list() is wrong :) We should have a check_plain() in there.

Where? 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.

drunken monkey’s picture

Issue summary: View changes

grammar corrections

legolasbo’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

This 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.