By Altitudes on Friday, 01 April 2016
Posted in Technical Issues
Likes 0
Views 753
Votes 0
Hello

When I create an event (from frontend), 2 entries are created in the Smart Search Index (take a look at the attached snapshot).
This happen for a user event as well as for a group event.

And of course the event appears twice in search results afterwards (without any avatar for one of the entries).

Regards

.Fixed in ES 1.4.10
I have been checking your site for 2 days now and I still can't figure out why it is indexing it twice. On my local instance, it works perfectly fine but not on your site. However, what I did noticed is that there are many modified files in the core and I am unsure if these core modifications that you made is affecting the indexer.

Can I perform a clean re-installation of EasySocial so that I can run some further tests?
·
Sunday, 03 April 2016 14:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello

Yes, you can.
·
Sunday, 03 April 2016 20:03
·
0 Likes
·
0 Votes
·
0 Comments
·
There is something not right with your Joomla instance. Calling the controller seems to be rendered twice and I have no idea why your instance of Joomla is doing that Was your copy of Joomla modified?

The only work around that I have added is to add the id's as static to prevent the indexer from rendering more than once (This is not a clean fix and I am not really happy with such a fix) but oddly, this does not happen with my instance of Joomla.

I will apply the same fix to prevent such duplicates from happening on a single page request
·
Sunday, 03 April 2016 22:20
·
0 Likes
·
0 Votes
·
0 Comments
·
OK, thank you.

No, my Joomla was not modified. And I noticed no object (other than ES Events) that make duplicate entries in Smart Search index... That's strange indeed.
·
Monday, 04 April 2016 05:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Yeah, very strange because when I was debugging the site, it seems like the "save" is being triggered twice.
·
Monday, 04 April 2016 10:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello

I tested this on ES 1.4.9 and unfortunately, the fix does work so well...

When I create the "Index Test" event, an index entry is created for the following URL:
index.php?option=com_easysocial&view=events&id=90:&layout=item

Then, if I modify the event, another index entry is created for the URL:
index.php?option=com_easysocial&view=events&id=90:index-test&layout=item

So in the end, I get 2 entries in the index again...
·
Monday, 23 May 2016 08:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Okay, managed to find the root cause after a massive debug session. It seems like this is what is actually happening,

1. You do not have the permalink field for the event category.
2. When the event is created, the system only stores the alias after the event is indexed, hence the indexed url is incorrect.
3. Therefore when you edit the event, it generates a new item because the url isn't matching.

To fix this, I have modified the codes so that before saving the event, it will then check if the alias is empty and generate one for it accordingly.

If anyone else needs this fix, download the attached file and upload it into /administrator/components/com_easysocial/models/
·
Monday, 23 May 2016 12:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Mark, this is working perfectly
·
Monday, 23 May 2016 19:14
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome This will be fixed on the next release.
·
Tuesday, 24 May 2016 02:18
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post