cancel
Showing results for 
Search instead for 
Did you mean: 

How to avoid split of property value

janaka1984
Star Contributor
Star Contributor
Hi,

i need to know when pass query into search.queryResultSet()that is included 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() and show it on filter by section of advance search page. how can i avoid this issue?

Regards
Janaka
1 ACCEPTED ANSWER

gawadesk
Star Contributor
Star Contributor
Hi Janaka,

Actually this is expected behavior. As you mentioned you named document author as 'Janaka weerarathna' and that is appearing in search result properly.

However at left side of result page you can see is filter which is different then search result. When we add document in Alfresco, solr does indexing of document by using document's metadata. While reading metadata solr tokenized metadata. That's why in result we have 2 separate author filter associated with this document.

This is beautiful feature provided by solr. If you don't want tokenised to be happen then you can disabled it by setting value as 'false' for tokenised attribute in content model for corresponding property.



<index enabled="true">
   <atomic>true</atomic>
   <stored>true</stored>
   <tokenised>false</tokenised>
</index>



Remember you should do full re indexing to update old indexes.


Thanks,
Krishna

View answer in original post

1 REPLY 1

gawadesk
Star Contributor
Star Contributor
Hi Janaka,

Actually this is expected behavior. As you mentioned you named document author as 'Janaka weerarathna' and that is appearing in search result properly.

However at left side of result page you can see is filter which is different then search result. When we add document in Alfresco, solr does indexing of document by using document's metadata. While reading metadata solr tokenized metadata. That's why in result we have 2 separate author filter associated with this document.

This is beautiful feature provided by solr. If you don't want tokenised to be happen then you can disabled it by setting value as 'false' for tokenised attribute in content model for corresponding property.



<index enabled="true">
   <atomic>true</atomic>
   <stored>true</stored>
   <tokenised>false</tokenised>
</index>



Remember you should do full re indexing to update old indexes.


Thanks,
Krishna