soung
soung

Reputation: 1614

Alfresco html tag properties plain text search

I want to do plain text seach in html files. It seems that properties values are not indexed. if i have a html file containing tag like this <div property="property value"> Textual value </div> i can't found this file by searching property value. Is there a way to make this possible ?

Upvotes: 1

Views: 141

Answers (1)

Krutik Jayswal
Krutik Jayswal

Reputation: 3175

You need to define your own custom metadata extracter.You can fine more information on below link.

http://wiki.alfresco.com/wiki/Metadata_Extraction

For your requirement,

alfresco-community-sdk-3.4.b\src\alfresco-repository-src.zip\java\org\alfresco\repo\content\metadata\HtmlMetadataExtracter.java

Above is the class which is responsible for extracting data from the html file.If you see the content of that file it is neglecting tags and attributes inside tag.So you can take reference of above file and define your own Metadata Extractor

Upvotes: 4

Related Questions