Hi, first of all sorry about my english and my ignorance. My question is simple. How can I search on mysite module? I have the search module but when I submit a search it only finds the keywords of my content out of mysite module...

I've find this line in the search module

$node_regexp = '@href=[\'"]?(?:'. preg_quote($base_url, '@') .'/|'. preg_quote(base_path(), '@') .')(?:\?q=)?/?((?![a-z]+:)[^\'">]+)[\'">]@i';

I supposed that looks in that direction for all the nodes that it finds. I should change than url? or that is not the problem

Thanks!

Comments

agentrickard’s picture

Category: feature » support

I do not understand the question.

You want search results to link to a user's MySite page? Why?

I do not think that is possible, or advisable, for two reasons:

1) The MySite page is an aggregate of content found elsewhere on the site.

2) Normally, the MySite page content is different for each user, so you cannot guarantee that the contents of one user's page will be the same as another user's.

Those issues aside, this is really a search question, I think, better stated as:

"Can the Drupal search system index pages that are not nodes? If so, how?"

kikolabiano’s picture

Thanks for the reply. Actually the question you have said is more correct than mine

"Can the Drupal search system index pages that are not nodes? If so, how?"

Thank you very much

agentrickard’s picture

Status: Active » Closed (fixed)

I don't know the answer to that. Try the API docs or the forums.

kikolabiano’s picture

Thanks