Forums de discussion

how to index tag field

Pankaj Kumar, modifié il y a 6 années.

how to index tag field

Regular Member Publications: 101 Date d'inscription: 27/07/14 Publications récentes
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
Andrew Jardine, modifié il y a 6 années.

RE: how to index tag field (Réponse)

Liferay Legend Publications: 2416 Date d'inscription: 22/12/10 Publications récentes
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?
Pankaj Kumar, modifié il y a 6 années.

RE: how to index tag field

Regular Member Publications: 101 Date d'inscription: 27/07/14 Publications récentes
Thanks...