SOLVED: Search For Internal Page / Post Link Doesn't Show All Results

Bricks Version: 1.3.6
Browser: 97.0.4692.71
OS: Windows

When creating a link to an internal post or page, the search function fails to return all the results and seems to only serve posts, not pages.

For example, I have a page with the slug ā€œservices,ā€ (it also has the word in its title) but search only returns posts with the word services in their titles, ignoring pages entirely.

Is this a bug? It seems if the search function can filter through close to a thousand posts, it should be able to include a handful of pages in that query, tooā€¦!

Hi Matthew,

until Bricks 1.3.6, the search results show only Gutenberg Posts & Pages (the default WordPress search behavior).

Therefore, in Bricks 1.3.7 beta, we have significantly improved the search so that from now on, Posts & Pages created with Bricks can be included. To do this, you need to enable the ā€œQuery Bricks Data In Search Resultsā€ option under ā€œBricks > Settings > Generalā€.

Best regards,
timmse

This will help, but, again: When Iā€™m searching for a word thatā€™s in the title (created by WordPress, not by Bricks) it should show up. It doesnā€™t.

I guess Iā€™ll see if this is fixed when 1.3.7 comes out of beta. Is there an ETA?

Thanks!

Hi Matthew,

damn, I think weā€™ve been talking past each other all the time, sorry, I completely misunderstood you (there are just too many search options) :laughing:

I just tested again (literally any kind of search) and canā€™t reproduce your problem: https://vimeo.com/666524060/746e1c7544

To make it a little more exciting, I created a post called exactly the same as an existing page (Mix Blend Mode) - and as you can see, it displays both.

How many posts and pages do you have in total in your installation if I may ask?

The siteā€™s in developmentā€¦ Iā€™ve got 988 posts imported from the live site, plus five pages (so far) and several custom post type pages created through Toolset.

Iā€™m noticing that some pages show up, but only if I donā€™t put anything in the search field at all and simply scroll all the way to the end of the results.

Iā€™ve just created over a thousand posts ( :ok_man:) in 1.3.6 with faker press and tried to search for pages again: still no problem :thinking:

Really, I canā€™t reproduce the problem. Please try it again with the stable 1.3.7 and let me know if the problem still exists. Unfortunately, I canā€™t tell you an ETA at the moment.

Will do! Thanks much!

Iā€™m now having the exact same problem. :slight_smile:
Iā€™ve even switched the page back to draft and published it again: the internal page search in the link field is still not showing that specific page. And I have enabled ā€œQuery Bricks Data in Search Resultsā€ but that was not about this anyway, right?

Iā€™m running Version: 1.5 though (Chrome Version 104.0.5112.81, Windows)ā€¦ should I therefore open a new post for it? :slight_smile:
thanks and kind regards

Hi Adrian,
Thanks for reaching out.

Is the page publicly available? If so, please send temporary login credentials and a link to this thread to help@bricksbuilder.io using the email address youā€™ve used during the purchase and let us know, which pages donā€™t show up.

Best regards,
timmse

Hi timmse

Thanks for your response. I have just sent the E-Mail.

Best regards

Adran

Hey Adrian,
Thanks for the login credentials.

I re-enabled LiteSpeed Cache, cleared all caches, deactivated LiteSpeed Cache instantly and the page shows up inside of the search :wink:

In general, itā€™s a good idea to exclude ?bricks=run from caching.

Best regards,
timmse

damnā€¦ sowas :sweat_smile:
I thought the cache is cleared when deactivating the plugin anyway?

However, thanks a lot! :grin:

I had that same issue after I created a custom template for search results. Turned out that I had originally selected ā€˜postsā€™ in the query type and I should have selected ā€˜Anyā€™.