Foren

Disable lucene Indexing

Maulin Rathod, geändert vor 15 Jahren.

Disable lucene Indexing

Junior Member Beiträge: 61 Beitrittsdatum: 06.11.08 Neueste Beiträge
As I understand lucene index is generated only for files contents, not for data in database. Please correct me if I am wrong.

We are not using any CMS related portlet where user can upload files.

Can we turn off lucene indexing by setting index.read.only=true in portal-ext.properties?

Any help on this will be greatly appreciated.
thumbnail
Victor Zorin, geändert vor 15 Jahren.

RE: Disable lucene Indexing

Liferay Legend Beiträge: 1228 Beitrittsdatum: 14.04.08 Neueste Beiträge
lucene index is generated for uploaded document files and other data such as journal articles/web content, wiki, blogs, etc
If you do not use search, you can switch it off by making index.read.only=true
thumbnail
Wilson Man, geändert vor 15 Jahren.

RE: Disable lucene Indexing

Liferay Master Beiträge: 581 Beitrittsdatum: 21.06.06 Neueste Beiträge
I think the User object is also indexed.
thumbnail
Victor Zorin, geändert vor 15 Jahren.

RE: Disable lucene Indexing

Liferay Legend Beiträge: 1228 Beitrittsdatum: 14.04.08 Neueste Beiträge
That's from 5.2. Wilson, does it mean that from 5.2. indexing must always be on?
thumbnail
Wilson Man, geändert vor 15 Jahren.

RE: Disable lucene Indexing

Liferay Master Beiträge: 581 Beitrittsdatum: 21.06.06 Neueste Beiträge
I deleted my lucene indexes and turned off indexing on startup ... and when i got to control panel, no users are listed.

So i suppose it needs to be turned on ...
thumbnail
Victor Zorin, geändert vor 15 Jahren.

RE: Disable lucene Indexing

Liferay Legend Beiträge: 1228 Beitrittsdatum: 14.04.08 Neueste Beiträge
Well, well, well, that's quite a drastic shift. In previous versions lucene was not required, this is going to have an impact on how everyone does data synchronization/backup and disaster recovery. I understand, that Admin can always do re-indexing, but really that should not be the operational case.
And also I was not thinking that lucene is supposed to be used in 'find exact location' environments, only in approximately rated searches.

I suppose lucene on/off property in portal-ext is also obsolete from 5.2.
Ashish Gupta, geändert vor 13 Jahren.

RE: Disable lucene Indexing

New Member Beiträge: 8 Beitrittsdatum: 19.01.10 Neueste Beiträge
So is there a way to compltely disable Lucene without imapcting users or any other functionality in the system, apart from maybe performance impact on searches ?

We are using 6.0.5 and noticing lucene related errors in a clustered environment.
Juan Antonio Girón, geändert vor 11 Jahren.

RE: Disable lucene Indexing

New Member Beiträge: 15 Beitrittsdatum: 10.02.12 Neueste Beiträge
Ashish Gupta:
So is there a way to compltely disable Lucene without imapcting users or any other functionality in the system, apart from maybe performance impact on searches ?

We are using 6.0.5 and noticing lucene related errors in a clustered environment.



Hi Ashish,
I'm using 6.0.5 and noticing lucene related errors too. Have you found a solution?
Can I completly disable Lucene without impacting any functionality?
thumbnail
Mika Koivisto, geändert vor 13 Jahren.

RE: Disable lucene Indexing

Liferay Legend Beiträge: 1519 Beitrittsdatum: 07.08.06 Neueste Beiträge
By default we use search index for searching users but it can be turned of by setting following property in portal-ext.properties:
    #
    # Set this to true to search users from the index. Set this to false to
    # search users from the database. Note that setting this to false will
    # disable the ability to search users based on Expando attributes.
    #
    users.search.with.index=false


In general you should maintain working search index as there are other functionalities that require the use of search index. In many cases using Lucene or SOLR is much more performant than doing a complex DB query.