<?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: Set Minimum character for Global Search in Windchill</title>
    <link>https://community.ptc.com/t5/Windchill/Set-Minimum-character-for-Global-Search/m-p/327916#M38444</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Murthy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Malavika was trying to emphasize on below changes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add below JavaScript after line&amp;nbsp; #189 "&lt;STRONG&gt;&lt;EM&gt;var searchString = encodeURIComponent(obj.getValue());&lt;/EM&gt;&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1449525341503418" jivemacro_uid="_1449525341503418"&gt;
&lt;P&gt;var n = searchString.lenght;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;if(n &amp;lt;= 3)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JCAAlert("More than 3 characters are required to search!!!");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer below image from my test machine.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="95858" alt="search.png" class="jive-image image-1" src="https://community.ptc.com/legacyfs/online/95858_search.png" style="height: 302px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Malavika for sharing your thoughts and clue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Dec 2015 21:55:02 GMT</pubDate>
    <dc:creator>ShirishMorkhade</dc:creator>
    <dc:date>2015-12-07T21:55:02Z</dc:date>
    <item>
      <title>Set Minimum character for Global Search</title>
      <link>https://community.ptc.com/t5/Windchill/Set-Minimum-character-for-Global-Search/m-p/327910#M38438</link>
      <description>We have been facing very high impact on performance due to search producing results more than 20000 objects.I would like to know is there a way to set the minimum number of characters to be used for the global search.The present scenario is searching with a*, t* etc., - I need atleast</description>
      <pubDate>Wed, 02 May 2018 12:58:49 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Set-Minimum-character-for-Global-Search/m-p/327910#M38438</guid>
      <dc:creator>taruchamy</dc:creator>
      <dc:date>2018-05-02T12:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Minimum character for Global Search</title>
      <link>https://community.ptc.com/t5/Windchill/Set-Minimum-character-for-Global-Search/m-p/327911#M38439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The mentioned property will work only for a participant picker. Participant picker is used for searching users only. I believe, in your case you are using the top right hand global search, which can search across various objects. &lt;/P&gt;&lt;P&gt;There are various things that come to my mind as a solution/ workaround for your issue:&lt;/P&gt;&lt;P&gt;1. Are you doing an 'All Type' search with a*,t* as the criteria ? Is it possible for you to narrow down your search for specific objects ? For ex: Part and Document etc. &lt;/P&gt;&lt;P&gt;2. There are properties that let you have a predefinined number of rows to be returned. If the result set exceeds the number that is specified, a banner message is shown indicating that the search result more results that the limit.Following are the properties to be set in db.proeprties:&lt;/P&gt;&lt;P&gt; wt.pom.paging.snapshotQueryLimit&lt;/P&gt;&lt;P&gt; wt.pom.queryLimit&lt;/P&gt;&lt;P&gt;By default, these are set to -1 which indicates there is no limit to the result set returned. There are a few well written articles at PTC tech support to explain these proeprties in details. &lt;/P&gt;&lt;P&gt;3. From what I understand, you would like to restirict search if the number of characters entered are less tahn 3 or 4. Customization will be required to achieve this. &lt;/P&gt;&lt;P&gt;The Global Search is rendered using Twin Trigger field which is an EXTJS component. The rendering code can be found at -&lt;/P&gt;&lt;P&gt;&amp;lt;WT_HOME&amp;gt;\codebase\netmarkets\javascript\util\jsfrags\globalSearch.jsfrag&lt;/P&gt;&lt;P&gt;The line would look something like - twinField = new Ext.form.TwinTriggerField({ ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a js function is globalSearch.jsfrag viz. loadSearch(...). This too might require a change. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: This customization will not work on the search page that is available through the navigator. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Malavika &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 06:09:11 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Set-Minimum-character-for-Global-Search/m-p/327911#M38439</guid>
      <dc:creator>mrane</dc:creator>
      <dc:date>2015-01-05T06:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Minimum character for Global Search</title>
      <link>https://community.ptc.com/t5/Windchill/Set-Minimum-character-for-Global-Search/m-p/327912#M38440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Malavika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to use it for both "top right hand global search" and the Navigator search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, we are resticting the search towards ONE specific object type - Not even two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already set to 10000 for pom query limit - Reducing this will have issue in displaying the where used objects - Especially for our standard objects [Display will be blank on where used report].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though it will not work on navigation search, I can try customizing it with your suggestion - Can you able to provide clear steps ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Murthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 06:47:10 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Set-Minimum-character-for-Global-Search/m-p/327912#M38440</guid>
      <dc:creator>taruchamy</dc:creator>
      <dc:date>2015-01-05T06:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Minimum character for Global Search</title>
      <link>https://community.ptc.com/t5/Windchill/Set-Minimum-character-for-Global-Search/m-p/327913#M38441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case I would recommend you go through the file I mentioned above and dig through the code there. globalSearch.jsfrag should be used to customize the global search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereas, to cutomize the search page would be a little more effort. One has to have the following considerations :&lt;/P&gt;&lt;P&gt;1. Should the search be restiricted based on number of characters only for the keyword filed ? or would you need similar restiriction on all the attributes ? &lt;/P&gt;&lt;P&gt;2. Would you want a similar restiriction in case of newly introduced IBA's ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The rendering for the navigator search page happens from &amp;lt;WT_HOME&amp;gt;\codebase\netmarkets\jsp\searchcommonSearch.jsp. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Malavika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 07:06:53 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Set-Minimum-character-for-Global-Search/m-p/327913#M38441</guid>
      <dc:creator>mrane</dc:creator>
      <dc:date>2015-01-05T07:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Minimum character for Global Search</title>
      <link>https://community.ptc.com/t5/Windchill/Set-Minimum-character-for-Global-Search/m-p/327914#M38442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Malavika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will go through the code globalSearch.jsfrag and searchcommonSearch.jsp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To start with I am looking out option to restricting only the keyword character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Murthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 08:33:58 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Set-Minimum-character-for-Global-Search/m-p/327914#M38442</guid>
      <dc:creator>taruchamy</dc:creator>
      <dc:date>2015-01-05T08:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Minimum character for Global Search</title>
      <link>https://community.ptc.com/t5/Windchill/Set-Minimum-character-for-Global-Search/m-p/327915#M38443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Were you able to get what you needed based on Malavika's responses? If so, can you please mark the thread as answered?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 00:31:16 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Set-Minimum-character-for-Global-Search/m-p/327915#M38443</guid>
      <dc:creator>LoriSood</dc:creator>
      <dc:date>2015-01-31T00:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set Minimum character for Global Search</title>
      <link>https://community.ptc.com/t5/Windchill/Set-Minimum-character-for-Global-Search/m-p/327916#M38444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Murthy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Malavika was trying to emphasize on below changes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add below JavaScript after line&amp;nbsp; #189 "&lt;STRONG&gt;&lt;EM&gt;var searchString = encodeURIComponent(obj.getValue());&lt;/EM&gt;&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1449525341503418" jivemacro_uid="_1449525341503418"&gt;
&lt;P&gt;var n = searchString.lenght;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;if(n &amp;lt;= 3)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JCAAlert("More than 3 characters are required to search!!!");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer below image from my test machine.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="95858" alt="search.png" class="jive-image image-1" src="https://community.ptc.com/legacyfs/online/95858_search.png" style="height: 302px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Malavika for sharing your thoughts and clue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 21:55:02 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Windchill/Set-Minimum-character-for-Global-Search/m-p/327916#M38444</guid>
      <dc:creator>ShirishMorkhade</dc:creator>
      <dc:date>2015-12-07T21:55:02Z</dc:date>
    </item>
  </channel>
</rss>

