Search Not working for a particular keyword

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
asharma
Active Member

Search Not working for a particular keyword

Hi Everyone,

Recently we have upgraded from Alfresco 5.0 to 5.2. Everything is running fine except for one strange behavior that we found. When I am searching for a keyword name suppose "ABC" I can see the results for ABC in search suggestions but when I hit enter with ABC it is not displaying any results. However other keywords that I am searching are just running fine. Problem is associated with one keyword which has a lot of documents. Can anyone please suggest what is causing this. I didn't see any type of solr error in log file.

4 Replies
cesarista
Advanced

Re: Search Not working for a particular keyword

SOLR 4 or SOLR 6 ?

Regards.

--C.

asharma
Active Member

Re: Search Not working for a particular keyword

It's SOLR4.However, I've just started full Reindex and in between i am able to see the results for "ABC". But somehow Reindexing getting failed after 1-2 hours.here are the logs.

2018-09-20 07:59:11,962 INFO [org.alfresco.solr.component.AsyncBuildSuggestComponent] Initializing SuggestComponent
2018-09-20 07:59:11,962 INFO [org.alfresco.solr.component.AsyncBuildSuggestComponent] Initializing SuggestComponent
2018-09-20 07:59:12,142 WARN [org.alfresco.solr.component.AsyncBuildSuggestComponent] Solr suggester temp file found matching file pattern: WFSTInputIterator*.{input,sorted}, path: /app/alfresco/alfresco-community/tomcat/temp/WFSTInputIterator9197149751522412005.input
2018-09-20 07:59:12,143 WARN [org.alfresco.solr.component.AsyncBuildSuggestComponent] Reported first suggester temp file found, others may exist.
2018-09-20 07:59:12,144 INFO [org.alfresco.solr.component.AsyncBuildSuggestComponent] Loading suggester index for: shingleBasedSuggestions
2018-09-20 07:59:12,175 INFO [org.alfresco.solr.component.AsyncBuildSuggestComponent] Loaded suggester shingleBasedSuggestions, took 31 ms
2018-09-20 08:59:37,926 WARN [org.alfresco.solr.component.AsyncBuildSuggestComponent] Solr suggester temp file found matching file pattern: WFSTInputIterator*.{input,sorted}, path: /app/alfresco/alfresco-community/tomcat/temp/WFSTInputIterator9197149751522412005.input
2018-09-20 08:59:37,926 WARN [org.alfresco.solr.component.AsyncBuildSuggestComponent] Reported first suggester temp file found, others may exist.

2018-09-20 08:59:37,926 INFO [org.alfresco.solr.component.AsyncBuildSuggestComponent] Building suggester index for: shingleBasedSuggestions

2018-09-20 09:35:41,080 ERROR [org.alfresco.solr.tracker.AbstractTracker] Tracking failed
org.alfresco.solr.TrackerStateException: 08200644 The trackers work was rolled back by another tracker error
at org.alfresco.solr.SolrInformationServer.canUpdate(SolrInformationServer.java:3238)
at org.alfresco.solr.SolrInformationServer.commit(SolrInformationServer.java:773)
at org.alfresco.solr.tracker.ContentTracker.doTrack(ContentTracker.java:111)
at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:190)
at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:54)
at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2018-09-20 09:35:57,488 ERROR [org.apache.solr.update.SolrIndexWriter] Exception rolling back IndexWriter
org.apache.lucene.store.AlreadyClosedException: refusing to delete any files: this IndexWriter hit an unrecoverable exception
at org.apache.lucene.index.IndexFileDeleter.ensureOpen(IndexFileDeleter.java:354)
at org.apache.lucene.index.IndexFileDeleter.deleteFile(IndexFileDeleter.java:719)
at org.apache.lucene.index.IndexFileDeleter.decRef(IndexFileDeleter.java:655)
at org.apache.lucene.index.IndexFileDeleter.decRef(IndexFileDeleter.java:618)
at org.apache.lucene.index.IndexFileDeleter.checkpoint(IndexFileDeleter.java:571)
at org.apache.lucene.index.IndexWriter.rollbackInternal(IndexWriter.java:2133)
at org.apache.lucene.index.IndexWriter.rollback(IndexWriter.java:2074)
at org.apache.solr.update.SolrIndexWriter.rollback(SolrIndexWriter.java:144)
at org.apache.lucene.index.IndexWriter.tragicEvent(IndexWriter.java:4636)
at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1523)
at org.apache.solr.update.DirectUpdateHandler2.addDoc0(DirectUpdateHandler2.java:240)
at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:164)
at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:69)
at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51)
at org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:952)
at org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:692)
at org.alfresco.solr.SolrInformationServer.updateContentToIndexAndCache(SolrInformationServer.java:2712)
at org.alfresco.solr.tracker.ContentTracker$ContentIndexWorkerRunnable.doWork(ContentTracker.java:140)
at org.alfresco.solr.tracker.AbstractWorkerRunnable.run(AbstractWorkerRunnable.java:47)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.OutOfMemoryError: Java heap space
2018-09-20 09:35:57,515 ERROR [org.alfresco.solr.tracker.AbstractTracker] Tracking failed
java.lang.IllegalStateException: this writer hit an unrecoverable error; cannot commit
at org.apache.lucene.index.IndexWriter.startCommit(IndexWriter.java:4464)
at org.apache.lucene.index.IndexWriter.prepareCommitInternal(IndexWriter.java:3001)
at org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:3104)
at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3071)
at org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:582)
at org.apache.solr.update.processor.RunUpdateProcessor.processCommit(RunUpdateProcessorFactory.java:95)
at org.apache.solr.update.processor.UpdateRequestProcessor.processCommit(UpdateRequestProcessor.java:64)
at org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalCommit(DistributedUpdateProcessor.java:1707)
at org.apache.solr.update.processor.DistributedUpdateProcessor.processCommit(DistributedUpdateProcessor.java:1684)
at org.alfresco.solr.SolrInformationServer.commit(SolrInformationServer.java:780)
at org.alfresco.solr.tracker.MetadataTracker.indexTransactionsAfterAsynchronous(MetadataTracker.java:724)
at org.alfresco.solr.tracker.MetadataTracker.trackTransactions(MetadataTracker.java:651)
at org.alfresco.solr.tracker.MetadataTracker.trackRepository(MetadataTracker.java:142)
at org.alfresco.solr.tracker.MetadataTracker.doTrack(MetadataTracker.java:110)
at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:190)
at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:54)
at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: java.lang.OutOfMemoryError: Java heap space
2018-09-20 09:35:57,578 ERROR [org.alfresco.solr.tracker.AbstractTracker] Tracking failed
org.alfresco.solr.TrackerStateException: 08200666 The trackers work was rolled back by another tracker error
at org.alfresco.solr.SolrInformationServer.canUpdate(SolrInformationServer.java:3238)
at org.alfresco.solr.SolrInformationServer.commit(SolrInformationServer.java:773)
at org.alfresco.solr.tracker.ContentTracker.doTrack(ContentTracker.java:98)
at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:190)
at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:54)
at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
2018-09-20 09:36:05,629 ERROR [org.alfresco.solr.tracker.AbstractTracker] Tracking failed
org.alfresco.solr.TrackerStateException: 08200669 The trackers work was rolled back by another tracker error
at org.alfresco.solr.SolrInformationServer.canUpdate(SolrInformationServer.java:3238)
at org.alfresco.solr.SolrInformationServer.indexTransaction(SolrInformationServer.java:3027)
at org.alfresco.solr.tracker.MetadataTracker.indexTransactionsAfterAsynchronous(MetadataTracker.java:712)
at org.alfresco.solr.tracker.MetadataTracker.trackTransactions(MetadataTracker.java:685)
at org.alfresco.solr.tracker.MetadataTracker.trackRepository(MetadataTracker.java:142)
at org.alfresco.solr.tracker.MetadataTracker.doTrack(MetadataTracker.java:110)
at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:190)
at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:54)
at org.quartz.core.JobRunShell.run(JobRunShell.java:216)

As I can see the JAVA HEAP SIZE issue.so it's failing due to this i guess.

jpotts
Professional

Re: Search Not working for a particular keyword

Increase your Java heap and consider moving Solr to a separate server so it can be tuned independently of Alfresco.

asharma
Active Member

Re: Search Not working for a particular keyword

Solr4. I did reindexing and search is working fine. However there are some record not found in table type of errors I encountered in logfile.