英文:
Facet filter for text field won't work properly in Alfresco
问题
我正在使用Alfresco Share 5.2,并且正在处理搜索分面(search facets)。我使用搜索管理器(Search Manager)创建了自定义分面。
该分面用于包含文本值的属性。但由于某种原因,该属性字段中的值被特殊字符(如-、/、%、空格、逗号等)分割开来。
例如,我有一个值,类似于444-555/789,但当应用分面过滤器时,该值会被分割并显示在彼此下方。
(如下所示的图片)
是否有人遇到过类似的问题呢?
谢谢。
英文:
I am using Alfresco Share 5.2 and currently working with search facets.
I created custom facet using Search Manager.
Facet is for property which is text value.
For some reason values from that property field are splitted by any special character like -, /, %, space, comma etc.
For example, I have value like this 444-555/789, and when facet filter is applied the value is shown splitted and one below the other.
(pictures attached below)
Has anyone had a similar problem?
Thanks.
答案1
得分: 0
我以前遇到过这个问题。我认为问题与Solr或Alfresco Search Services相关。我的Alfresco Search Services版本是2.0.3,它使用Solr 6.6.5。
对我来说,在ACS中的内容模型中设置了属性为被索引而不被标记化。
<index enabled="true">
...
<tokenised>false</tokenised>
<facetable>true</facetable>
</index>
然后我重新对Solr进行了索引。
英文:
I had this issue before. I think the issue is related to Solr or Alfresco Search Services.
My Alfresco Search Services is version 2.0.3, and it uses Solr 6.6.5.
For me, I set the property in content model in ACS(My version is 7.0) to be indexed and not tokenized.
<index enabled="true">
...
<tokenised>false</tokenised>
<facetable>true</facetable>
</index>
And then I did re-indexing for Solr.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论