hello
i need to simplify a search page
and would like to use one search form for node content and content that doesent comes from nodes
we have custom profile pages which arent nodes
i index them with hook_update_index() and give them the search type 'profile'
i can sucsessfully search the indexed content with do_search($keys, 'profile')
now i would like to list the found profile content with the found node content together on one page (without tabs)
for this i tried to use in the hook_search the function do_search() twice
once with do_search($keys, 'node') and once with do_search($keys, 'profile')
but somehow i am getting only the results for one type twice
depending on in wich type i was searching first
why can i call do_search() only once ?
thanks in advance for help
Comments
btw. for some reasons im am
btw. for some reasons im am not using views so i cant use "views_fastsearch"
temporary table
The do_search function is making use of a temporary table, I'm no expert on temporary tables but my guess is that the second time you call do_search the temp table already exists and is not created, so you get the same results back again.
I would pop a little "DROP TEMPORARY TABLE temp_search_sids" into a db_query between your two do_search calls and see if that solves it
Mike,
Computerminds offer Drupal development, consulting and training
Mike,
Computerminds offer Drupal development, consulting and training
great. thanks a lot that
great. thanks a lot
that works