Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Maulin Rathod
Disable lucene Indexing
April 21, 2009 3:33 AM
Answer

Maulin Rathod

Rank: Junior Member

Posts: 61

Join Date: November 6, 2008

Recent Posts

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.
Victor Zorin
RE: Disable lucene Indexing
April 21, 2009 3:37 PM
Answer

Victor Zorin

Rank: Liferay Legend

Posts: 1178

Join Date: April 14, 2008

Recent Posts

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
Wilson Man
RE: Disable lucene Indexing
April 21, 2009 7:16 PM
Answer

Wilson Man

LIFERAY STAFF

Rank: Liferay Master

Posts: 580

Join Date: June 21, 2006

Recent Posts

I think the User object is also indexed.
Victor Zorin
RE: Disable lucene Indexing
April 21, 2009 8:34 PM
Answer

Victor Zorin

Rank: Liferay Legend

Posts: 1178

Join Date: April 14, 2008

Recent Posts

That's from 5.2. Wilson, does it mean that from 5.2. indexing must always be on?
Wilson Man
RE: Disable lucene Indexing
April 21, 2009 10:37 PM
Answer

Wilson Man

LIFERAY STAFF

Rank: Liferay Master

Posts: 580

Join Date: June 21, 2006

Recent Posts

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 ...
Victor Zorin
RE: Disable lucene Indexing
April 21, 2009 11:44 PM
Answer

Victor Zorin

Rank: Liferay Legend

Posts: 1178

Join Date: April 14, 2008

Recent Posts

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
RE: Disable lucene Indexing
December 9, 2010 2:03 PM
Answer

Ashish Gupta

Rank: New Member

Posts: 8

Join Date: January 19, 2010

Recent Posts

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.
Mika Koivisto
RE: Disable lucene Indexing
December 9, 2010 5:03 PM
Answer

Mika Koivisto

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1512

Join Date: August 7, 2006

Recent Posts

By default we use search index for searching users but it can be turned of by setting following property in portal-ext.properties:
1    #
2    # Set this to true to search users from the index. Set this to false to
3    # search users from the database. Note that setting this to false will
4    # disable the ability to search users based on Expando attributes.
5    #
6    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.
Juan Antonio Girón
RE: Disable lucene Indexing
December 11, 2012 4:17 AM
Answer

Juan Antonio Girón

Rank: New Member

Posts: 15

Join Date: February 10, 2012

Recent Posts

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?