Fórum

Disable lucene Indexing

Maulin Rathod, modificado 15 Anos atrás.

Disable lucene Indexing

Junior Member Postagens: 61 Data de Entrada: 06/11/08 Postagens Recentes
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 15 Anos atrás.

RE: Disable lucene Indexing

Liferay Legend Postagens: 1228 Data de Entrada: 14/04/08 Postagens Recentes
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 15 Anos atrás.

RE: Disable lucene Indexing

Liferay Master Postagens: 581 Data de Entrada: 21/06/06 Postagens Recentes
I think the User object is also indexed.
thumbnail
Victor Zorin, modificado 15 Anos atrás.

RE: Disable lucene Indexing

Liferay Legend Postagens: 1228 Data de Entrada: 14/04/08 Postagens Recentes
That's from 5.2. Wilson, does it mean that from 5.2. indexing must always be on?
thumbnail
Wilson Man, modificado 15 Anos atrás.

RE: Disable lucene Indexing

Liferay Master Postagens: 581 Data de Entrada: 21/06/06 Postagens Recentes
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 15 Anos atrás.

RE: Disable lucene Indexing

Liferay Legend Postagens: 1228 Data de Entrada: 14/04/08 Postagens Recentes
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 13 Anos atrás.

RE: Disable lucene Indexing

New Member Postagens: 8 Data de Entrada: 19/01/10 Postagens Recentes
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 11 Anos atrás.

RE: Disable lucene Indexing

New Member Postagens: 15 Data de Entrada: 10/02/12 Postagens Recentes
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 13 Anos atrás.

RE: Disable lucene Indexing

Liferay Legend Postagens: 1519 Data de Entrada: 07/08/06 Postagens Recentes
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.