Smart Search Filter to Display Users

Katrina Miday asked on June 17, 2015 13:58


I currently have a smart search filter that filters by classnames, to display only news, blog posts, wiki articles, etc. I've been trying to add an option to display only users, but I've been unable to figure out how to define the filter. I some of the things I already tried include classname;cms.user;Users, classname;cms.usersettings;Users. Is there a way to only include a single search index by filter, as users have their own index? Thanks in advance!

Correct Answer

Roman Koníček answered on July 27, 2015 09:14

Hi Katrina,

The problem is that Users index does not contain classname field. What you could do is to use _type field instead. So it should look like this: _type;cms.user;Users

I hope it helps.

Best regards, Roman Konicek

0 votesVote for this answer Unmark Correct answer

Recent Answers

Roman Koníček answered on June 28, 2015 21:15

Hi Katrina,

What type of index are you using? Is it Pages (Stores information about pages in the content tree)? If yes, I am afraid you cannot use this type of index to display the data about users, you would need to use Users index, which stores information about users in the system. In case I missunderstood you requirement, please try to provide more details.

Best regards, Roman Konicek

0 votesVote for this answer Mark as a Correct answer

Katrina Miday answered on June 29, 2015 14:17

I'm actually using three separate indexes with the smart search results, a pages index, a forum index, and a users index. The search results display users, I'm just trying to add a filter that displays only users. I am currently using the following filter values with the filter clause "Must" for individual document types, but I'm not sure what I would use to only display users.

classname;;News Items classname;cms.simplearticle;Wiki Articles classname;cms.file;Files classname;CMS.BlogPost;Blog Posts

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.