I appreciate having the font_page module for the flexibility is adds in changing the site homw page. However, in preparing a site to go public I've noticed that the content entered in /admin/settings/front_page does not seem to get indexed by the search module. Am I missing something?

Thanks.

Comments

dublin drupaller’s picture

Will look into this for you pwolanin - is it really holding back your site going live?

Dub

dublin drupaller’s picture

Assigned: Unassigned » dublin drupaller
pwolanin’s picture

Title: front_page content is not indexed by search » not a show stopper

This won't stop us from going live with the site - we're doing it for a club not a business (and anyhow I know the the whole of drupal 4.7 is still in beta). However, I think it would be a good thing to address if you can.

Thanks!

pwolanin’s picture

Title: not a show stopper » front_page content is not indexed by search

This won't stop us from going live with the site - we're doing it for a club not a business (and anyhow I know the the whole of drupal 4.7 is still in beta). However, I think it would be a good thing to address if you can.

Thanks!

dublin drupaller’s picture

just changed this to a featur request instead of a bug.

morganl’s picture

Version: 4.7.x-1.x-dev » 5.x-1.8

I see that this issue is almost a year old now. Just wanted to add that I too would VERY much like to see front_page content indexed by drupal's search. I've had to resort to a hacky redirect form another page containing the same content (not a pretty solution). Not having the home page searchable is simply not an option for most of the sites I've done.

That said, thanks for an great and indispensable module.

pwolanin’s picture

I'm not sure how easy this is to do. Note, for example, that the Drupal mission statement is not searchable.

As far as I can tell, the search module only really lets you search content (nodes) not pages:

http://api.drupal.org/api/5/function/search_view

Phillip Mc’s picture

The front page settings are stored in the variables table, so, I used Dublin Drupallers snippet for creating a front page layout switcher.

By using that way of controlling the front page layout, you are working with a node - which is picked up by the search.

Phil

morganl’s picture

Thanks Phil, I hadn't seen that trick before. Very simple! You lose some features provided by front_page doing it that way though.

I've looked through the documentation at http://api.drupal.org and I think the answer might be getting front_page to call search_index() somehow. Here's the description:

Parameters
$sid A number identifying this particular item (e.g. node id).
$type A string defining this type of item (e.g. 'node')
$text The content of this item. Must be a piece of HTML text.
search_index($sid, $type, $text)

So, maybe like this? search_index(1, 'front_page', $var_that_holds_front_page_body)

john.money’s picture

If this feature could be made optional, it would be much appreciated. My take on it is that the front page is going to change pretty often, so any search results that turn up the front page may well be out of date when actually searched.

dublin drupaller’s picture

Status: Active » Closed (won't fix)

Open this back up if you're still stuck.