Search usability and data


(Charles Walter) #1

Is there a way to get any info on how users are using search? What they are searching for?

We have a lot of categories, so I thought the search would be used almost as a way of global navigation.

I think the ability to search in topic by default should be a community option. Most users may prefer using it as a way to jump around the larger community.

But it’s hard to make the right suggestions without the data.


Full page search does not search users or categories like on-page search does
(Sam Saffron) #2

not quite yet, but I definitely want to add a search log, it later can be used for auto suggest and improving search quality


(Charles Walter) #3

@sam have you ever considered using Google Analytics events?

I realized I am able to see a number of URLs with query parameter in google analytics. I guess this is triggered either on mobile or when users hit enter. Of the 1000 searches being shown, the large majority seem to be searches for category names. And often when restricted to the topic level (context=topic), the queries are returning 0 results.

If I’m not mistaken, on mobile it is default to search within the topic, but on desktop, the option was default unchecked. Not sure if this inconsistency was intentional.


(Mittineague) #4

Got an example of search phrases that would demonstrate this?


(Charles Walter) #5

Sure. Here were some sample URLs that I can see in Google Analytics.

http://www.helloforos.com/search?context=topic&context_id=14962&q=Thalia
http://www.helloforos.com/search?context=topic&context_id=559&q=Venezuela
http://www.helloforos.com/search?context=topic&context_id=12187&q=justin%20bieber

or searching for a user:
http://www.helloforos.com/search?context=topic&context_id=9641&q=Felina24

It’s possible that a user will uncheck the checkbox, but just thought it was strange that it was defaulted to search just the topic on mobile.


(Jeff Atwood) #6

Pretty sure being defaulted to in topic search on mobile is a bug @sam


(Sam Saffron) #7

Yeah will change that, also need to figure out a way to search for users on mobile


(Charles Walter) #8

And please also consider category names. would be nice if there’s a match on a category title that these could show up at the top of mobile search results. In communities with larger numbers of categories i can see this being very useful.


(Sam Saffron) #9

I really need some UI mockups for this, its tricky to interleave categories and users into the full page UI.

@awesomerobot maybe you have some ideas how Search results for '' - Discourse Meta can handle category and user matches?


(Jeff Atwood) #10

In the case of direct, exact character-for-character matches I think it is clear what to do @sam. For example if I search for “tgxworld”… that’s an exact match.


(Sam Saffron) #11

I am more thinking of a general solution here, on desktop we could add a side bar

But still need to think about a UI for mobile. Especially for partial matches.

We could mix the stream up, but it can get a bit confusing, maybe add modes to search or something


(Erlend Sogge Heggen) #12

I like GitHub’s solution here. Simple sidebar that easily downgrades to a drop-down or tabs in mobile view:


I find it odd that they didn’t include the match count - “7 repositories”, “164 issues” etc - in the mobile interface, since that’s a very important clue.


(Charles Walter) #13

@erlend_sh I think GitHub is showing more a drilldown, as opposed to direct access to a category.

I was thinking more the way that Twitter will show an account. Whether it’s at the top or in a column. I think categories and posts can be on the same list, as long as we had a slight different way of labeling / displaying the category. Will try to give it more thought on my end.


(Kris) #14

Yeah I think that this is probably the way to go on mobile — we don’t want to make assumptions of what the priority in the search is… and stacking any sort of results would imply priority by pushing down other groups of results… while tabs are typically seen as on the same level.


(Jenn Briden) #15

Are there any plans to add analytics for search? We have an internal training department, and they’re curious to see what users are searching on in order to help develop curriculum.


(Charles Walter) #16

@Jenn_Briden Have you tried looking to see the data in Google Analytics?


(Ryan) #17

I don’t see any other threads on this, but it’s also pretty old. Are there any solutions built-in to discourse to review search behaviors?


#18

@sam , just curious if you ever added a log for searches…if so, maybe I can get something from Data Explorer. Also, is there an update on if search analytics is on a roadmap? Right now, I don’t know if anyone uses the search feature and deflection is a big part of how I like to measure ROI with self-service platforms. Things like:

  • What % of users/visitors use search
  • What % clicked on a suggested result
  • Top 20 queries
  • What % of searches were refined
  • Top 20 refined search terms
  • What % used Advanced Search
  • Etc…

Thanks!


(Sam Saffron) #19

We actually did complete the work of logging the information. You can try out:

SELECT term, count(*) searches, 
 sum(case when clicked_topic_id is not null then 1 else 0 end) 
 "continued from search"
from search_logs
where created_at > current_timestamp - interval '30' day
group by term
order by count(*) desc
limit 100

It Data Explorer, it will show you top 100 searches and even counts of who actually clicked through from search. I find the results super interesting.

We will work on exposing some more of this via the dashboard direct.


(Sam Saffron) #20

Thanks to @techAPJ we now have a UI for this:

Head to Logs => Search Logs in the admin UI.

(in other news our click through on theme is way up due to recent search tweaks … we were sitting at 1/6 click throughs and now are more around 1/3, so yay :1st_place_medal:)