Tuesday 29 March 2005 12:08:35 am
When I mark searchables an attribute with a objectrelation data type and attributes of another data type, happens me that, when adding text or integers on attributes that are not of the objectrelation type, this text is also added in the search terms for the attribute of the type objectrelation. For example, I have a class called "machine" with some attributes marked as searchables this attributes have text line (Attr_Id=100), xmltext (Attr_Id=101 and (Attr_Id=102) and objecrelation data (Attr_Id=103 and Attr_Id=104) types. When I create an object of machine class I can see the search terms linked with all the attributes by means of ezsearch_object_word_link table and found that the contentclass_attribute_id=103 and contentclass_attribute_id=104 are linked with all the words that I write in xmltext and text line attributes and with no term that can be appear searching by only objectlreation attributes. In addition the attribute of objectrelation type <i>would</i> have to add in its search terms: · Text or integers that appear in attributes marked like xsearchablesx in the objects to which they are related · ID of the object to which it is related. P.D. I think that the principal reason of the bug was the change maded in ezsearchengine.php, because in eZPublish 3.4.4 works better
|