掲示板

how to index tag field

6年前 に Pankaj Kumar によって更新されました。

how to index tag field

Regular Member 投稿: 101 参加年月日: 14/07/27 最新の投稿
Hi,

While creating we can map a content with tag .
Please tell me how we can index a tag.I need it to performer search using lucuene query.

Thanks & Regards,
Pankaj Semwal
thumbnail
6年前 に Andrew Jardine によって更新されました。

RE: how to index tag field (回答)

Liferay Legend 投稿: 2416 参加年月日: 10/12/22 最新の投稿
Hi Pankaj.

The tags are indexed already. There are two fields in the index that store just the tag details. One stored the names, the other the ids. If you look at the Field.java class you will find the constants that reference the field names --

	public static final String ASSET_TAG_IDS = "assetTagIds";

	public static final String ASSET_TAG_NAMES = "assetTagNames";


.. Is this what you are looking for?
6年前 に Pankaj Kumar によって更新されました。

RE: how to index tag field

Regular Member 投稿: 101 参加年月日: 14/07/27 最新の投稿
Thanks...