Developer forum

Forum » Development » Search, weighted

Search, weighted


Reply

hi,

 

From the manual:
Include global paragraphs
Normally only the global paragraph source would be included in the search procedure but selecting this field will also only include the global paragraphs used various places on your website.
 

Use this function with caution in search procedures. E.g. you might use an info box as a global paragraph on several webpages and searching for content in that box will return a search result for each global paragraph.

 

I have a question about this function. How should this work?

 

I have the following issue now. I have 2 search pages in different language layers. The pragraph on these pages is unique and not global with the search paragraph from the other language layer.

 

But when i change the section 'Settings - Page contents' this is also applied to the module in the other language layer. Is this by design?

Because all the other section keep their own settings except for section 'Settings - Page contents'

 

I can only seem to make it work if i enable the 'Include global paragraphs' checkbox. Then each search module can have their own 'Settings - Page contents'.
Is this a correct way to configure the search module for this purpose?
What does this 'Include global paragraphs' function do? (Because i am not using a global paragraph)

 

The manual states 'Use this function with caution...' and i do not understand why?

 

Regards,

- Remi


Replies

 
Reply

Someone care to explain?

 
Reply

Please help. :(

 
Nicolai Høeg Pedersen
Reply

Hi Remi

 

Sorry - had not seen this post...

 

I Need you to send me a mail with the URL and IDs of the 2 search pages. Then I'll look into it.

 

It sounds weird.

 

Regarding the "search global paragraphs" checkbox: If you do not use global paragraphs it has no effect.

 

If you have a global paragraph with some text, i.e. "contact us", and you include this paragraph in all pages (some implementations are done like this.) Then when checking the check box and making a search for the word "contact" will result in the search module to find all the pages with the word "contact" also including the text from the global paragraph. So your search result would contain too many irrelevant pages.... Hard to explain.

 
Reply

The website is not public yet.

Hmmm i disabled the 'Include global paragraphs' and the search modules are working fine now.

Both search pages are able to search in their own language layer which wasn't possible before.

 

If i can reproduce this behavior again i'll let you know. For now it seems to be resolved :)

 

The Include global paragraphs results in being all pages using it are included in the search result right?

Does this mean if it is not enabled that global content is not found at all via search?

 

Regards,

- Remi

 
Nicolai Høeg Pedersen
Reply
r.muller wrote:

Does this mean if it is not enabled that global content is not found at all via search?

On the page where the Global paragraph "physically" resides, it will be found...

 

You must be logged in to post in the forum