Alfresco 5.0.c + SOLR4, custom properties not indexed
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2015 04:08 AM
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
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
Do I miss something?
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?
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2015 04:50 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2015 06:31 AM
it does work but you might need to check the default value of the query template which in my case is:
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
<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
