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
Views
Replies
Total Likes
Hello,
Can any one suggest, how the DITA Element will work in the Asset UI search?
Views
Replies
Total Likes
Hi ,
Following are the steps to use DITA Element Search
Views
Replies
Total Likes
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?
Views
Replies
Total Likes
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
Views
Replies
Total Likes
@nitshar , Is there any way we can do with out using prolog element ?
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
Views
Replies
Total Likes
@nitshar , This is working. Thanks
Views
Replies
Total Likes
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
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies