Posts

Showing posts with the label index

Reindex the documents

Whenever we are using the lucene search, sometimes content is not able to search even it is present. so we need to reindex the content in the control panel of the server adminstration. We have one more option, when we add the below property it will index the content during the server startup, so manually it is not required to reindex the content in the control panel. So add the below property in the "portal-ext.properties". so it will index during the startup.       # Set this to true if you want to index your entire library of files on     # startup. This property is available so that automated test environments     # index on startup. Do not set this to true on production systems or else     # your index will be indexed on every startup.     #     index.on.startup=true.

Viewing the lucene index files in liferay

Image
By default liferay will index the files. But by default we cannot view the index files . So if we want to view the index files flow the below steps. So the default position of the index are <tomcat-installation>\data\lucene . To view the files we need install the jar in the following location http://code.google.com/p/luke/downloads/detail?name=lukeall-4.0.0-ALPHA.jar file called " lukeall-4.0.0-ALPHA.jar ". After installation go the installation folder copy the path and open the command prompt and hit the following URL as following image. It will open the following Screen shot GUI as, In the Browse option select the location of the lucene and check the checkbox (Force unlock,if locked). In My local system location of the lucene index files are <tomcat-installation>\data\lucene\10154 . Click OK, then we can view the index files as below screen. So here we can view the index files, which were liferay is indexed. Also we choose another ...