Commit ca2ac3aad07908ca064ca8070fda34485234723a

Authored by Andrew Hind
1 parent acab711533
Exists in master

Fix for SEARCH-222 SOLR 6 - Improved indexing for categories

- add supporting fields
src/main/java/org/alfresco/opencmis/search/CmisFunctionEvaluationContext.java
... ... @@ -110,6 +110,8 @@ public class CmisFunctionEvaluationContext implements FunctionEvaluationContext
110 110 EXPOSED_FIELDS.add(QueryConstants.FIELD_TAG);
111 111 EXPOSED_FIELDS.add(QueryConstants.FIELD_PNAME);
112 112 EXPOSED_FIELDS.add(QueryConstants.FIELD_NPATH);
  113 + EXPOSED_FIELDS.add(QueryConstants.FIELD_ANAME);
  114 + EXPOSED_FIELDS.add(QueryConstants.FIELD_APATH);
113 115 EXPOSED_FIELDS.add(QueryConstants.FIELD_DOC_TYPE);
114 116  
115 117  
... ...
src/main/java/org/alfresco/repo/search/adaptor/lucene/QueryConstants.java
... ... @@ -189,6 +189,10 @@ public interface QueryConstants
189 189  
190 190 public static final String FIELD_PNAME = "PNAME";
191 191  
  192 + public static final String FIELD_APATH = "APATH";
  193 +
  194 + public static final String FIELD_ANAME = "ANAME";
  195 +
192 196 public static final String FIELD_PROPERTIES = "PROPERTIES";
193 197  
194 198 public static final String FIELD_NULLPROPERTIES = "NULLPROPERTIES";
... ...
src/main/java/org/alfresco/repo/search/impl/parsers/AlfrescoFunctionEvaluationContext.java
... ... @@ -116,6 +116,8 @@ public class AlfrescoFunctionEvaluationContext implements FunctionEvaluationCont
116 116 EXPOSED_FIELDS.add(QueryConstants.FIELD_TAG);
117 117 EXPOSED_FIELDS.add(QueryConstants.FIELD_PNAME);
118 118 EXPOSED_FIELDS.add(QueryConstants.FIELD_NPATH);
  119 + EXPOSED_FIELDS.add(QueryConstants.FIELD_ANAME);
  120 + EXPOSED_FIELDS.add(QueryConstants.FIELD_APATH);
119 121 EXPOSED_FIELDS.add(QueryConstants.FIELD_DOC_TYPE);
120 122 EXPOSED_FIELDS.add(QueryConstants.FIELD_PROPERTIES);
121 123 EXPOSED_FIELDS.add(QueryConstants.FIELD_NULLPROPERTIES);
... ...