cancel
Showing results for 
Search instead for 
Did you mean: 

How to work search.queryResultSet(queryDef)

janaka1984
Star Contributor
Star Contributor
Hi,

i need to know when pass query into search.queryResultSet() include facets in "search.lib.js" , it return number of document under particular facets name

eg. {http://www.alfresco.org/model/content/1.0}author

result is

@{http://www.alfresco.org/model/content/1.0}author[2]


author
  jana (1)
  wee (1)

i named document autor as "jana wee", but it return as jana and wee seperatly from search.queryResultSet(). how can i avoid this issue?



Regards
Janaka

1 ACCEPTED ANSWER

jpotts
World-Class Innovator
World-Class Innovator

I suspect that the reason is due to the cm:author field being tokenized by default. The easiest thing to do may be to create your own custom author aspect and property, make sure it isn't tokenized (set "tokenised" to false in your model) then configure the facets to include your custom author property.

View answer in original post

2 REPLIES 2

jpotts
World-Class Innovator
World-Class Innovator

I suspect that the reason is due to the cm:author field being tokenized by default. The easiest thing to do may be to create your own custom author aspect and property, make sure it isn't tokenized (set "tokenised" to false in your model) then configure the facets to include your custom author property.

douglascrp
World-Class Innovator
World-Class Innovator

I liked the idea of using a new custom author property.

This relates with the problem I described here