Book Image

Liferay Portal 6.x Enterprise Intranets (Update)

Book Image

Liferay Portal 6.x Enterprise Intranets (Update)

Overview of this book

Table of Contents (19 chapters)
Liferay Portal 6.2 Enterprise Intranets
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
9
Web Content Management
Index

Search


The Search Liferay 6.2 bundle is integrated with the Lucene search framework, which provides the search and indexing functionality for the whole portal. Lucene search converts the searchable entities into documents that are custom objects corresponding to searchable entities. So, whenever the Lucene index is searched, a hits object is returned that contains pointers to the documents that match the search query. Searching for any query using an index will be much faster than searching for entities in the database if an indexed document contains the data as per your requirement.

The Lucene search mechanism totally depends on the index documents. First, it finds an indexed document with specific fields for specific values. Once you get the matching document in the index, it makes it easy for you to retrieve the values of any other fields of the matching documents. Moreover, if you need to, run the database query to retrieve the entities that correspond to the indexed documents. This query...