<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Search Component Data Builder customization in Windchill Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Search-Component-Data-Builder-customization/m-p/1031647#M10371</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/301111"&gt;@plmcore&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you already implemented such use case ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Otherwise, while continuing the customization, I don't find, as of now, where the value of the preference "Keyword Search Behavior" (/com/ptc/windchill/enterprise/search/controlKeywordSearchBehaviour) is used in the code, does someone has insights&amp;nbsp;?&lt;/P&gt;</description>
    <pubDate>Fri, 29 Aug 2025 10:49:36 GMT</pubDate>
    <dc:creator>JulienBlais</dc:creator>
    <dc:date>2025-08-29T10:49:36Z</dc:date>
    <item>
      <title>Search Component Data Builder customization</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Search-Component-Data-Builder-customization/m-p/1031595#M10362</link>
      <description>&lt;P&gt;Version: Windchill 12.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use Case: Performing Global Search on "Name &amp;amp; Number" only behavior, without Index Search when users select a check box added next to global search Field&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Description: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hello PTC Community !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for a way to implement the use case requested by my client on Windchill 12.0.2.7 and Windchill 13.0.2.6 (upgrade in progress).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At first I proposed to automatically set following user's preferences values when he checks the box:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Enable Index Search to "No"&lt;BR /&gt;/com/ptc/windchill/enterprise/search/includeIndexGlobalSearch&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Keyword Search Behavior to "Name &amp;amp; Number" (3)&lt;BR /&gt;/com/ptc/windchill/enterprise/search/controlKeywordSearchBehaviour&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;But this solution implies to save previous users's values to reset them whhile unchecking the box and the client wants that we study a way to implement the use case without impacting those preferences.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, I tried to override the ootb DATA_ONLY component builder:&amp;nbsp;com.ptc.windchill.enterprise.search.mvc.builders.SearchDataBuilder w&lt;/SPAN&gt;&lt;SPAN&gt;ith following class added in&amp;nbsp;codebase/config/mvc/custom.xml as we do for some other MVC Component Builders customizations.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please find below an abstract of the code:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;package com.client.search.builders;

import com.ptc.mvc.components.OverrideComponentBuilder;
import com.ptc.windchill.enterprise.search.mvc.builders.SearchDataBuilder;

@OverrideComponentBuilder
public class ClientSearchDataBuilder extends SearchDataBuilder {
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But once deployed, I've this error raised in MethodServer:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'com.ptc.windchill.enterprise.search.mvc.builders.SearchDataBuilder' available: expected single matching bean but found 2: com.ptc.windchill.enterprise.search.mvc.builders.SearchDataBuilder#0,com.client.search.builders.ClientSearchDataBuilder#0&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I tried many things in addition to make Spring configuration working, but it's still running like if&amp;nbsp;@OverrideComponentBuilder annotation was not taken into account here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI, OOTB&amp;nbsp;&lt;SPAN&gt;SearchDataBuilder is defined like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;@ComponentBuilder(value = {"search.default.searchResults"}, type = ComponentBuilderType.DATA_ONLY)
public class SearchDataBuilder extends AbstractJcaDataSourceComponentDataBuilder&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Thanks in advance for your help/advices/other solutions...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Julien&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2025 07:22:01 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Search-Component-Data-Builder-customization/m-p/1031595#M10362</guid>
      <dc:creator>JulienBlais</dc:creator>
      <dc:date>2025-08-29T07:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Search Component Data Builder customization</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Search-Component-Data-Builder-customization/m-p/1031613#M10363</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/917695"&gt;@JulienBlais&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you changed a mvc Search-configs.xml configuration ? ("\Windchill\codebase\config\mvc\&lt;STRONG&gt;Search-configs.xml"&lt;/STRONG&gt;)&lt;/P&gt;
&lt;P&gt;I guess that there is still the original class and there should be yours new one.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HelesicPetr_0-1756454332635.png" style="width: 869px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/127638iC807FFB4204249CD/image-dimensions/869x76?v=v2" width="869" height="76" role="button" title="HelesicPetr_0-1756454332635.png" alt="HelesicPetr_0-1756454332635.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to update the xml file configuration and will see if it helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PetrH&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2025 07:59:26 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Search-Component-Data-Builder-customization/m-p/1031613#M10363</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2025-08-29T07:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Search Component Data Builder customization</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Search-Component-Data-Builder-customization/m-p/1031630#M10364</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/241117"&gt;@HelesicPetr&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for pointing out this config file !&lt;/P&gt;&lt;P&gt;I updated the class name to reference mine, AND removed definition of my class in&amp;nbsp;custom.xml one and it worked !&amp;nbsp;&lt;/P&gt;&lt;P&gt;For me that was feasible without modifying ootb configuration files, but only custom.xml one. Do you know why it's specific here and don't you think I could do some configuration working only using the custom.xml file ?&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2025 08:41:54 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Search-Component-Data-Builder-customization/m-p/1031630#M10364</guid>
      <dc:creator>JulienBlais</dc:creator>
      <dc:date>2025-08-29T08:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Search Component Data Builder customization</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Search-Component-Data-Builder-customization/m-p/1031632#M10365</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/917695"&gt;@JulienBlais&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I understand but I just think that the original configuration is not overwritten by the custom.xml file in this case and that is a reason of the error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why? who knows &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PetrH&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2025 08:50:31 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Search-Component-Data-Builder-customization/m-p/1031632#M10365</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2025-08-29T08:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Search Component Data Builder customization</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Search-Component-Data-Builder-customization/m-p/1031634#M10366</link>
      <description>&lt;P&gt;Yes I guess you're right,&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; that could be raised in a ptc case later..&lt;/P&gt;&lt;P&gt;I continue working on it, and let you and community know about the final configuration to close the topic.&lt;/P&gt;&lt;P&gt;Thank you for your quick answers !&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2025 09:04:07 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Search-Component-Data-Builder-customization/m-p/1031634#M10366</guid>
      <dc:creator>JulienBlais</dc:creator>
      <dc:date>2025-08-29T09:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Search Component Data Builder customization</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Search-Component-Data-Builder-customization/m-p/1031635#M10367</link>
      <description>&lt;P&gt;This should be an OOTB functionality and should not be a customization.&amp;nbsp; But sadly we have to do as a customization&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2025 09:32:22 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Search-Component-Data-Builder-customization/m-p/1031635#M10367</guid>
      <dc:creator>plmcore</dc:creator>
      <dc:date>2025-08-29T09:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Search Component Data Builder customization</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Search-Component-Data-Builder-customization/m-p/1031638#M10368</link>
      <description>&lt;P&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/301111"&gt;@plmcore&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That happens all the time &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PetrH&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2025 10:03:37 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Search-Component-Data-Builder-customization/m-p/1031638#M10368</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2025-08-29T10:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Search Component Data Builder customization</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Search-Component-Data-Builder-customization/m-p/1031647#M10371</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/301111"&gt;@plmcore&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you already implemented such use case ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Otherwise, while continuing the customization, I don't find, as of now, where the value of the preference "Keyword Search Behavior" (/com/ptc/windchill/enterprise/search/controlKeywordSearchBehaviour) is used in the code, does someone has insights&amp;nbsp;?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2025 10:49:36 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Search-Component-Data-Builder-customization/m-p/1031647#M10371</guid>
      <dc:creator>JulienBlais</dc:creator>
      <dc:date>2025-08-29T10:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Search Component Data Builder customization</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Search-Component-Data-Builder-customization/m-p/1031662#M10373</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/917695"&gt;@JulienBlais&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is used in two classes&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IndexSearchUtils.class&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SearchConstants.class&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;PetrH&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2025 12:21:38 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Search-Component-Data-Builder-customization/m-p/1031662#M10373</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2025-08-29T12:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Search Component Data Builder customization</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Search-Component-Data-Builder-customization/m-p/1031684#M10374</link>
      <description>&lt;P&gt;Yes Thanks &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/241117"&gt;@HelesicPetr&lt;/a&gt;&amp;nbsp;, just found it also in //, while debugging it I see that static method IndexSearchUtils.getKeywordBehaviorPreference() is called in a loop from&amp;nbsp;WhereClauseHandler.filterAttributeByType...&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2025 13:35:32 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Search-Component-Data-Builder-customization/m-p/1031684#M10374</guid>
      <dc:creator>JulienBlais</dc:creator>
      <dc:date>2025-08-29T13:35:32Z</dc:date>
    </item>
  </channel>
</rss>

