<?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 Alfresco and Solr filter query support. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-and-solr-filter-query-support/m-p/271050#M224180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've added some customisations to the Alfresco/Solr code (4.0 enterprise) to support filter queries. I have created a custom field using the copy field pattern in the schema.xml,&amp;nbsp; the type of the custom field is 'string' as I need a verbatim copy of the field. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In CoreTracker I can see the field is created using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;builder.append("\u0000").append(locale.toString()).append("\u0000").append(stringPropertyValue.getValue());&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;so when I build my filter query string I'm using the same method, but nothing is returned. If I change the first '\u0000' to a wildcard character i get the results I expect, i.e.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;builder.append("*").append(locale.toString()).append("\u0000").append(stringPropertyValue.getValue());&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Viewing the field in Luke or the Solr's schema browser only displays the field with empty spaces, i.e. ' en myfield' &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know why nothing is returned if '\u0000' is placed before the locale in a filter query, or what should be placed before the locale as I don't what to use wildcard characters in my query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 May 2012 12:22:55 GMT</pubDate>
    <dc:creator>dantuffery</dc:creator>
    <dc:date>2012-05-11T12:22:55Z</dc:date>
    <item>
      <title>Alfresco and Solr filter query support.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-and-solr-filter-query-support/m-p/271050#M224180</link>
      <description>Hi,I've added some customisations to the Alfresco/Solr code (4.0 enterprise) to support filter queries. I have created a custom field using the copy field pattern in the schema.xml,&amp;nbsp; the type of the custom field is 'string' as I need a verbatim copy of the field. In CoreTracker I can see the field i</description>
      <pubDate>Fri, 11 May 2012 12:22:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-and-solr-filter-query-support/m-p/271050#M224180</guid>
      <dc:creator>dantuffery</dc:creator>
      <dc:date>2012-05-11T12:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco and Solr filter query support.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-and-solr-filter-query-support/m-p/271051#M224181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We should add filter queries.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sometimes you miss the obvious!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Extending your schema has lost how the locale is processed in Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You would need tokenisation that stripped it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You would be better making your property dual tokenised "both" or tokenised "false" in your data model&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can then filter using = for exact and ~ for FTS matching&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 20:02:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-and-solr-filter-query-support/m-p/271051#M224181</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2012-05-11T20:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco and Solr filter query support.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-and-solr-filter-query-support/m-p/271052#M224182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Andy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I managed to getting it working by using the Lucene query parser instead of the Alfresco query parser.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;fq={!lucene}myField:blah&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you planning to release any documentation on the Alfresco and Solr implementation?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 11:50:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-and-solr-filter-query-support/m-p/271052#M224182</guid>
      <dc:creator>dantuffery</dc:creator>
      <dc:date>2012-05-16T11:50:04Z</dc:date>
    </item>
  </channel>
</rss>

