Keyword

Re: Smart Search Shows Unpublished Items in Results

  • foof132
  • foof132's Avatar Topic Author
  • Offline
  • New Member
More
10 years 6 months ago #128696 by foof132
Just wondering if anyone has run into the issue of Smart Search showing K2 items that are set to unpublished in the Indexed Content list.

I'm using Joomla 2.5.20 and K2 2.6.8.

Thanks in advance.

Please Log in or Create an account to join the conversation.

  • foof132
  • foof132's Avatar Topic Author
  • Offline
  • New Member
More
10 years 6 months ago - 10 years 6 months ago #128697 by foof132
I believe I found a fix:

github.com/joomla/joomla-cms/pull/3362/files

In components/com_finder/models/search.php, add after line 241:
$query->where($db->quoteName('l.published') . ' = 1');

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #128698 by Lefteris
Hi. Hacking core files is not a good idea. You will lose your modifications with the next update.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
4 years 9 months ago - 4 years 9 months ago #174702 by Ralf Longwitz
Replied by Ralf Longwitz on topic Re: Smart Search Shows Unpublished Items in Results
So, what is the solution then? Other than deleting K2 items rather than unpublishing?
Thanks!

(For me its standard search)
Last edit: 4 years 9 months ago by Ralf Longwitz.

Please Log in or Create an account to join the conversation.

More
4 years 9 months ago #174706 by JoomlaWorks
Replied by JoomlaWorks on topic Re: Smart Search Shows Unpublished Items in Results
Smart Search creates a "snapshot" of published K2 items in its index. Until it refreshes its index, if you change the published state of some K2 item, it will not reflect immediately.

If, as you say, this occurs in standard Joomla search (the com_search component), then this could relate to aggressive server-side caching, because upon showing the results, Joomla does a "GET" request, which can easily be cached by software like Varnish or Nginx (if it's setup in your server of course).

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum