<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Accent insensitive search in cache</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2012 : Accent insensitive search in cache</description>
  <pubDate>Fri, 10 Apr 2026 18:56:31 -700</pubDate>
  <lastBuildDate>Thu, 28 Nov 2013 04:09:15 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=4614</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Accent insensitive search in cache :  Actually, I demonstrated a simple...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4614&amp;PID=17268#17268</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1485" rel="nofollow">cefernan</a><br /><strong>Subject:</strong> 4614<br /><strong>Posted:</strong> 28-Nov-2013 at 4:09am<br /><br />Actually, I demonstrated a simple example, but my real scenario is little different.<div><br></div><div>I use a&nbsp;PagedCollectionViewAdapter for IPager&lt;T&gt; - Cocktail. So, I don't control the query execution itself. I just pass my IPagerRepository, a predicate and then call&nbsp;GoToPageAsync to load data.</div><div><br></div><div>Maybe, I can execute first a query against database and after put my strategy to cache only in IPagerRepository.</div><span style="font-size:10px"><br /><br />Edited by cefernan - 28-Nov-2013 at 4:37am</span>]]>
   </description>
   <pubDate>Thu, 28 Nov 2013 04:09:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4614&amp;PID=17268#17268</guid>
  </item> 
  <item>
   <title>Accent insensitive search in cache : DevForce does support some customization...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4614&amp;PID=17267#17267</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 4614<br /><strong>Posted:</strong> 27-Nov-2013 at 3:02pm<br /><br />DevForce does support some customization of cache queries using the CacheQueryOptions on the QueryStrategy, but unfortunately this won't help here.&nbsp; <DIV>&nbsp;</DIV><DIV>One option is to break this into two separate queries, one to execute against the database only, and another to execute against cache only.&nbsp; The cache only query can then call a local function to remove the accent prior to the string compare.&nbsp; See the RemoveDiacritics method in this StackOverflow post - <a href="http://stackoverflow.com/questi&#111;ns/359827/ignoring-accented-letters-in-string-comparis&#111;n" target="_blank">http://stackoverflow.com/questions/359827/ignoring-accented-letters-in-string-comparison</A>&nbsp;- for more information.&nbsp; The local query might then look like:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp; EntityManager.People.Where(person =&gt; RemoveDiacritics(person.Name).Contains("ao"))</DIV><DIV>&nbsp;</DIV><DIV>Not ideal, but maybe other DevForce developers have encountered this problem and have some suggestions.</DIV>]]>
   </description>
   <pubDate>Wed, 27 Nov 2013 15:02:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4614&amp;PID=17267#17267</guid>
  </item> 
  <item>
   <title>Accent insensitive search in cache : Hi,  I&amp;#039;m trying to created...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4614&amp;PID=17266#17266</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1485" rel="nofollow">cefernan</a><br /><strong>Subject:</strong> 4614<br /><strong>Posted:</strong> 27-Nov-2013 at 11:47am<br /><br />Hi,<div><br></div><div>I'm trying to created a accent insensitive search in my app.&nbsp;</div><div><br></div><div>For instance, I have this rows:</div><div><br></div><div>Name</div><div>-------</div><div>Ricardo Ribeiro</div><div><span style="line-height: 1.4;">Luis Aragão</span></div><div><span style="line-height: 1.4;">André Silva</span></div><div>João Souza</div><div>Paolo Guerreiro</div><div><br></div><div>If I do this:</div><div><pre style="font-family: C&#111;nsolas; font-size: 13px; -: initial initial; -repeat: initial initial;">&nbsp;&nbsp;<span style="color:blue;">var</span>&nbsp;query&nbsp;=&nbsp;UnitOfWork.EntityManager.People&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Where(person&nbsp;=&gt;&nbsp;person.Name.Contains(<span style="color:#a31515;">"ao"</span>)); </pre><pre style="font-family: C&#111;nsolas; font-size: 13px; -: initial initial; -repeat: initial initial;"><span style="line-height: 1.4;">&nbsp;&nbsp;</span><span style="line-height: 1.4; color: blue;">var</span><span style="line-height: 1.4;">&nbsp;result =&nbsp;query.Execute();</span></pre><pre style="font-family: C&#111;nsolas; font-size: 13px; -: initial initial; -repeat: initial initial;"><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 1.4;"><br></span></pre><pre style="font-family: C&#111;nsolas; font-size: 13px; -: initial initial; -repeat: initial initial;"><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 1.4;">I expect this result:</span></pre></div><div><span style="line-height: 1.4;">Luis Aragão</span></div><div><span style="line-height: 1.4;">João Souza</span></div><div><span style="line-height: 1.4;">Paolo Guerreiro</span></div><div><span style="line-height: 1.4;"><br></span></div><div>But, my collection result is just "Paolo Guerreiro", because just this ocurrence contains "ao" without accent.&nbsp;</div><div><br></div><div><span style="line-height: 1.4;">My database is configured to do accent insensitive searches and I can check that executing the generated query direct in database. Also, </span><span style="line-height: 1.4;">if I check my entity manager cache, I can see only these three rows loaded in my entity. Just my collection doesn't receive the expected result.</span></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 27 Nov 2013 11:47:02 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4614&amp;PID=17266#17266</guid>
  </item> 
 </channel>
</rss>