Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Smart Search Filter on cms.user View modes: 
User avatar
Member
Member
martinagency - 4/5/2011 2:38:13 PM
   
Smart Search Filter on cms.user
I'm trying to use a Smart Search Filter on users and it returns no results. I already have a Smart Search setup for the users and each field is searchable. When I add a Smart search Filter and try to filter by office it returns no results. I used the following which does return results but i need to filter by other fields. Any thoughts? I think I just have the syntax wrong.

;;All


User avatar
Kentico Support
Kentico Support
kentico_jurajo - 4/14/2011 9:18:30 AM
   
RE:Smart Search Filter on cms.user
Hi,

Could you please describe us the filter setings with more details?
Also, if the search syntax is incorrect, you can find a warning logged in Site Manager -> Administration -> Event log.

Best regards,
Juraj Ondrus

User avatar
Member
Member
martinagency - 4/14/2011 10:43:15 PM
   
RE:Smart Search Filter on cms.user
We want to use the filter to search a specific field within user.cms. The value should be determined by the Smart Search Dialog box.

;;Full Profile
skills;;Skills

One more question, which file do we edit to change the layout of the Smart Search Dialog, we want to remove it from the table.

Error messagefrom log:

Event ID: 14503
Event type: Error
Event time: 4/7/2011 9:47:16 AM
Source: Smart search
Event code: SEARCH
User name: MARTIN\moserh
IP address: 10.49.9.51

Description: Message: there are more terms than documents in field "fullname", but it's impossible to sort on tokenized fields
Stack Trace:
at Lucene.Net.Search.FieldCacheImpl.AnonymousClassCache3.CreateValue(IndexReader reader, Object fieldKey)
at Lucene.Net.Search.FieldCacheImpl.Cache.Get(IndexReader reader, Object key)
at Lucene.Net.Search.FieldCacheImpl.GetStringIndex(IndexReader reader, String field)
at Lucene.Net.Search.FieldSortedHitQueue.comparatorString(IndexReader reader, String fieldname)
at Lucene.Net.Search.FieldSortedHitQueue.AnonymousClassCache.CreateValue(IndexReader reader, Object entryKey)
at Lucene.Net.Search.FieldCacheImpl.Cache.Get(IndexReader reader, Object key)
at Lucene.Net.Search.FieldSortedHitQueue.GetCachedComparator(IndexReader reader, String field, Int32 type, CultureInfo locale, SortComparatorSource factory)
at Lucene.Net.Search.FieldSortedHitQueue..ctor(IndexReader reader, SortField[] fields, Int32 size)
at Lucene.Net.Search.TopFieldDocCollector..ctor(IndexReader reader, Sort sort, Int32 numHits)
at Lucene.Net.Search.IndexSearcher.Search(Weight weight, Filter filter, Int32 nDocs, Sort sort)
at Lucene.Net.Search.MultiSearcher.Search(Weight weight, Filter filter, Int32 n, Sort sort)
at Lucene.Net.Search.Hits.GetMoreDocs(Int32 min)
at Lucene.Net.Search.Hits..ctor(Searcher s, Query q, Filter f, Sort o)
at Lucene.Net.Search.Searcher.Search(Query query, Sort sort)
at CMS.SiteProvider.SearchHelper.Search(String searchFor, Sort searchSort, String path, String classNames, String currentCulture, String defaultCulture, Boolean combineWithDefaultCulture, Boolean checkPermissions, Boolean searchInAttachments, String searchIndexes, Int32 displayResults, Int32 startingPosition, Int32 numberOfProcessedResults, UserInfo user, Int32& numberOfResults, String attachmentWhere, String attachmentOrderBy)

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 4/22/2011 10:27:13 AM
   
RE:Smart Search Filter on cms.user
Hi,

The "skills" field must be set as searchable (Site Manager->System tables->CMS.User->Search fields) but you can't use "skills;;Skills" because it is equal to "skills:", you have to specify some search value.

The error is caused because of the fullname field is set as tokenized but tokenized fields can't be used for sorting. Please, uncheck "tokenized" check box for this field.

Best regards,
Juraj Ondrus

User avatar
Member
Member
martinagency - 4/22/2011 12:19:31 PM
   
RE:Smart Search Filter on cms.user
Thank you for your help Juraj, you are always reliable. The thought here is that we want to narrow down which field is being searched and we want the user to determine the value to be searched, is that possible using the smart search filter and if not is their another webpart we could use?

example "skills;<user value from smart search text field>;Skills"

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 4/29/2011 10:35:14 AM
   
RE:Smart Search Filter on cms.user
Hi,

I am afraid but this is not possible to achieve using the filter - filter is using just the field;value and nothing else.

I would recommend to create a custom control to achieve this. This control will select appropriate fields according your needs and then you will be able to customize the search condition according the selected fields dynamically.

Best regards,
Juraj Ondrus