Grails for plugin search

My application uses the Grails plugin to search using Compass below.

Tables starting with indexing are about 36 MB and they build indexes about 350 MB. This is not enough in most peoples books.

If we delete the indexes and run the Grails application, the index files will be restored, as expected, but after about one day of work, we find this error. We call reindex on TellMeEntity instances, as they are saved to make sure the index is updated.

Org.compass.core.engine.SearchEngineException exception: Failed to delete alias [TellMeEntity] and identifiers [[saved / uncompressed, indexed, omitNorms, omitTf]]; inest exception is java.io.FileNotFoundException: / var / www / web17 / log / mne / index / tellmeentity / segment_2 (There is no such file or directory) on org.compass.core.lucene.engine.transaction.readcommitted.ReadCommittedTransaction (doDelete : 348)

Obviously, as soon as this error occurs, the index is not updated, and searches do not work with newly entered data.

We checked simple things like disk space, etc. "segment_2" does not exist, but I would expect Compass to create it by itself.

In the grails-app/conf/Searchable.groovy file:

....

  mirrorChanges = true bulkIndexOnStartup = "fork" 

....

In my code:

....

 def formInstance = new TellMeEntity(name:'form',dataOwner:session.community,createBy:session.zoner,tellMeSite:form).save() formInstance.reindex() 

....

My current experience is that this code works well for about 24 hours, but then starts to give problems. We generate about 3,000 new records per day, which doesn’t seem like a lot of volume, so I don’t think that it is related to the volume.

How can I fix this problem?

+6
plugins grails searchable
source share
1 answer

shoot from the hip: your index location / var / www / web 17 / log / mne is subject to some kind of log rotation process that is mistakenly trying to rotate index files? 24 hours looks like cron intervention.

0
source share

All Articles