Foros de discusión

Disable lucene Indexing

Maulin Rathod, modificado hace 15 años.

Disable lucene Indexing

Junior Member Mensajes: 61 Fecha de incorporación: 6/11/08 Mensajes recientes
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, modificado hace 15 años.

RE: Disable lucene Indexing

Liferay Legend Mensajes: 1228 Fecha de incorporación: 14/04/08 Mensajes recientes
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, modificado hace 15 años.

RE: Disable lucene Indexing

Liferay Master Mensajes: 581 Fecha de incorporación: 21/06/06 Mensajes recientes
I think the User object is also indexed.
thumbnail
Victor Zorin, modificado hace 15 años.

RE: Disable lucene Indexing

Liferay Legend Mensajes: 1228 Fecha de incorporación: 14/04/08 Mensajes recientes
That's from 5.2. Wilson, does it mean that from 5.2. indexing must always be on?
thumbnail
Wilson Man, modificado hace 15 años.

RE: Disable lucene Indexing

Liferay Master Mensajes: 581 Fecha de incorporación: 21/06/06 Mensajes recientes
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, modificado hace 15 años.

RE: Disable lucene Indexing

Liferay Legend Mensajes: 1228 Fecha de incorporación: 14/04/08 Mensajes recientes
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, modificado hace 13 años.

RE: Disable lucene Indexing

New Member Mensajes: 8 Fecha de incorporación: 19/01/10 Mensajes recientes
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, modificado hace 11 años.

RE: Disable lucene Indexing

New Member Mensajes: 15 Fecha de incorporación: 10/02/12 Mensajes recientes
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, modificado hace 13 años.

RE: Disable lucene Indexing

Liferay Legend Mensajes: 1519 Fecha de incorporación: 7/08/06 Mensajes recientes
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.