Forums / Setup & design / Search in 3.4.2 don't work as I hope.

Search in 3.4.2 don't work as I hope.

Author Message

Lars Tore Gustavsen

Thursday 07 October 2004 2:12:39 am

I have a search, that search only for words in article or in folder in ez-3.4.1.
After upgrading to 3.4.2 my search match everything, images, files...

Here is code from my template override:

{section show=$use_template_search}
    {set page_limit=10}
    {set search=fetch(content,search,
                      hash(text,$search_text,
                      class_id,array(2,1),
                           subtree_array,$search_subtree_array,
                           sort_by,array('modified',false()),
                           offset,$view_parameters.offset,
                           limit,$page_limit))}
    {set search_result=$search['SearchResult']}
    {set search_count=$search['SearchCount']}
    {set stop_word_array=$search['StopWordArray']}
    {set search_data=$search}
{/section}

What have changed in 3.4.2.

laurent le cadet

Thursday 07 October 2004 2:25:30 am

Hi Lars,

I'm not really sure but you can choose if a classe attribute is searchable or not (admin).

Laurent

Lars Tore Gustavsen

Tuesday 12 October 2004 12:27:52 am

Thank you. for your suggestion. Looks like a nice workaround.
Now I just have to recompile php so i can run updatesearchindex.php and clear the search index.

I am still very confused why the class_id,array(2,1) parameter don't work anymore.

Lars Tore Gustavsen

Frederik Holljen

Tuesday 12 October 2004 12:31:47 am

Can you please file a detailed bug report? We should look into this.