J3 Issue ?
avatar RCheesley
RCheesley
7 Aug 2017

Steps to reproduce the issue

Enable smart search & run index
Enable option in settings to capture search results
Search in the front-end using com_finder for a few terms
Find the UI interface to view the search statistics (without reading down first!)

Expected result

As a user, if I have enabled com_finder I would expect to see the search statistics within the com_finder extension.

Actual result

Search statistics are being logged to #_core_log_searches and the only place I can find the results being rendered is com_search. There is nowhere in com_finder which allows you to view the search statistics. Furthermore, if I was to direct people to com_search as a workaround with a custom admin menu, there's an error message saying that statistic gathering is disabled (presumably because com_search is indeed disabled!) which is doubly confusing!

System information (as much as possible)

Joomla 3.7.4

Additional comments

This is perhaps more of a UX issue than a bug, however it's a pretty big one. It took me quite some time to even discover the search results in com_search, I wouldn't even think to look there if I have enabled com_finder.

I'd suggest an extra tab in the com_finder back end which allows you to view the search statistics.

avatar RCheesley RCheesley - open - 7 Aug 2017
avatar joomla-cms-bot joomla-cms-bot - change - 7 Aug 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 7 Aug 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Aug 2017
Category com_search
avatar brianteeman
brianteeman - comment - 7 Aug 2017

I am a bit confused - the search statistics for smartsearch aka finder are here in the toolbar

screenshotr15-57-38

The Gather Search Statistics option in com_search are only for search and nothing to do with finder

avatar mbabker
mbabker - comment - 7 Aug 2017

IIRC we wired up Smart Search to log search queries the same way that regular search does.

The Smart Search statistics button is info on the actual search index data.

avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Aug 2017
Status New Discussion
avatar brianteeman
brianteeman - comment - 7 Aug 2017

Ah - i see what you mean now

avatar brianteeman
brianteeman - comment - 7 Aug 2017

you are referring to logged search queries and not statistics

So it seems that it is simply a case of replicating the code for "searches" from com_search into com_finder?

avatar RCheesley
RCheesley - comment - 7 Aug 2017

Sorry for the confusion, yes I was referring to the logged search queries
(somewhat confusing in the terminology with statistics etc).

Ruth

On 7 August 2017 at 16:08, Brian Teeman notifications@github.com wrote:

you are referring to logged search queries and not statistics

So it seems that it is simply a case of replicating the code for
"searches" from com_search into com_finder?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#17437 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACy3ofdU9E1s5SQKeV_aSmHPcxgrfaAAks5sVyhSgaJpZM4Ovi1q
.

--

Be like me, be Carbon free - don't print this and save a tree
IMPORTANT: The contents of this email and any attachments are confidential.
They are intended for the named recipient(s) only. If you have received
this email by mistake, please notify the sender immediately and do not
disclose the contents to anyone or make copies thereof.

avatar brianteeman
brianteeman - comment - 15 Aug 2017

I have looked into this and we actually have a problem with the storing of the search results

We are not logging which component the searches are coming from.

If you enable both search and finder and search logging then go to the link @RCheesley found for viewing the stats then they are all together AND the link to view the results will always open using search and not finder

So if a user was to enable logging in both places but only use finder on the frontend the search results will be displayed in both the current place and any new view I could create

avatar brianteeman
brianteeman - comment - 22 Aug 2017

I guess I could modify the code that saves to the database to include a flag to show if the search was from com_search or com_finder to resolve that. Then we can have two different search term analysis pages each one filtered for com_search or com_finder.

@mbabker @wilsonge thoughts on that idea

avatar wilsonge
wilsonge - comment - 22 Aug 2017

The component name is already available https://github.com/joomla/joomla-cms/blob/staging/libraries/src/Helper/SearchHelper.php#L32 So I think it's just about storing it in the database. Given that it's a public library and any component theoretically can be passed in - it's probably worth storing the full component rather than just a flag (I'm thinking about the Dutch community doing their stuff on other open source search engines like elastic search - plus the stuff JED have talked about at times too)

avatar brianteeman
brianteeman - comment - 22 Aug 2017

yes i can do it that way with the component name.

Should this PR be targetted at 3 or 4?

avatar wilsonge
wilsonge - comment - 22 Aug 2017

I'm not sure. I mean are we planning on moving the view or just adding the extra column displaying the component?

avatar brianteeman
brianteeman - comment - 22 Aug 2017

My first thought was to move the view and then we only have one search menu item. The limitation them are

  1. We would need an option to select the search component being used to display the search results
  2. Where do you put the component options?
avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J3 Issue
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar Hackwar
Hackwar - comment - 21 May 2018

I would target this for 4.0 and then rename the (create a new) logging table and move the view to Finder/Smart Search. I would also remove com_search altogether. Can this issue be assigned to me, so that I don't forget?

avatar brianteeman
brianteeman - comment - 21 May 2018

@Hackwar we can only assign people who are part of the maintainers team - limitation of github :(

avatar Hackwar
Hackwar - comment - 6 Jun 2018

This is now fixed in #20681

avatar joomla-cms-bot joomla-cms-bot - change - 7 Jun 2018
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 7 Jun 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Jun 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-06-07 04:06:04
Closed_By franz-wohlkoenig
avatar joomla-cms-bot
joomla-cms-bot - comment - 7 Jun 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 7 Jun 2018

closed as having Pull Request #20681

Add a Comment

Login with GitHub to post a comment