How to index and search "Public Pages" in Liferay 6? -


i new liferay please bear me if naive question.

as far know, liferay automatically indexes out of box items (core portlets) such web content, bookmarks, users etc.

what need index "public pages" (see screenshot). when create new public page custom fields, want able index in lucene title , description , able search search other out of box assets.

enter image description here

i understand can write indexer custom portlet, public pages different.

how can index them on creation/update can search lucene? appreciate this.

liferay pages nothing liferay object layout. this

  • create liferay hook plugin , override layoutlocalservice.
  • modify addlayout method , appropriate condition (identify public page)
  • call searchengineutil class , call adddocument method save data index.

hope helps.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -