Hi I have customized my asset UI search by following the below document and added custom attributes to the dita search. Can some provide any document that contains detail steps to configure and test this?
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
yes,
use the rules in serialization.config file as highlighted below :
Example :
if following is the topic title tag ...
<title>TestSearch</title>
title as Element Name
TestSearch as Value
Hello,
Can any one suggest, how the DITA Element will work in the Asset UI search?
Hi ,
Following are the steps to use DITA Element Search
Thank you @nitshar ,
This is very helpful. I followed the steps and configured the DITA Element search. But I am not getting any search results, if I do the search. Can you please suggest, what are the Element Name and Attribute?
Hi,
Prolog (metadata) elements, is required on the assets for this filter to work.
Example :
<topic id="GUID-2d5c9e47-065b-4048-be9f-9f742b2d032d">
<title>new</title>
<prolog>
<author type="test_author"> DITA Authors </author>
<metadata>
<audience experiencelevel="expert" type="programmer"></audience>
<category>Green</category>
</metadata>
</prolog>
<body>
<p> test content </p>
</body>
</topic>
Now, once the content is serialize, DITA Element filter can be used using prolog metadata:
Example :
audience as Element Name
experiencelevel as Attribute
expert as Value
yes,
use the rules in serialization.config file as highlighted below :
Example :
if following is the topic title tag ...
<title>TestSearch</title>
title as Element Name
TestSearch as Value
Hi @nitshar ,
Currently we have added serializationconfig.xml code for complete path.
For example,
The rule: <rule xpath="//*[contains(@class, 'topic/topic')]/body/p/ul/li" text="yes" />
The search working if the content has same tag structure as /body/p/ul/li.
This seems to be limited. Can you please suggest if there is any option that's work for the tag?
For example, a single rule for ul>li that works with in /p/ tag or out of /p/ tag.
Thanks in advance.
Views
Likes
Replies