eZ Community » Forums » General » eZ Find index objects together
expandshrink

eZ Find index objects together

eZ Find index objects together

Thursday 21 June 2012 2:50:54 pm - 4 replies

Hi,

I'm working with eZ Find on the last eZ Publish Community version.

My content is like this :

+ Node (Page)

  - Paragraph

  - Paragraph

  - Paragraph

My paragraph are only show when i display the page full view.

But when i search something like 'car' and Solr find it in 2 paragraph i would like that only my page present in the search result. I don't want my paragraph in my result cause i don't have a full view for this kind of object.

Is it possible ?

Cheers

Thursday 21 June 2012 4:08:07 pm

Of course, you juste have to specify the classes you want to find in your ezfind request

Thursday 21 June 2012 5:19:36 pm

Yes i know , but i want my search engine look inside my paragraph but when it find a result inside a paragraphe it's return my page url and not paragraph url.

Cheers

Thursday 21 June 2012 8:28:49 pm

{$resultnode.parent.url_alias|ezurl()}

Thursday 21 June 2012 9:09:08 pm

And if you get problems with duplicates (because of hits in several paragraphs under the same page), put the search result strings (not the result itself, but the links and text you want to display) in an array first, and use the unique() operator before looping through and displaying the array.

Modified on Tuesday 26 June 2012 2:38:37 pm by Daniel Arnrup-Øien

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu