Page 1 of 1

Search in DITA reusable components

Posted: Thu Jan 02, 2025 4:45 pm
by Tygopit
Hi,
Why can I find elements with ID matching phrase like "122204" but not like "YY-122204"?
Searching for "YY-122204" finds only the elements with matching contents and ignores elements with matching IDs.
obraz.png
obraz.png

Re: Search in DITA reusable components

Posted: Fri Jan 03, 2025 5:01 pm
by Radu
Hi Piotr,
Good observation, I reproduced the problem and added an internal issue to investigate it further.
Pasting the issue ID below for future reference:
EXM-55163 DITA Reusable Components filter does not properly work when searching ID values which contain "-"
I will update this forum thread when a future Oxygen version with a fix for this problem becomes available.

A possible workaround if you are using Oxygen 26.1 and later.
When you have a topic opened in the Author visual editor mode you can place the caret inside a paragraph, press ENTER, choose "conref..." and then the list which appears in the content completion window seem to filter its entries correctly.

Regards,
Radu

Re: Search in DITA reusable components

Posted: Tue Mar 25, 2025 10:04 am
by Radu
Hi Piotr,
As an update, we released Oxygen 27.1 and it should have a fix for this particular problem you reported.
Regards,
Radu

Re: Search in DITA reusable components

Posted: Tue Apr 08, 2025 10:03 am
by Tygopit
Hi Radu,
I have just finished updating the Oxy environment.
It seems that the search is now working perfectly and it saves me a lot of time.
Thanks!
Regards,
Piotr

Re: Search in DITA reusable components

Posted: Tue Apr 08, 2025 5:07 pm
by Radu
Hello Piotr,

Great, thanks for confirming!

Regards,
Radu

Re: Search in DITA reusable components

Posted: Thu Apr 17, 2025 5:34 pm
by Tygopit
Hi Radu,
The search works perfectly... until you are going nerdy. :twisted:
Is it a bug or... it's a feature?
The "0" at the second position of the underlined place is somehow ignored.
It is not such a big issue for me as the previous one, but rather a curiosity, which I hope I'll be facing rarely.
With regards,
Piotr
SearchA.png
SearchB.png

Re: Search in DITA reusable components

Posted: Mon Apr 21, 2025 8:33 am
by Radu
Hi Piotr,
This looks like another bug, I reproduced it and added an internal issue for it, pasting the issue ID below:

EXM-55662 DITA Reusable Components - ID is found although it does not match

I will update this forum thread if we manage to fix this problem in a future version.

Regards,
Radu

Re: Search in DITA reusable components

Posted: Thu May 08, 2025 11:34 am
by Radu
Hi,
Coming back to this, when searching in general for precise values like IDs, you can try to wrap the searched string in double quotes, from what I tested this should fix the last found problem. In general the search indexing capabilities attempt to find searched words so the search is more flexible unless you wrap the searched value in double quotes.
Regards,
Radu

Re: Search in DITA reusable components

Posted: Thu May 08, 2025 2:41 pm
by Tygopit
Ok, thanks for the tip.
So, should we treat this "flexibility" as a feature, not as a bug?
Regards,
Piotr

Re: Search in DITA reusable components

Posted: Thu May 08, 2025 2:54 pm
by Radu
Hi Piotr,
Yes, in a way. Because if you search for "front-runner" (no quotes) you may be happy that a topic containing both "front" and "runner" is found, so certain processing of the searched string may be beneficial as most of the times we prefer to find multiple items when a single one is looked for than to find nothing at all.
Regards,
Radu