cancel
Showing results for 
Search instead for 
Did you mean: 

SOLR problem in 4.0e

sorrentinov
Champ in-the-making
Champ in-the-making
I've installed Alfresco Community 4.0e (with SOLR using SSL) and I notice that when I create a discussion and insert some content/replies then when I do a search in "Advanced search" and try to retrieve a word in the content nothing result is returned

I've done the same things in 4.2c and seems works

My questions are:

1) Alfresco 4.0e have fulltext search problem using SOLR?
2) If so, is possible to upgrade SOLR in 4.0e to last version applying the alfresco-community-solr-4.2c.zip?

Thanks
Vincenzo
10 REPLIES 10

mitpatoliya
Star Collaborator
Star Collaborator
are you getting any error in the logs?

no error
I've done a fresh install, create one post then reply using some words (E.g reply some things) then in advanced search using "things" nothing is returned

mitpatoliya
Star Collaborator
Star Collaborator
there is one configuration regarding solr in the alfresco-global.properties file.
Are you aware about it?
Make sure it is enabled.

I see for default in alfresco-global.properties:

index.subsystem.name=solr
solr.host=localhost
solr.port.ssl=8443

So it use SOLR
I've also tried to import certificate in the browser and goes on SORL admin (https://localhost:8443/solr/ and it works)

Could you tell me how can verify if SOLR indexing are working fine?

Best Regards
Vincenzo

mitpatoliya
Star Collaborator
Star Collaborator

Hi

Thanks very much for link
I've read the article, but seems that the local configuration of SOLR in Alfresco 4.0e on Windows system is already in place (SOLR in the same Alfresco host)

So I don't know why doesn't works
I've also enabled the debug that write the lucene query to retrieve the post based on a word and compare it with the same installation done on 4.2c - results: the query are identical!

I don't know what's wrong in the Windows installer of Alfresco 4.0e
In order to replicate the problem is simply:

1) Install Alfresco 4.0e on Windows system using installer (on postgreSQL) (we tried also on MySQL)
2) See the SOLR configuration (is already configured rightly as explain in the article)
3) Start Alfresco
4) Logon on Alfresco Share as admin user
5) Create a Public Site
6) Create a new Topic in a discussion: "My first topic" as title and "new argument" in the editor
7) Reply to a Topic in the discussion writing "reply on the content"
😎 Then goes in "Advanced search" and use search keyword: content or keyword: argument"
9) Nothing result
10) If you search keyword in the title of topic as well as: first the topic is returned

Thanks
Vincenzo

mitpatoliya
Star Collaborator
Star Collaborator
What I think is you have solr license problem
there was a patch provided by alfresco for solving that issue.
although you should have some errors in log related to that in this case.
Still just go through this steps to make sure license is in place for solr.

http://customizealfresco.blogspot.in/
section

Solr license Problem Solution in alfresco 4.x

Thank for feedback,

I see that Alfresco 4.0e solve this problem than 4.0d.
In any cases I've generate new SSL certificate using the link procedure (generate_keystore_bat) and restarted alfresco but the problem remains.

What is strange is that seems the index is populated but the search return 0 values

Thanks
Vincenzo


Hi

The problem could depend from the following INFO in the catalinga log?:

INFO: Scheduler meta-data: Quartz Scheduler (v1.8.3) 'SolrTrackerScheduler' with instanceId 'NON_CLUSTERED'
  Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 3 threads.
  Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

Thanks
Vincenzo