cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 5.0.c + SOLR4, custom properties not indexed

streetturtle
Confirmed Champ
Confirmed Champ
I'm using Alfresco 5.0.c. Recently I've upgraded from Solr 1.4 to Solr 4 (locally and on server). The problem I've faced with is that custom properties are not indexed anymore.
In Solr 1.4 to index custom properties I was using
search.get.config.xml
file with following content:


<search>
  <default-operator>AND</default-operator>
  <default-query-template>
    %(cm:name cm:title cm:description
    <!–custom properties–>
    xz:personStatus xz:username xz:typeName xz:orgUnit xz:fullName
    TEXT TAG)
  </default-query-template>
</search>


But it seems that for Solr 4 this approach doesn't work.
<b>How I can tell Solr 4 to index custom properties?</b>

Another related question.
I installed clean version of alfresco 5.0.c using maven sdk and found out that out of the box it uses solr 1.4 not solr 4 as it was advertized.
In pom.xml of solr artifact-id is
alfresco-solr
not
alfresco-solr4
.
Do I miss something?
2 REPLIES 2

abarisone
Star Contributor
Star Contributor
In my experience I installed Alfresco community 5.0.c using the setup wizard and, as stated in the docs Alfresco SolR4 installation and configuration

The Solr 4 search subsystem is installed by default when you install Alfresco One 5.0 using the setup wizards (installer)

I can assure you that custom properties are successfully indexed.

Inspecting the Alfresco nexus repository I can see that the correct dependency for 5.0.c is `alfresco-solr`, whereas under the org.apache.solr.apache-solr there is a latest 1.4.1-alfrescopatched-20141112 dependency

  [1]: http://docs.alfresco.com/5.0/tasks/solr4-install-config.html

mrksjs
Champ on-the-rise
Champ on-the-rise
it does work but you might need to check the default value of the query template which in my case is:
<default-query-template>%(cm:name cm:title cm:description ia:whatEvent ia:descriptionEvent lnk:title lnk:description TEXT TAG)</default-query-template>


placing my properties there => works. alfresco enterprise 5.0.1 and community 5.0.c

additionally:
unfortunately the ALL keyword was removed and *:* does not work