Hello,

I've searched and can't find an answer. I have many pages generated by views and many panels that override a taxonomy page to bring all content of one type together. They are not getting indexed. Is there a way to tell SOLR to index pages created by views and panels?

If not can anybody suggest a workaround? It is critical for me to have these in the search results, as they are the most important parts of the site we want to direct people toward.

Thanks in advance.

Comments

keyano’s picture

I am looking for this feature too

pwolanin’s picture

No, currently it only indexes nodes.

Search By Page module works to index rendered contact at paths, but no one has implemented an integration - see #884420: Search by Page - add Solr integration

pwolanin’s picture

Version: 6.x-1.2 » 7.x-1.x-dev
Category: support » feature

Also, I might consider some sort of feature like this for HEAD, but it's very unlikely we'll add it to 6.x-1.x

rjbrown99’s picture

I'd like it to index taxonomy terms and weights, specifically so I can use apachesolr_views to sort results by term weight. Something like IM_VID_6_WEIGHT, with terms and weights similar to what you might find in the term_data table's tid and weight columns. No node associations here, just term+weight.

I could do this now, triggered by a node update... it just seems like it would be wasting a lot of cycles to keep reindexing term weights when nodes change since the weights are unlikely to change often. Ideally it would just happen via a hook_taxonomy() but in that case I'm trying to figure out how to get it indexed as the indexing is unrelated to nodes.

Also, if it wasn't obvious I'm referring to D6 as that's my main focus. Just sharing a thought as it seems to be along the lines of the original issue author's request.

RumpledElf’s picture

I'd also love this feature, especially in d7 where taxonomy pages can have a lot of extra fielded information attached to them. I also have a LOT of module generated pages that need indexing.

Search in Drupal when you want more than just your node content indexed is Hard, apparently.

Ravi.J’s picture

The key question is to decide what data do you want to store in Solr documents. Unlike D7 where terms are fieldable, D6 the only info you can store within taxonomy schema is term name, hierarchy and weight.

If you are looking at taxonomy pages /term/ to be used as landing pages for your site, many other modules that help in SEO such as nodewords etc might not be able to hook in adding seo friendly information.

It looks like the solution for you would be to have a content type something on lines of "term_landing_page", with each term that you wish to use in your navigation being associated with one node of the content type. You can store all sorts of info on the landing page and then have the landing page indexed.

As with creation of page, you can do that quite easily with Rules module . Setup a rule that says when a term is added, create a new node with same name as term name.

RumpledElf’s picture

Then you'd end up with the node associated with the term indexed not the term AND the nodes listed in that term, which isn't what I'm after at all.

I want my actual taxonomy pages listed - the whole pages. I'm having real issues trying to do what should be a simple text search on all pages of my site.

nick_vh’s picture

Status: Active » Closed (won't fix)

This is out of scope for this module. If something needs to be realized like this it should probably happen in a contrib module? For extra entities it is now possible to define your own indexing functions. For example term indexing can be realized similarly as the example here : http://drupal.org/sandbox/nickvh/1379368

slapierre’s picture

Version: 7.x-1.x-dev » 6.x-2.x-dev

Hello,

Here is my workaround for a Drupal 6 site.

Given a Views-generated page at URL http://your.web.site/example/views_generated_page which you want indexed by Solr:

1) On your site e.g. http://your.web.site, as admin, create a node type called "forwarding_node"
2) Exclude that node type from the search indexing, at http://your.web.site/admin/settings/apachesolr/content-bias
3) Create a *regular* page on your site and remember its node id (e.g. node/12345)
3.1) Give it the same title as the Views-generated page you want to index
3.2) Put meaningful keywords in the node's body, as this will be used by Solr to index that page, and also because this will appear in the search result snippet page
4) Wait for that new page to be indexed (indexing status is available at http://your.web.site/admin/settings/apachesolr/index)
5) Once indexed, you can make sure that the search returns that regular page... you can tweak the page's body, using bold or header keywords words to influence its positionning in the search result, then let it sink i.e. let Solr re-index it.
6) Once satisfied, open a mysql prompt on your server
6.1) Change the node type through mysql
mysql> update node set type = 'forwarding_node' where nid=12345;
7) Edit the new node http://your.web.site/node/12345/edit
7.1) Change the input format to be "PHP code"
7.2) Change the Body to be

drupal_goto('example/views_generated_page');

Note 1: I know, usage of drupal_goto() commands is not recommended. Use this at your own risk. On the site I'm managing, the only bug/side-effect I've found related to drupal_goto() commands, is that the search indexing stalls on drupal_goto() commands, so it is important to exclude those commands from indexing. If you omit this, new content will never be indexed.

Note 2: Because the node 12345 will never be revisited by the search engine, make sure its title, original body and visibility settings (i.e. if you use access control modules) are right as they will remain that way forever. This is a downside of this workaround...

rjbrown99’s picture

Solr can now index things other than nodes, at least in the 7.x dev version and perhaps in a backport to 6.x.

Closed issue is here: #966796: Separate indexer for multiple entity types

linkanp’s picture

Hi rjbrown99, Can you plz give some link of documentation about how to index views pages by Apache Solr.

Partha Sarathi’s picture

Issue summary: View changes

hi guys.
I am on same issue to index taxonomy terms. I need to index taxonomy terms and then need to use that in apache solr search server to user them.

I have reported a issue here, https://www.drupal.org/project/apachesolr/issues/3010568

Please let me know if anyone found any way to index the taxonomy terms in Drupal 7. Thanks in advance.

Partha Sarathi’s picture

Version: 6.x-2.x-dev » 7.x-1.0
Category: Feature request » Support request
Priority: Normal » Major
Status: Closed (won't fix) » Active