If I search for a word that is in a following page (not page n.1) I cannot reach the page by clicking on the link: the search module gives me a link to the first page, not to the page where the hits is. Is it a way of changing this?
To me, it does NOT seems trivial... (from what I remember of how search works) but it's really inconvenient. Basically in this way the search is half broken.

Comments

arpeggio’s picture

Hi pbattino, thank you for bringing this up. I'll try work on this feature on my free time. Of course, patches are always welcome. Thank you.

alexkb’s picture

We're using apachesolr for our search, and also need to get this feature in place.

I've been trying to step through things to try solve this, but not having much luck yet.

Should we:

a) alter the content that's sent to Solr for indexing so that it thinks each of the smart_paged pages are actually separate pages, or do we,

b) try alter the search results when they come back from solr after searching, so the link served goes directly to the smart paged page?

The first method seems a little hacky to me, and the second method, might mean that only one smart paged page of a page can be served in the search results (without some heavy lifting/post processing I guess).

Anyone else have any idea's?

samhassell’s picture

search_api has a tonne of hooks so this should be possible, maybe in a sub module.