Forums / Extensions / eZ Find / object relations, indexing, and search results

object relations, indexing, and search results

Author Message

Josh Bair

Monday 27 July 2009 10:31:11 am

How do object relations attributes marked as searchable work? Does every searchable attribute in a related object end up being applied to the original object?

This seems to be the case and we're running into problems. As an example, if you search for "orange" you will 16 results back. However, only 4-5 of these contain orange when you actually visit the pages (or view them in the edit interface). This is because the word orange exists in a related objects.

The solution at first seems to be marking the object relations attributes as non-searchable but this creates issues because the names of the related objects are valuable to the search index, just not the other attributes.

Any ideas?

Ivo Lukac

Tuesday 28 July 2009 8:02:22 am

I know it is not exactly what you are looking for but you can boost down objectrelation datatype so at least "false" orange result will get lower score:
[IndexBoost]
Datatype[ezobjectrelation]=0.5

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Josh Bair

Monday 03 August 2009 12:40:34 pm

Is 1.0 the default boost level? What would a level of 0 do?

Are these supported on the attribute level? (Both in the style of "specific_attribute_name" and "specific_class_name/specific_attribute_name")?